{
 "type": "excalidraw",
 "version": 2,
 "source": "https://excalidraw.com",
 "elements": [
  {
   "id": "q2-token-metering-badge",
   "type": "rectangle",
   "x": 0,
   "y": 0,
   "width": 1500,
   "height": 300,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#ffc078",
   "fillStyle": "solid",
   "strokeWidth": 4,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 1460814403,
   "version": 1,
   "versionNonce": 1504004732,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-badge-t"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-badge-t",
   "type": "text",
   "x": 20,
   "y": 25,
   "width": 1460,
   "height": 250,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 2133201996,
   "version": 1,
   "versionNonce": 1959386987,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Q2 Meter",
   "originalText": "Q2 Meter",
   "fontSize": 200,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-badge",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-title",
   "type": "text",
   "x": 0,
   "y": 330,
   "width": 1400,
   "height": 40,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 295334610,
   "version": 1,
   "versionNonce": 401991736,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Q2 Token metering and billing: count every token, bill correctly, stop overspend",
   "originalText": "Q2 Token metering and billing: count every token, bill correctly, stop overspend",
   "fontSize": 32,
   "fontFamily": 5,
   "textAlign": "left",
   "verticalAlign": "middle",
   "containerId": null,
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-srv",
   "type": "rectangle",
   "x": 0,
   "y": 550,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#ebfbee",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 1159380354,
   "version": 1,
   "versionNonce": 2036236842,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-srv-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e0"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-srv-t",
   "type": "text",
   "x": 10,
   "y": 556.0,
   "width": 160,
   "height": 60,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 279172787,
   "version": 1,
   "versionNonce": 260573196,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Model servers\n(emit usage at end\nof each request)",
   "originalText": "Model servers\n(emit usage at end\nof each request)",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-srv",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-k",
   "type": "rectangle",
   "x": 330,
   "y": 550,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#fff9db",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 1329753548,
   "version": 1,
   "versionNonce": 1914012529,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-k-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e0"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e1"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-k-t",
   "type": "text",
   "x": 340,
   "y": 556.0,
   "width": 160,
   "height": 60,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 1222328496,
   "version": 1,
   "versionNonce": 1656961616,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Kafka usage topic\n(key = account,\nrequest_id for dedup)",
   "originalText": "Kafka usage topic\n(key = account,\nrequest_id for dedup)",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-k",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-agg",
   "type": "rectangle",
   "x": 660,
   "y": 550,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#e6fcf5",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 1490376254,
   "version": 1,
   "versionNonce": 96907016,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-agg-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e1"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e2"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e3"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-agg-t",
   "type": "text",
   "x": 670,
   "y": 556.0,
   "width": 160,
   "height": 60,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 1982966163,
   "version": 1,
   "versionNonce": 1526706730,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Stream aggregator\n(per account per minute,\ndedup by request_id)",
   "originalText": "Stream aggregator\n(per account per minute,\ndedup by request_id)",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-agg",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-bal",
   "type": "rectangle",
   "x": 660,
   "y": 700,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#f3f0ff",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 721762279,
   "version": 1,
   "versionNonce": 502922617,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-bal-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e3"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e4"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-bal-t",
   "type": "text",
   "x": 670,
   "y": 706.0,
   "width": 160,
   "height": 60,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 2120395275,
   "version": 1,
   "versionNonce": 253207297,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Balance / credit service\n(Redis counters +\nDB ledger)",
   "originalText": "Balance / credit service\n(Redis counters +\nDB ledger)",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-bal",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-led",
   "type": "rectangle",
   "x": 990,
   "y": 550,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#f3f0ff",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 937195260,
   "version": 1,
   "versionNonce": 1234510746,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-led-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e2"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e5"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e6"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-led-t",
   "type": "text",
   "x": 1000,
   "y": 556.0,
   "width": 160,
   "height": 60,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 555512016,
   "version": 1,
   "versionNonce": 1063497604,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Usage ledger\n(append-only, OLAP:\nClickHouse / Parquet)",
   "originalText": "Usage ledger\n(append-only, OLAP:\nClickHouse / Parquet)",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-led",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-inv",
   "type": "rectangle",
   "x": 1320,
   "y": 550,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#e6fcf5",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 1708957521,
   "version": 1,
   "versionNonce": 1679116189,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-inv-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e5"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-inv-t",
   "type": "text",
   "x": 1330,
   "y": 556.0,
   "width": 160,
   "height": 60,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 2132480061,
   "version": 1,
   "versionNonce": 346094056,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Invoicing\n(price book x usage,\nStripe)",
   "originalText": "Invoicing\n(price book x usage,\nStripe)",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-inv",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-gw",
   "type": "rectangle",
   "x": 330,
   "y": 700,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#fff4e6",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 3
   },
   "seed": 714537755,
   "version": 1,
   "versionNonce": 1929245187,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-gw-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e4"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-gw-t",
   "type": "text",
   "x": 340,
   "y": 706.0,
   "width": 160,
   "height": 60,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 1725048951,
   "version": 1,
   "versionNonce": 1193309984,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "API gateway\n(checks balance,\nreserves estimate)",
   "originalText": "API gateway\n(checks balance,\nreserves estimate)",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-gw",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-dash",
   "type": "ellipse",
   "x": 1320,
   "y": 400,
   "width": 180,
   "height": 72,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "#e7f5ff",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 588093311,
   "version": 1,
   "versionNonce": 1849076401,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-dash-t"
    },
    {
     "type": "arrow",
     "id": "q2-token-metering-e6"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-dash-t",
   "type": "text",
   "x": 1330,
   "y": 416.0,
   "width": 160,
   "height": 40,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 1195809358,
   "version": 1,
   "versionNonce": 1783684942,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Customer usage\ndashboard",
   "originalText": "Customer usage\ndashboard",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-dash",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-e0",
   "type": "arrow",
   "x": 180.0,
   "y": 586.0,
   "width": 150.0,
   "height": 0.0,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 1540910401,
   "version": 1,
   "versionNonce": 1633982922,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-e0-t"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false,
   "points": [
    [
     0,
     0
    ],
    [
     150.0,
     0.0
    ]
   ],
   "lastCommittedPoint": null,
   "startBinding": {
    "elementId": "q2-token-metering-srv",
    "focus": 0,
    "gap": 4
   },
   "endBinding": {
    "elementId": "q2-token-metering-k",
    "focus": 0,
    "gap": 4
   },
   "startArrowhead": null,
   "endArrowhead": "arrow",
   "elbowed": false
  },
  {
   "id": "q2-token-metering-e0-t",
   "type": "text",
   "x": 211.0,
   "y": 576.0,
   "width": 88,
   "height": 20,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 991070208,
   "version": 1,
   "versionNonce": 648200382,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "usage event",
   "originalText": "usage event",
   "fontSize": 14,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-e0",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-e1",
   "type": "arrow",
   "x": 510.0,
   "y": 586.0,
   "width": 150.0,
   "height": 0.0,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 356416555,
   "version": 1,
   "versionNonce": 756849393,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "points": [
    [
     0,
     0
    ],
    [
     150.0,
     0.0
    ]
   ],
   "lastCommittedPoint": null,
   "startBinding": {
    "elementId": "q2-token-metering-k",
    "focus": 0,
    "gap": 4
   },
   "endBinding": {
    "elementId": "q2-token-metering-agg",
    "focus": 0,
    "gap": 4
   },
   "startArrowhead": null,
   "endArrowhead": "arrow",
   "elbowed": false
  },
  {
   "id": "q2-token-metering-e2",
   "type": "arrow",
   "x": 840.0,
   "y": 586.0,
   "width": 150.0,
   "height": 0.0,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 649821630,
   "version": 1,
   "versionNonce": 996247159,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "points": [
    [
     0,
     0
    ],
    [
     150.0,
     0.0
    ]
   ],
   "lastCommittedPoint": null,
   "startBinding": {
    "elementId": "q2-token-metering-agg",
    "focus": 0,
    "gap": 4
   },
   "endBinding": {
    "elementId": "q2-token-metering-led",
    "focus": 0,
    "gap": 4
   },
   "startArrowhead": null,
   "endArrowhead": "arrow",
   "elbowed": false
  },
  {
   "id": "q2-token-metering-e3",
   "type": "arrow",
   "x": 750.0,
   "y": 622.0,
   "width": 0.0,
   "height": 78.0,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 1002170859,
   "version": 1,
   "versionNonce": 51810463,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-e3-t"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false,
   "points": [
    [
     0,
     0
    ],
    [
     0.0,
     78.0
    ]
   ],
   "lastCommittedPoint": null,
   "startBinding": {
    "elementId": "q2-token-metering-agg",
    "focus": 0,
    "gap": 4
   },
   "endBinding": {
    "elementId": "q2-token-metering-bal",
    "focus": 0,
    "gap": 4
   },
   "startArrowhead": null,
   "endArrowhead": "arrow",
   "elbowed": false
  },
  {
   "id": "q2-token-metering-e3-t",
   "type": "text",
   "x": 714.0,
   "y": 651.0,
   "width": 72,
   "height": 20,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 2082899072,
   "version": 1,
   "versionNonce": 783156688,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "decrement",
   "originalText": "decrement",
   "fontSize": 14,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-e3",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-e4",
   "type": "arrow",
   "x": 510.0,
   "y": 736.0,
   "width": 150.0,
   "height": 0.0,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "dashed",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 1128488134,
   "version": 1,
   "versionNonce": 1210883261,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-e4-t"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false,
   "points": [
    [
     0,
     0
    ],
    [
     150.0,
     0.0
    ]
   ],
   "lastCommittedPoint": null,
   "startBinding": {
    "elementId": "q2-token-metering-gw",
    "focus": 0,
    "gap": 4
   },
   "endBinding": {
    "elementId": "q2-token-metering-bal",
    "focus": 0,
    "gap": 4
   },
   "startArrowhead": null,
   "endArrowhead": "arrow",
   "elbowed": false
  },
  {
   "id": "q2-token-metering-e4-t",
   "type": "text",
   "x": 525.0,
   "y": 726.0,
   "width": 120,
   "height": 20,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 17581914,
   "version": 1,
   "versionNonce": 625675343,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "reserve / check",
   "originalText": "reserve / check",
   "fontSize": 14,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-e4",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-e5",
   "type": "arrow",
   "x": 1170.0,
   "y": 586.0,
   "width": 150.0,
   "height": 0.0,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 1799361520,
   "version": 1,
   "versionNonce": 1585932014,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-e5-t"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false,
   "points": [
    [
     0,
     0
    ],
    [
     150.0,
     0.0
    ]
   ],
   "lastCommittedPoint": null,
   "startBinding": {
    "elementId": "q2-token-metering-led",
    "focus": 0,
    "gap": 4
   },
   "endBinding": {
    "elementId": "q2-token-metering-inv",
    "focus": 0,
    "gap": 4
   },
   "startArrowhead": null,
   "endArrowhead": "arrow",
   "elbowed": false
  },
  {
   "id": "q2-token-metering-e5-t",
   "type": "text",
   "x": 1217.0,
   "y": 576.0,
   "width": 56,
   "height": 20,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 1368426742,
   "version": 1,
   "versionNonce": 538981927,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "monthly",
   "originalText": "monthly",
   "fontSize": 14,
   "fontFamily": 5,
   "textAlign": "center",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-e5",
   "lineHeight": 1.25,
   "autoResize": true
  },
  {
   "id": "q2-token-metering-e6",
   "type": "arrow",
   "x": 1159.2,
   "y": 550.0,
   "width": 171.5999999999999,
   "height": 78.0,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "dashed",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": {
    "type": 2
   },
   "seed": 231897702,
   "version": 1,
   "versionNonce": 1961269854,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "points": [
    [
     0,
     0
    ],
    [
     171.5999999999999,
     -78.0
    ]
   ],
   "lastCommittedPoint": null,
   "startBinding": {
    "elementId": "q2-token-metering-led",
    "focus": 0,
    "gap": 4
   },
   "endBinding": {
    "elementId": "q2-token-metering-dash",
    "focus": 0,
    "gap": 4
   },
   "startArrowhead": null,
   "endArrowhead": "arrow",
   "elbowed": false
  },
  {
   "id": "q2-token-metering-notes",
   "type": "rectangle",
   "x": 0,
   "y": 850,
   "width": 420,
   "height": 202,
   "angle": 0,
   "strokeColor": "#e67700",
   "backgroundColor": "#ffec99",
   "fillStyle": "solid",
   "strokeWidth": 1,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 1685254564,
   "version": 1,
   "versionNonce": 1709696036,
   "isDeleted": false,
   "boundElements": [
    {
     "type": "text",
     "id": "q2-token-metering-notes-t"
    }
   ],
   "updated": 1,
   "link": null,
   "locked": false
  },
  {
   "id": "q2-token-metering-notes-t",
   "type": "text",
   "x": 12,
   "y": 860,
   "width": 396,
   "height": 182,
   "angle": 0,
   "strokeColor": "#1e1e1e",
   "backgroundColor": "transparent",
   "fillStyle": "solid",
   "strokeWidth": 2,
   "strokeStyle": "solid",
   "roughness": 1,
   "opacity": 100,
   "groupIds": [],
   "frameId": null,
   "roundness": null,
   "seed": 1713601029,
   "version": 1,
   "versionNonce": 1692732590,
   "isDeleted": false,
   "boundElements": [],
   "updated": 1,
   "link": null,
   "locked": false,
   "text": "Trade-offs to raise\n\u2022 At-least-once + dedup on request_id = exactly-once effect\n\u2022 Ledger is the truth; counters are a cache\n\u2022 Reserve max_tokens up front, settle after\n\u2022 Streams cut mid-way still bill tokens sent\n\u2022 Price book versioned per model + tier\n\u2022 Reconcile ledger vs GPU logs daily",
   "originalText": "Trade-offs to raise\n\u2022 At-least-once + dedup on request_id = exactly-once effect\n\u2022 Ledger is the truth; counters are a cache\n\u2022 Reserve max_tokens up front, settle after\n\u2022 Streams cut mid-way still bill tokens sent\n\u2022 Price book versioned per model + tier\n\u2022 Reconcile ledger vs GPU logs daily",
   "fontSize": 16,
   "fontFamily": 5,
   "textAlign": "left",
   "verticalAlign": "middle",
   "containerId": "q2-token-metering-notes",
   "lineHeight": 1.25,
   "autoResize": true
  }
 ],
 "appState": {
  "viewBackgroundColor": "#ffffff",
  "gridSize": 20
 },
 "files": {}
}