cluster_impl

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 15 Imported by: 163

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAvailableCluster added in v1.2.0

func NewAvailableCluster() cluster.Cluster

NewAvailableCluster returns a cluster instance

Obtain available service providers

func NewAvailableClusterInvoker added in v1.2.0

func NewAvailableClusterInvoker(directory cluster.Directory) protocol.Invoker

NewAvailableClusterInvoker returns a cluster invoker instance

func NewBroadcastCluster added in v1.2.0

func NewBroadcastCluster() cluster.Cluster

NewBroadcastCluster returns a broadcast cluster instance.

Calling all providers' broadcast one by one. All errors will be reported. It is usually used to notify all providers to update local resource information such as caches or logs.

func NewFailFastCluster

func NewFailFastCluster() cluster.Cluster

NewFailFastCluster returns a failfast cluster instance.

Fast failure, only made a call, failure immediately error. Usually used for non-idempotent write operations, such as adding records.

func NewFailbackCluster

func NewFailbackCluster() cluster.Cluster

NewFailbackCluster returns a failback cluster instance

Failure automatically restored, failed to record the background request, regular retransmission. Usually used for message notification operations.

func NewFailoverCluster

func NewFailoverCluster() cluster.Cluster

NewFailoverCluster returns a failover cluster instance

Failure automatically switch, when there is a failure, retry the other server (default). Usually used for read operations, but retries can result in longer delays.

func NewFailsafeCluster

func NewFailsafeCluster() cluster.Cluster

NewFailsafeCluster returns a failsafe cluster instance.

Failure of security, anomalies, directly ignored. Usually it is used to write audit logs and other operations.

func NewForkingCluster added in v1.2.0

func NewForkingCluster() cluster.Cluster

NewForkingCluster returns a forking cluster instance.

Multiple servers are invoked in parallel, returning as soon as one succeeds. Usually it is used for real-time demanding read operations while wasting more service resources.

func NewMockCluster

func NewMockCluster() cluster.Cluster

NewMockCluster returns a mock cluster instance.

Mock cluster is usually used for service degradation, such as an authentication service. When the service provider is completely hung up, the client does not throw an exception, return an authorization failure through the Mock data instead.

func NewZoneAwareCluster added in v1.5.1

func NewZoneAwareCluster() cluster.Cluster

NewZoneAwareCluster returns a zoneaware cluster instance.

More than one registry for subscription. Usually it is used for choose between registries.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL