org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm
Load balance algorithms, they can be used in readwrite-splitting and traffic features.
Configuration Type | Description | Fully-qualified class name |
---|---|---|
ROUND_ROBIN | load balancer algorithm based on polling | org.apache.shardingsphere.infra.algorithm.loadbalancer.round.robin.RoundRobinLoadBalanceAlgorithm |
RANDOM | load balancer algorithm based on random | org.apache.shardingsphere.infra.algorithm.loadbalancer.random.RandomLoadBalanceAlgorithm |
WEIGHT | load balancer algorithm based on weight | org.apache.shardingsphere.infra.algorithm.loadbalancer.weight.WeightLoadBalanceAlgorithm |
org.apache.shardingsphere.keygen.core.algorithm.KeyGenerateAlgorithm
Distributed key generated algorithms, they can be used in sharding feature.
Configuration Type | Description | Fully-qualified class name |
---|---|---|
SNOWFLAKE | Snowflake key generate algorithm | org.apache.shardingsphere.keygen.snowflake.algorithm.SnowflakeKeyGenerateAlgorithm |
UUID | UUID key generate algorithm | org.apache.shardingsphere.keygen.uuid.algorithm.UUIDKeyGenerateAlgorithm |
org.apache.shardingsphere.infra.algorithm.messagedigest.core.MessageDigestAlgorithm
Message digest algorithms, they can be used in encrypt and mask feature.
Configuration Type | Description | Fully-qualified class name |
---|---|---|
MD5 | MD5 message digest algorithm | org.apache.shardingsphere.infra.algorithm.messagedigest.md5.MD5MessageDigestAlgorithm |