{
  "id": "bbg-p0232-api-gateways-and-contracts-api",
  "title": "API Performance Control Flow",
  "chapter": "api-gateways-and-contracts",
  "batch": "05",
  "rank": 45,
  "sourcePage": 232,
  "sourcePointer": "p. 232",
  "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 inspected",
      "preserve performance controls: pagination, asynchronous logging, caching, payload reduction, and request path measurement",
      "omit source branding, icons, and copied explanatory prose"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [
    {
      "label": "Response returns as bounded, cache-aware payloads.",
      "x": 610,
      "y": 492
    }
  ],
  "sourceReview": {
    "conceptAnchors": [
      "concept: result pagination",
      "concept: asynchronous logging",
      "concept: data caching",
      "concept: payload reduction",
      "concept: latency measurement"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "request",
      "label": "Request path",
      "x": 54,
      "y": 126,
      "w": 852,
      "h": 128
    },
    {
      "id": "controls",
      "label": "Performance controls",
      "x": 130,
      "y": 332,
      "w": 700,
      "h": 136
    }
  ],
  "shapes": [
    {
      "id": "client",
      "kind": "actor",
      "label": "Client",
      "detail": "large result",
      "x": 86,
      "y": 156,
      "w": 78,
      "h": 86,
      "tone": "blue"
    },
    {
      "id": "api",
      "kind": "gateway",
      "label": "API",
      "detail": "endpoint",
      "x": 270,
      "y": 150,
      "w": 122,
      "h": 82,
      "tone": "orange"
    },
    {
      "id": "service",
      "kind": "rect",
      "label": "Service",
      "detail": "work",
      "x": 496,
      "y": 158,
      "w": 124,
      "h": 62,
      "tone": "purple"
    },
    {
      "id": "database",
      "kind": "cylinder",
      "label": "Database",
      "detail": "records",
      "x": 720,
      "y": 146,
      "w": 122,
      "h": 82,
      "tone": "green"
    },
    {
      "id": "pagination",
      "kind": "rect",
      "label": "Pagination",
      "detail": "bounded sets",
      "x": 164,
      "y": 362,
      "w": 126,
      "h": 58,
      "tone": "blue"
    },
    {
      "id": "asyncLog",
      "kind": "queue",
      "label": "Async logs",
      "detail": "buffer writes",
      "x": 338,
      "y": 366,
      "w": 126,
      "h": 52,
      "tone": "purple"
    },
    {
      "id": "cache",
      "kind": "cylinder",
      "label": "Cache",
      "detail": "hot data",
      "x": 512,
      "y": 350,
      "w": 126,
      "h": 82,
      "tone": "teal"
    },
    {
      "id": "payload",
      "kind": "rect",
      "label": "Payload trim",
      "detail": "compress fields",
      "x": 686,
      "y": 362,
      "w": 126,
      "h": 58,
      "tone": "orange"
    }
  ],
  "connectors": [
    {
      "from": "client",
      "to": "api",
      "label": "request",
      "flow": "main"
    },
    {
      "from": "api",
      "to": "service",
      "label": "route",
      "flow": "main"
    },
    {
      "from": "service",
      "to": "database",
      "label": "query",
      "flow": "data"
    },
    {
      "from": "database",
      "to": "pagination",
      "label": "page",
      "flow": "data"
    },
    {
      "from": "service",
      "to": "asyncLog",
      "label": "log",
      "flow": "async",
      "dashed": true
    },
    {
      "from": "service",
      "to": "cache",
      "label": "reuse",
      "flow": "data",
      "dashed": true
    },
    {
      "from": "pagination",
      "to": "payload",
      "label": "smaller",
      "flow": "control"
    }
  ]
}
