Configuration – miscellaneous
This section discusses how to achieve rule configuration of data sharding based on read/write splitting. Please note that the sharding data source should be the one aggregated after read/write splitting.
Sharding, read/write splitting, and cluster configuration items
Configuration items are consistent with those used in each feature. For detailed configuration items, please refer to the following sections in this chapter:
- Sharding configuration
- Understanding read/write splitting configuration
- Configuring ShardingSphere's modes
The following example introduces the combination of sharding, read/write splitting, and Cluster mode configuration items. These steps will show you how to combine configurations for multiple features:
- Create a sharding configuration using the Java API:
public final class ShardingConfigurationCreator { public static ShardingRuleConfiguration create() { ...