Back to Shardingsphere

Infra Algorithm.En

docs/document/content/dev-manual/infra-algorithm.en.md

5.5.35.8 KB
Original Source

+++ pre = "<b>5.4. </b>" title = "Infra algorithm" weight = 4 chapter = true +++

LoadBalanceAlgorithm

Fully-qualified class name

org.apache.shardingsphere.infra.algorithm.loadbalancer.spi.LoadBalanceAlgorithm

Definition

Load balance algorithms, they can be used in readwrite-splitting and traffic features.

Implementation classes

Configuration TypeDescriptionFully-qualified class name
ROUND_ROBINload balancer algorithm based on pollingorg.apache.shardingsphere.infra.algorithm.loadbalancer.round.robin.RoundRobinLoadBalanceAlgorithm
RANDOMload balancer algorithm based on randomorg.apache.shardingsphere.infra.algorithm.loadbalancer.random.RandomLoadBalanceAlgorithm
WEIGHTload balancer algorithm based on weightorg.apache.shardingsphere.infra.algorithm.loadbalancer.weight.WeightLoadBalanceAlgorithm

KeyGenerateAlgorithm

Fully-qualified class name

org.apache.shardingsphere.infra.algorithm.keygen.spi.KeyGenerateAlgorithm

Definition

Distributed key generated algorithms, they can be used in sharding feature.

Implementation classes

Configuration TypeDescriptionFully-qualified class name
SNOWFLAKESnowflake key generate algorithmorg.apache.shardingsphere.keygen.snowflake.algorithm.SnowflakeKeyGenerateAlgorithm
UUIDUUID key generate algorithmorg.apache.shardingsphere.keygen.uuid.algorithm.UUIDKeyGenerateAlgorithm

MessageDigestAlgorithm

Fully-qualified class name

org.apache.shardingsphere.infra.algorithm.messagedigest.spi.MessageDigestAlgorithm

Definition

Message digest algorithms, they can be used in encrypt and mask feature.

Implementation classes

Configuration TypeDescriptionFully-qualified class name
MD5MD5 message digest algorithmorg.apache.shardingsphere.infra.algorithm.messagedigest.md5.MD5MessageDigestAlgorithm