Apache ShardingSphere · JSON Structure

Apache Shardingsphere Readwrite Splitting Rule Structure

Read-write splitting configuration

Type: object Properties: 4
DatabaseDistributed SQLRead-Write SplittingShardingSQLApacheOpen Source

ReadwriteSplittingRule is a JSON Structure definition published by Apache ShardingSphere, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name writeDataSourceName readDataSourceNames loadBalancerName

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shardingsphere/refs/heads/main/json-structure/apache-shardingsphere-readwrite-splitting-rule-structure.json",
  "description": "Read-write splitting configuration",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Rule name"
    },
    "writeDataSourceName": {
      "type": "string",
      "description": "Primary/write data source"
    },
    "readDataSourceNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Replica/read data sources"
    },
    "loadBalancerName": {
      "type": "string",
      "description": "Load balancer algorithm name"
    }
  },
  "name": "ReadwriteSplittingRule"
}