Database that deal with insert, update and delete operations. support single master only.
Database that deal with query operations. support multiple slaves.
Replicate data from master to slaves asynchronously. Because of asynchronized, data of master and slaves may inconsistent on short time.
Redirect query operations to different slaves via load balance strategy.
ConfigMap allows user to configure metadata information for data source of read-write splitting. The information of masterSlaveConfig in ConfigMap can be obtained by calling ConfigMapContext.getInstance (). e.g. Different weight for machines, different traffic on machines. The metadata for machines’ weight can be configured through the ConfigMap.