Skip to main content

Crate dubbo_rs_cluster

Crate dubbo_rs_cluster 

Source

Re-exports§

pub use dubbo_rs_common;
pub use dubbo_rs_protocol;
pub use dubbo_rs_registry;

Structs§

AvailableCluster
AvailableCluster — invoke on the first available invoker.
BroadcastCluster
BroadcastCluster — invoke ALL invokers one by one. If any invoker fails, record the error but continue invoking the rest. After all invocations complete, if there were any errors, return the first error. Otherwise return the last successful result.
ConditionRouter
Condition-based router — filters invokers by matching rules against invocation context parameters.
FailbackCluster
FailbackCluster — when an invocation fails, record the failed invocation and return an empty success immediately. Schedule background retries with a configurable delay.
FailfastCluster
FailoverCluster
FailsafeCluster
FailsafeCluster — when an invocation fails, silently swallow the error and return an empty success result.
ForkingCluster
ForkingCluster — invoke multiple invokers in parallel, return the first successful result. If all fail, return the last error.
MockCluster
MockCluster — returns mock results without calling downstream invokers.
RegistryDirectory
RouterChain
A chain of routers that filters invokers sequentially.
ScriptRouter
Script-based router powered by the rhai scripting engine.
StaticDirectory
StaticDirectory holds a fixed list of invokers.
TagRouter
Tag-based router for traffic coloring.

Traits§

Cluster
Cluster strategy — joins a directory into a single fault-tolerant invoker.
Directory
Directory provides a list of service invokers.