{
  "id": "bbg-p0012-grpc-and-service-communication-service",
  "title": "gRPC Local-To-Remote Call Flow",
  "chapter": "grpc-and-service-communication",
  "batch": "03",
  "rank": 29,
  "sourcePage": 12,
  "sourcePointer": "p. 12",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "sequence",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render inspected",
      "preserve two-part source topology: local call vs remote procedural call, then client/server gRPC runtime over HTTP/2 with protobuf encoding",
      "omit source branding, screenshots, and raw byte-table values"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: local function call",
      "concept: remote service call",
      "concept: client stub",
      "concept: protobuf encoding",
      "concept: HTTP/2 transport"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "contrast",
      "label": "Local vs remote call",
      "x": 50,
      "y": 118,
      "w": 860,
      "h": 118
    },
    {
      "id": "client",
      "label": "Client service stack",
      "x": 74,
      "y": 296,
      "w": 260,
      "h": 222
    },
    {
      "id": "wire",
      "label": "Wire format",
      "x": 374,
      "y": 296,
      "w": 212,
      "h": 222
    },
    {
      "id": "server",
      "label": "Remote service stack",
      "x": 626,
      "y": 296,
      "w": 260,
      "h": 222
    }
  ],
  "shapes": [
    {
      "id": "order",
      "kind": "rect",
      "label": "Order code",
      "detail": "local call",
      "x": 88,
      "y": 150,
      "w": 112,
      "h": 58,
      "tone": "blue"
    },
    {
      "id": "paymentLocal",
      "kind": "rect",
      "label": "Payment fn",
      "detail": "same process",
      "x": 240,
      "y": 150,
      "w": 112,
      "h": 58,
      "tone": "green"
    },
    {
      "id": "orderSvc",
      "kind": "rect",
      "label": "Order svc",
      "detail": "server A",
      "x": 532,
      "y": 150,
      "w": 112,
      "h": 58,
      "tone": "purple"
    },
    {
      "id": "paymentSvc",
      "kind": "rect",
      "label": "Payment svc",
      "detail": "server B",
      "x": 722,
      "y": 150,
      "w": 112,
      "h": 58,
      "tone": "teal"
    },
    {
      "id": "clientApp",
      "kind": "rect",
      "label": "Client app",
      "detail": "REST input",
      "x": 128,
      "y": 318,
      "w": 118,
      "h": 56,
      "tone": "blue"
    },
    {
      "id": "clientCodec",
      "kind": "rect",
      "label": "Client stub",
      "detail": "encode decode",
      "x": 128,
      "y": 404,
      "w": 118,
      "h": 56,
      "tone": "orange"
    },
    {
      "id": "http2",
      "kind": "queue",
      "label": "HTTP/2",
      "detail": "transport",
      "x": 418,
      "y": 402,
      "w": 124,
      "h": 52,
      "tone": "purple"
    },
    {
      "id": "protobuf",
      "kind": "table",
      "label": "Protobuf",
      "detail": "binary frame",
      "x": 418,
      "y": 318,
      "w": 124,
      "h": 66,
      "tone": "teal"
    },
    {
      "id": "serverCodec",
      "kind": "rect",
      "label": "Server stub",
      "detail": "decode encode",
      "x": 692,
      "y": 404,
      "w": 118,
      "h": 56,
      "tone": "orange"
    },
    {
      "id": "serverApp",
      "kind": "rect",
      "label": "Server app",
      "detail": "local handler",
      "x": 692,
      "y": 318,
      "w": 118,
      "h": 56,
      "tone": "green"
    }
  ],
  "connectors": [
    {
      "from": "order",
      "to": "paymentLocal",
      "label": "call",
      "flow": "main"
    },
    {
      "from": "orderSvc",
      "to": "paymentSvc",
      "label": "RPC",
      "flow": "control"
    },
    {
      "from": "clientApp",
      "to": "clientCodec",
      "label": "method",
      "flow": "main"
    },
    {
      "from": "clientCodec",
      "to": "protobuf",
      "label": "encode",
      "flow": "data"
    },
    {
      "from": "protobuf",
      "to": "http2",
      "label": "frame",
      "flow": "data"
    },
    {
      "from": "http2",
      "to": "serverCodec",
      "label": "send",
      "flow": "main"
    },
    {
      "from": "serverCodec",
      "to": "serverApp",
      "label": "invoke",
      "flow": "main"
    },
    {
      "from": "serverApp",
      "to": "clientApp",
      "label": "reply",
      "flow": "data",
      "dashed": true
    }
  ]
}
