{
  "id": "bbg-p0218-database-foundations-database-foundations-database",
  "title": "CQRS Read and Write Split",
  "chapter": "database-foundations",
  "batch": "31",
  "rank": 309,
  "sourcePage": 218,
  "sourcePointer": "p. 218",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "data-flow",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render and extracted text inspected",
      "preserve CQRS topology: command path writes through domain model, events update read model asynchronously, query path reads optimized view",
      "omit source styling and decorative icons"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: command handler",
      "concept: domain model",
      "concept: write database",
      "concept: event store",
      "concept: read model query handler"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "write",
      "label": "Command side",
      "x": 54,
      "y": 126,
      "w": 390,
      "h": 330
    },
    {
      "id": "read",
      "label": "Query side",
      "x": 516,
      "y": 126,
      "w": 390,
      "h": 330
    }
  ],
  "shapes": [
    {
      "id": "client",
      "kind": "actor",
      "label": "Client",
      "detail": "command query",
      "x": 94,
      "y": 250,
      "w": 82,
      "h": 86,
      "tone": "blue"
    },
    {
      "id": "command",
      "kind": "rect",
      "label": "Command handler",
      "detail": "validate execute",
      "x": 230,
      "y": 172,
      "w": 142,
      "h": 58,
      "tone": "orange"
    },
    {
      "id": "domain",
      "kind": "hex",
      "label": "Domain model",
      "detail": "business rules",
      "x": 250,
      "y": 288,
      "w": 132,
      "h": 78,
      "tone": "purple"
    },
    {
      "id": "writeDb",
      "kind": "cylinder",
      "label": "Write DB",
      "detail": "state",
      "x": 292,
      "y": 406,
      "w": 120,
      "h": 74,
      "tone": "green"
    },
    {
      "id": "eventStore",
      "kind": "queue",
      "label": "Event store",
      "detail": "events",
      "x": 512,
      "y": 288,
      "w": 126,
      "h": 50,
      "tone": "teal"
    },
    {
      "id": "readModel",
      "kind": "cylinder",
      "label": "Read model",
      "detail": "projection",
      "x": 674,
      "y": 212,
      "w": 126,
      "h": 74,
      "tone": "green"
    },
    {
      "id": "query",
      "kind": "rect",
      "label": "Query handler",
      "detail": "optimized read",
      "x": 678,
      "y": 360,
      "w": 132,
      "h": 58,
      "tone": "blue"
    }
  ],
  "connectors": [
    {
      "from": "client",
      "to": "command",
      "label": "command",
      "flow": "main"
    },
    {
      "from": "command",
      "to": "domain",
      "label": "execute",
      "flow": "control"
    },
    {
      "from": "domain",
      "to": "writeDb",
      "label": "persist",
      "flow": "data"
    },
    {
      "from": "domain",
      "to": "eventStore",
      "label": "emit",
      "flow": "async"
    },
    {
      "from": "eventStore",
      "to": "readModel",
      "label": "project",
      "flow": "async"
    },
    {
      "from": "client",
      "to": "query",
      "label": "query",
      "flow": "main"
    },
    {
      "from": "query",
      "to": "readModel",
      "label": "read",
      "flow": "data"
    }
  ]
}
