{
 "type": "excalidrawlib",
 "version": 2,
 "source": "https://excalidraw.com",
 "libraryItems": [
  {
   "id": "00-interview-canvas",
   "status": "unpublished",
   "created": 1,
   "name": "Canvas: interview",
   "elements": [
    {
     "id": "canvas-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1810,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#ced4da",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 1390851129,
     "version": 1,
     "versionNonce": 647892280,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "canvas-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "canvas-badge-t",
     "type": "text",
     "x": 20,
     "y": 25,
     "width": 1770,
     "height": 250,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1695753999,
     "version": 1,
     "versionNonce": 207388625,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Canvas",
     "originalText": "Canvas",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "canvas-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-title",
     "type": "text",
     "x": 0,
     "y": 330,
     "width": 900,
     "height": 40,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 311111476,
     "version": 1,
     "versionNonce": 404285458,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "System design interview canvas",
     "originalText": "System design interview canvas",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c0",
     "type": "rectangle",
     "x": 0,
     "y": 390,
     "width": 300,
     "height": 640,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 1570621945,
     "version": 1,
     "versionNonce": 249103478,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "canvas-c0-h",
     "type": "text",
     "x": 14,
     "y": 404,
     "width": 272,
     "height": 26,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 922121677,
     "version": 1,
     "versionNonce": 161042649,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "1. Requirements (5 min)",
     "originalText": "1. Requirements (5 min)",
     "fontSize": 20,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c0-b",
     "type": "text",
     "x": 14,
     "y": 442,
     "width": 272,
     "height": 176,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 369140571,
     "version": 1,
     "versionNonce": 1862494043,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Functional:\n- \n- \nNon-functional:\n- latency\n- availability\n- consistency\nOut of scope:",
     "originalText": "Functional:\n- \n- \nNon-functional:\n- latency\n- availability\n- consistency\nOut of scope:",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c1",
     "type": "rectangle",
     "x": 330,
     "y": 390,
     "width": 300,
     "height": 640,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 1796035740,
     "version": 1,
     "versionNonce": 300026768,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "canvas-c1-h",
     "type": "text",
     "x": 344,
     "y": 404,
     "width": 272,
     "height": 26,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1033639717,
     "version": 1,
     "versionNonce": 389609434,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "2. Numbers (3 min)",
     "originalText": "2. Numbers (3 min)",
     "fontSize": 20,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c1-b",
     "type": "text",
     "x": 344,
     "y": 442,
     "width": 272,
     "height": 132,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1823296039,
     "version": 1,
     "versionNonce": 253877687,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Users / tenants:\nQPS read / write:\nPeak x:\nData per day:\nRetention:\nStorage:",
     "originalText": "Users / tenants:\nQPS read / write:\nPeak x:\nData per day:\nRetention:\nStorage:",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c2",
     "type": "rectangle",
     "x": 660,
     "y": 390,
     "width": 300,
     "height": 640,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 531725348,
     "version": 1,
     "versionNonce": 958804058,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "canvas-c2-h",
     "type": "text",
     "x": 674,
     "y": 404,
     "width": 272,
     "height": 26,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 265695474,
     "version": 1,
     "versionNonce": 1703729685,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "3. API + data model (5 min)",
     "originalText": "3. API + data model (5 min)",
     "fontSize": 20,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c2-b",
     "type": "text",
     "x": 674,
     "y": 442,
     "width": 272,
     "height": 132,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 212984477,
     "version": 1,
     "versionNonce": 949539217,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "POST /...\nGET /...\n\nEntities:\n- \nKey choice:",
     "originalText": "POST /...\nGET /...\n\nEntities:\n- \nKey choice:",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c3",
     "type": "rectangle",
     "x": 990,
     "y": 390,
     "width": 520,
     "height": 640,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 200071089,
     "version": 1,
     "versionNonce": 571981486,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "canvas-c3-h",
     "type": "text",
     "x": 1004,
     "y": 404,
     "width": 492,
     "height": 26,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1243862423,
     "version": 1,
     "versionNonce": 1800188483,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "4. High-level design (10 min)",
     "originalText": "4. High-level design (10 min)",
     "fontSize": 20,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c3-b",
     "type": "text",
     "x": 1004,
     "y": 442,
     "width": 492,
     "height": 66,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 619570853,
     "version": 1,
     "versionNonce": 505913793,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Pattern label:\n\n(drag boxes here)",
     "originalText": "Pattern label:\n\n(drag boxes here)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c4",
     "type": "rectangle",
     "x": 1540,
     "y": 390,
     "width": 300,
     "height": 640,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 1324919353,
     "version": 1,
     "versionNonce": 776213900,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "canvas-c4-h",
     "type": "text",
     "x": 1554,
     "y": 404,
     "width": 272,
     "height": 26,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 442620899,
     "version": 1,
     "versionNonce": 806899910,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "5. Deep dives + wrap (15 min)",
     "originalText": "5. Deep dives + wrap (15 min)",
     "fontSize": 20,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "canvas-c4-b",
     "type": "text",
     "x": 1554,
     "y": 442,
     "width": 272,
     "height": 88,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1599435268,
     "version": 1,
     "versionNonce": 418461139,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Bottleneck 1:\nBottleneck 2:\nFailure modes:\nWhat I'd do next:",
     "originalText": "Bottleneck 1:\nBottleneck 2:\nFailure modes:\nWhat I'd do next:",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "01-read-heavy",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Read heavy: cache in front, replicas behind",
   "elements": [
    {
     "id": "01-read-heavy-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1500,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 269676600,
     "version": 1,
     "versionNonce": 255985077,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-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": 884585952,
     "version": 1,
     "versionNonce": 2132084005,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Read heavy",
     "originalText": "Read heavy",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-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": 1836494975,
     "version": 1,
     "versionNonce": 1349251824,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Read heavy: cache in front, replicas behind",
     "originalText": "Read heavy: cache in front, replicas behind",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-c",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 1999744785,
     "version": 1,
     "versionNonce": 1946412081,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-c-t"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e0"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-c-t",
     "type": "text",
     "x": 10,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1552984409,
     "version": 1,
     "versionNonce": 1287489454,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Client",
     "originalText": "Client",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-c",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-cdn",
     "type": "rectangle",
     "x": 330,
     "y": 400,
     "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": 1066984056,
     "version": 1,
     "versionNonce": 772092315,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-cdn-t"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e0"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-cdn-t",
     "type": "text",
     "x": 340,
     "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": 1048386556,
     "version": 1,
     "versionNonce": 351564608,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "CDN\n(static + edge cache)",
     "originalText": "CDN\n(static + edge cache)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-cdn",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-lb",
     "type": "rectangle",
     "x": 330,
     "y": 550,
     "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": 1289560150,
     "version": 1,
     "versionNonce": 2126508551,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-lb-t"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e1"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-lb-t",
     "type": "text",
     "x": 340,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1475216846,
     "version": 1,
     "versionNonce": 1927728187,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Load balancer",
     "originalText": "Load balancer",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-lb",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-app",
     "type": "rectangle",
     "x": 660,
     "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": 1236683273,
     "version": 1,
     "versionNonce": 314395343,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-app-t"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e2"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e3"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e4"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-app-t",
     "type": "text",
     "x": 670,
     "y": 566.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": 507088657,
     "version": 1,
     "versionNonce": 1795823849,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "App servers\n(stateless)",
     "originalText": "App servers\n(stateless)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-app",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-cache",
     "type": "rectangle",
     "x": 990,
     "y": 400,
     "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": 708506837,
     "version": 1,
     "versionNonce": 1469118511,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-cache-t"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e3"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-cache-t",
     "type": "text",
     "x": 1000,
     "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": 652768598,
     "version": 1,
     "versionNonce": 2100080515,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Cache\n(Redis / Memcached)",
     "originalText": "Cache\n(Redis / Memcached)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-cache",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-pri",
     "type": "rectangle",
     "x": 990,
     "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": 1811180650,
     "version": 1,
     "versionNonce": 168393880,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-pri-t"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e5"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-pri-t",
     "type": "text",
     "x": 1000,
     "y": 716.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": 333377415,
     "version": 1,
     "versionNonce": 1347535309,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Primary DB\n(writes)",
     "originalText": "Primary DB\n(writes)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-pri",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-rep",
     "type": "rectangle",
     "x": 1320,
     "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": 1460814403,
     "version": 1,
     "versionNonce": 1504004732,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-rep-t"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e4"
      },
      {
       "type": "arrow",
       "id": "01-read-heavy-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-rep-t",
     "type": "text",
     "x": 1330,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "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": "Read replicas",
     "originalText": "Read replicas",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-rep",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-e0",
     "type": "arrow",
     "x": 169.2,
     "y": 550.0,
     "width": 171.60000000000002,
     "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": 295334610,
     "version": 1,
     "versionNonce": 401991736,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-e0-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.60000000000002,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "01-read-heavy-c",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "01-read-heavy-cdn",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "01-read-heavy-e0-t",
     "type": "text",
     "x": 215.0,
     "y": 501.0,
     "width": 80,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1159380354,
     "version": 1,
     "versionNonce": 2036236842,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "images, JS",
     "originalText": "images, JS",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-e0",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-e1",
     "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": 279172787,
     "version": 1,
     "versionNonce": 260573196,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-e1-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "01-read-heavy-c",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "01-read-heavy-lb",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "01-read-heavy-e1-t",
     "type": "text",
     "x": 243.0,
     "y": 576.0,
     "width": 24,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1329753548,
     "version": 1,
     "versionNonce": 1914012529,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "API",
     "originalText": "API",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-e1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-e2",
     "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": 1222328496,
     "version": 1,
     "versionNonce": 1656961616,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "01-read-heavy-lb",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "01-read-heavy-app",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "01-read-heavy-e3",
     "type": "arrow",
     "x": 829.2,
     "y": 550.0,
     "width": 171.5999999999999,
     "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": 1490376254,
     "version": 1,
     "versionNonce": 96907016,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-e3-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.5999999999999,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "01-read-heavy-app",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "01-read-heavy-cache",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "01-read-heavy-e3-t",
     "type": "text",
     "x": 867.0,
     "y": 501.0,
     "width": 96,
     "height": 20,
     "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": "1. get / set",
     "originalText": "1. get / set",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-e3",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-e4",
     "type": "arrow",
     "x": 840.0,
     "y": 586.0,
     "width": 480.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": 721762279,
     "version": 1,
     "versionNonce": 502922617,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       480.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "01-read-heavy-app",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "01-read-heavy-rep",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "01-read-heavy-e4-t",
     "type": "text",
     "x": 1020.0,
     "y": 576.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": 2120395275,
     "version": 1,
     "versionNonce": 253207297,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "2. read on miss",
     "originalText": "2. read on miss",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-e5",
     "type": "arrow",
     "x": 829.2,
     "y": 622.0,
     "width": 171.5999999999999,
     "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": 937195260,
     "version": 1,
     "versionNonce": 1234510746,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-e5-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.5999999999999,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "01-read-heavy-app",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "01-read-heavy-pri",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "01-read-heavy-e5-t",
     "type": "text",
     "x": 891.0,
     "y": 651.0,
     "width": 48,
     "height": 20,
     "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": "writes",
     "originalText": "writes",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-e5",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-e6",
     "type": "arrow",
     "x": 1159.2,
     "y": 700.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": 1708957521,
     "version": 1,
     "versionNonce": 1679116189,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-e6-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.5999999999999,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "01-read-heavy-pri",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "01-read-heavy-rep",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "01-read-heavy-e6-t",
     "type": "text",
     "x": 1153.0,
     "y": 651.0,
     "width": 184,
     "height": 20,
     "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": "async replication (lag)",
     "originalText": "async replication (lag)",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-e6",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "01-read-heavy-notes",
     "type": "rectangle",
     "x": 0,
     "y": 850,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 714537755,
     "version": 1,
     "versionNonce": 1929245187,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "01-read-heavy-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "01-read-heavy-notes-t",
     "type": "text",
     "x": 12,
     "y": 860,
     "width": 396,
     "height": 156,
     "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": "Trade-offs to raise\n\u2022 Cache-aside vs read-through\n\u2022 TTL and invalidation on write\n\u2022 Hot keys: replicate or local cache\n\u2022 Replica lag: read-your-writes from primary\n\u2022 Stampede: lock or request coalescing",
     "originalText": "Trade-offs to raise\n\u2022 Cache-aside vs read-through\n\u2022 TTL and invalidation on write\n\u2022 Hot keys: replicate or local cache\n\u2022 Replica lag: read-your-writes from primary\n\u2022 Stampede: lock or request coalescing",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "01-read-heavy-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "02-write-heavy-event-driven",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Write heavy / event driven: accept fast, process async",
   "elements": [
    {
     "id": "02-write-heavy-event-driven-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1500,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 588093311,
     "version": 1,
     "versionNonce": 1849076401,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-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": 1195809358,
     "version": 1,
     "versionNonce": 1783684942,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Write heavy",
     "originalText": "Write heavy",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-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": 1540910401,
     "version": 1,
     "versionNonce": 1633982922,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Write heavy / event driven: accept fast, process async",
     "originalText": "Write heavy / event driven: accept fast, process async",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-p",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 991070208,
     "version": 1,
     "versionNonce": 648200382,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-p-t"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e0"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-p-t",
     "type": "text",
     "x": 10,
     "y": 566.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": 356416555,
     "version": 1,
     "versionNonce": 756849393,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Producers\n(apps, devices)",
     "originalText": "Producers\n(apps, devices)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-p",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-ing",
     "type": "rectangle",
     "x": 330,
     "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": 649821630,
     "version": 1,
     "versionNonce": 996247159,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-ing-t"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e0"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-ing-t",
     "type": "text",
     "x": 340,
     "y": 566.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": 1002170859,
     "version": 1,
     "versionNonce": 51810463,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Ingest API\n(validate, ack)",
     "originalText": "Ingest API\n(validate, ack)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-ing",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-log",
     "type": "rectangle",
     "x": 660,
     "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": 2082899072,
     "version": 1,
     "versionNonce": 783156688,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-log-t"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e1"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-log-t",
     "type": "text",
     "x": 670,
     "y": 566.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": 1128488134,
     "version": 1,
     "versionNonce": 1210883261,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Partitioned log\n(Kafka, key=user_id)",
     "originalText": "Partitioned log\n(Kafka, key=user_id)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-log",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-w",
     "type": "rectangle",
     "x": 990,
     "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": 17581914,
     "version": 1,
     "versionNonce": 625675343,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-w-t"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e2"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e3"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-w-t",
     "type": "text",
     "x": 1000,
     "y": 566.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": 1799361520,
     "version": 1,
     "versionNonce": 1585932014,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Consumer group\n(workers)",
     "originalText": "Consumer group\n(workers)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-w",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-agg",
     "type": "rectangle",
     "x": 1320,
     "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": 1368426742,
     "version": 1,
     "versionNonce": 538981927,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-agg-t"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e3"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-agg-t",
     "type": "text",
     "x": 1330,
     "y": 566.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": 231897702,
     "version": 1,
     "versionNonce": 1961269854,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Aggregate store\n(counters, rollups)",
     "originalText": "Aggregate store\n(counters, rollups)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-agg",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-dlq",
     "type": "rectangle",
     "x": 990,
     "y": 700,
     "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": 1685254564,
     "version": 1,
     "versionNonce": 1709696036,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-dlq-t"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-dlq-t",
     "type": "text",
     "x": 1000,
     "y": 726.0,
     "width": 160,
     "height": 20,
     "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": "Dead letter queue",
     "originalText": "Dead letter queue",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-dlq",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-q",
     "type": "rectangle",
     "x": 1320,
     "y": 400,
     "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": 444688429,
     "version": 1,
     "versionNonce": 2068124765,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-q-t"
      },
      {
       "type": "arrow",
       "id": "02-write-heavy-event-driven-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-q-t",
     "type": "text",
     "x": 1330,
     "y": 426.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1719888007,
     "version": 1,
     "versionNonce": 267352361,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Query API",
     "originalText": "Query API",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-q",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-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": 818661758,
     "version": 1,
     "versionNonce": 289255806,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "02-write-heavy-event-driven-p",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "02-write-heavy-event-driven-ing",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "02-write-heavy-event-driven-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": 896631051,
     "version": 1,
     "versionNonce": 1892478002,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-e1-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "02-write-heavy-event-driven-ing",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "02-write-heavy-event-driven-log",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "02-write-heavy-event-driven-e1-t",
     "type": "text",
     "x": 561.0,
     "y": 576.0,
     "width": 48,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 697086886,
     "version": 1,
     "versionNonce": 472138490,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "append",
     "originalText": "append",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-e1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-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": 1460519318,
     "version": 1,
     "versionNonce": 225810526,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "02-write-heavy-event-driven-log",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "02-write-heavy-event-driven-w",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "02-write-heavy-event-driven-e2-t",
     "type": "text",
     "x": 839.0,
     "y": 576.0,
     "width": 152,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 439717025,
     "version": 1,
     "versionNonce": 1001929,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "poll, commit offset",
     "originalText": "poll, commit offset",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-e3",
     "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": 649677952,
     "version": 1,
     "versionNonce": 435786141,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-e3-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "02-write-heavy-event-driven-w",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "02-write-heavy-event-driven-agg",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "02-write-heavy-event-driven-e3-t",
     "type": "text",
     "x": 1177.0,
     "y": 576.0,
     "width": 136,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1561692720,
     "version": 1,
     "versionNonce": 109525499,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "idempotent upsert",
     "originalText": "idempotent upsert",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-e3",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-e4",
     "type": "arrow",
     "x": 1080.0,
     "y": 622.0,
     "width": 0.0,
     "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": 302003102,
     "version": 1,
     "versionNonce": 893149981,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "02-write-heavy-event-driven-w",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "02-write-heavy-event-driven-dlq",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "02-write-heavy-event-driven-e4-t",
     "type": "text",
     "x": 1036.0,
     "y": 651.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": 1615892811,
     "version": 1,
     "versionNonce": 638019486,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "poison msgs",
     "originalText": "poison msgs",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-e5",
     "type": "arrow",
     "x": 1410.0,
     "y": 472.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": 1083438815,
     "version": 1,
     "versionNonce": 1492026738,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-e5-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "02-write-heavy-event-driven-q",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "02-write-heavy-event-driven-agg",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "02-write-heavy-event-driven-e5-t",
     "type": "text",
     "x": 1394.0,
     "y": 501.0,
     "width": 32,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1564070057,
     "version": 1,
     "versionNonce": 2036465043,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "read",
     "originalText": "read",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-e5",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "02-write-heavy-event-driven-notes",
     "type": "rectangle",
     "x": 0,
     "y": 850,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 527603372,
     "version": 1,
     "versionNonce": 495439556,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "02-write-heavy-event-driven-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "02-write-heavy-event-driven-notes-t",
     "type": "text",
     "x": 12,
     "y": 860,
     "width": 396,
     "height": 156,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 2096236325,
     "version": 1,
     "versionNonce": 2001409496,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 At-least-once + idempotent consumer\n\u2022 Partition key sets ordering + hot partitions\n\u2022 Back pressure: consumer lag alarms\n\u2022 Replay from offset after a bug\n\u2022 DLQ: who drains it?",
     "originalText": "Trade-offs to raise\n\u2022 At-least-once + idempotent consumer\n\u2022 Partition key sets ordering + hot partitions\n\u2022 Back pressure: consumer lag alarms\n\u2022 Replay from offset after a bug\n\u2022 DLQ: who drains it?",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "02-write-heavy-event-driven-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "03-real-time-fanout",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Real time fanout: one event, many open connections",
   "elements": [
    {
     "id": "03-real-time-fanout-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1400,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 2063281257,
     "version": 1,
     "versionNonce": 2078054028,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-badge-t",
     "type": "text",
     "x": 20,
     "y": 25,
     "width": 1360,
     "height": 250,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1339395519,
     "version": 1,
     "versionNonce": 368871839,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Fan-out",
     "originalText": "Fan-out",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-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": 618979931,
     "version": 1,
     "versionNonce": 438892468,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Real time fanout: one event, many open connections",
     "originalText": "Real time fanout: one event, many open connections",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-pub",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 1471609727,
     "version": 1,
     "versionNonce": 1137122203,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-pub-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e0"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-pub-t",
     "type": "text",
     "x": 10,
     "y": 566.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": 2055665571,
     "version": 1,
     "versionNonce": 693373551,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Publisher\n(service or user)",
     "originalText": "Publisher\n(service or user)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-pub",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-bus",
     "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": 99195380,
     "version": 1,
     "versionNonce": 881391735,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-bus-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e0"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e1"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-bus-t",
     "type": "text",
     "x": 340,
     "y": 566.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": 1553714998,
     "version": 1,
     "versionNonce": 629653100,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Pub/sub bus\n(Redis, Kafka, NATS)",
     "originalText": "Pub/sub bus\n(Redis, Kafka, NATS)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-bus",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-g1",
     "type": "rectangle",
     "x": 660,
     "y": 400,
     "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": 116146606,
     "version": 1,
     "versionNonce": 1280285447,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-g1-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e1"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e3"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-g1-t",
     "type": "text",
     "x": 670,
     "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": 390887331,
     "version": 1,
     "versionNonce": 1121481225,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Gateway shard 1\n(WebSockets)",
     "originalText": "Gateway shard 1\n(WebSockets)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-g1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-g2",
     "type": "rectangle",
     "x": 660,
     "y": 700,
     "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": 1574963608,
     "version": 1,
     "versionNonce": 717440071,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-g2-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e2"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-g2-t",
     "type": "text",
     "x": 670,
     "y": 716.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": 1527703408,
     "version": 1,
     "versionNonce": 956887592,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Gateway shard 2\n(WebSockets)",
     "originalText": "Gateway shard 2\n(WebSockets)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-g2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-reg",
     "type": "rectangle",
     "x": 330,
     "y": 400,
     "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": 1415900355,
     "version": 1,
     "versionNonce": 957956675,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-reg-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-reg-t",
     "type": "text",
     "x": 340,
     "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": 838145800,
     "version": 1,
     "versionNonce": 1028162214,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Connection registry\n(user -> gateway)",
     "originalText": "Connection registry\n(user -> gateway)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-reg",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-hist",
     "type": "rectangle",
     "x": 330,
     "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": 1720926263,
     "version": 1,
     "versionNonce": 973838694,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-hist-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-hist-t",
     "type": "text",
     "x": 340,
     "y": 716.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": 858641202,
     "version": 1,
     "versionNonce": 2116481899,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Message history\n(for reconnect)",
     "originalText": "Message history\n(for reconnect)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-hist",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-c1",
     "type": "ellipse",
     "x": 990,
     "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": 1527129487,
     "version": 1,
     "versionNonce": 124468791,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-c1-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e3"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-c1-t",
     "type": "text",
     "x": 1000,
     "y": 426.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 119988829,
     "version": 1,
     "versionNonce": 1200093500,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Clients",
     "originalText": "Clients",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-c1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-c2",
     "type": "ellipse",
     "x": 990,
     "y": 700,
     "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": 2028255630,
     "version": 1,
     "versionNonce": 1113145427,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-c2-t"
      },
      {
       "type": "arrow",
       "id": "03-real-time-fanout-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-c2-t",
     "type": "text",
     "x": 1000,
     "y": 726.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 831698693,
     "version": 1,
     "versionNonce": 1478675320,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Clients",
     "originalText": "Clients",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-c2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-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": 1920828234,
     "version": 1,
     "versionNonce": 1501175504,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-e0-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "03-real-time-fanout-pub",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "03-real-time-fanout-bus",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "03-real-time-fanout-e0-t",
     "type": "text",
     "x": 235.0,
     "y": 576.0,
     "width": 40,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1566099206,
     "version": 1,
     "versionNonce": 345908636,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "event",
     "originalText": "event",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-e0",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-e1",
     "type": "arrow",
     "x": 499.2,
     "y": 550.0,
     "width": 171.59999999999997,
     "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": 946878465,
     "version": 1,
     "versionNonce": 438761610,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-e1-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.59999999999997,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "03-real-time-fanout-bus",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "03-real-time-fanout-g1",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "03-real-time-fanout-e1-t",
     "type": "text",
     "x": 549.0,
     "y": 501.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": 974295421,
     "version": 1,
     "versionNonce": 2018978167,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "topic sub",
     "originalText": "topic sub",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-e1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-e2",
     "type": "arrow",
     "x": 499.2,
     "y": 622.0,
     "width": 171.59999999999997,
     "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": 844846558,
     "version": 1,
     "versionNonce": 1450571438,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.59999999999997,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "03-real-time-fanout-bus",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "03-real-time-fanout-g2",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "03-real-time-fanout-e2-t",
     "type": "text",
     "x": 549.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": 877776916,
     "version": 1,
     "versionNonce": 2072980150,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "topic sub",
     "originalText": "topic sub",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-e3",
     "type": "arrow",
     "x": 840.0,
     "y": 436.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": 8196149,
     "version": 1,
     "versionNonce": 2059322682,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-e3-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "03-real-time-fanout-g1",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "03-real-time-fanout-c1",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "03-real-time-fanout-e3-t",
     "type": "text",
     "x": 899.0,
     "y": 426.0,
     "width": 32,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1477498383,
     "version": 1,
     "versionNonce": 364120812,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "push",
     "originalText": "push",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-e3",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-e4",
     "type": "arrow",
     "x": 840.0,
     "y": 736.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": 514982154,
     "version": 1,
     "versionNonce": 1668748296,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "03-real-time-fanout-g2",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "03-real-time-fanout-c2",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "03-real-time-fanout-e4-t",
     "type": "text",
     "x": 899.0,
     "y": 726.0,
     "width": 32,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 856070306,
     "version": 1,
     "versionNonce": 2053134994,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "push",
     "originalText": "push",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-e5",
     "type": "arrow",
     "x": 660.0,
     "y": 436.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": 766744960,
     "version": 1,
     "versionNonce": 1863693998,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-e5-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       -150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "03-real-time-fanout-g1",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "03-real-time-fanout-reg",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "03-real-time-fanout-e5-t",
     "type": "text",
     "x": 553.0,
     "y": 426.0,
     "width": 64,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1428150522,
     "version": 1,
     "versionNonce": 372587780,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "register",
     "originalText": "register",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-e5",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-e6",
     "type": "arrow",
     "x": 169.2,
     "y": 622.0,
     "width": 171.60000000000002,
     "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": 1700113407,
     "version": 1,
     "versionNonce": 1989259376,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-e6-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.60000000000002,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "03-real-time-fanout-pub",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "03-real-time-fanout-hist",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "03-real-time-fanout-e6-t",
     "type": "text",
     "x": 227.0,
     "y": 651.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": 1723943247,
     "version": 1,
     "versionNonce": 364725392,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "persist",
     "originalText": "persist",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-e6",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "03-real-time-fanout-notes",
     "type": "rectangle",
     "x": 0,
     "y": 850,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 682281554,
     "version": 1,
     "versionNonce": 730160160,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "03-real-time-fanout-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "03-real-time-fanout-notes-t",
     "type": "text",
     "x": 12,
     "y": 860,
     "width": 396,
     "height": 156,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 545625653,
     "version": 1,
     "versionNonce": 118321418,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 WebSocket vs SSE vs long poll\n\u2022 Shard gateways by user or topic\n\u2022 Reconnect: resume from last seq id\n\u2022 Batch/coalesce hot topics\n\u2022 Fallback to polling",
     "originalText": "Trade-offs to raise\n\u2022 WebSocket vs SSE vs long poll\n\u2022 Shard gateways by user or topic\n\u2022 Reconnect: resume from last seq id\n\u2022 Batch/coalesce hot topics\n\u2022 Fallback to polling",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "03-real-time-fanout-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "04-batch-analytics",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Batch and analytics: land raw data, compute later",
   "elements": [
    {
     "id": "04-batch-analytics-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1500,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 649187325,
     "version": 1,
     "versionNonce": 1998679711,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-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": 627813882,
     "version": 1,
     "versionNonce": 2037347502,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Batch",
     "originalText": "Batch",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-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": 1504988819,
     "version": 1,
     "versionNonce": 669638768,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Batch and analytics: land raw data, compute later",
     "originalText": "Batch and analytics: land raw data, compute later",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-src",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 562571391,
     "version": 1,
     "versionNonce": 91898035,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-src-t"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e0"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-src-t",
     "type": "text",
     "x": 10,
     "y": 566.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": 61172930,
     "version": 1,
     "versionNonce": 441402618,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Sources\n(events, DB CDC)",
     "originalText": "Sources\n(events, DB CDC)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-src",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-lake",
     "type": "rectangle",
     "x": 330,
     "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": 598077321,
     "version": 1,
     "versionNonce": 1863197322,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-lake-t"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e0"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-lake-t",
     "type": "text",
     "x": 340,
     "y": 566.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": 836682997,
     "version": 1,
     "versionNonce": 906419965,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Raw store\n(S3 data lake)",
     "originalText": "Raw store\n(S3 data lake)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-lake",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-batch",
     "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": 120232147,
     "version": 1,
     "versionNonce": 1081622283,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-batch-t"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e1"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-batch-t",
     "type": "text",
     "x": 670,
     "y": 566.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": 913882254,
     "version": 1,
     "versionNonce": 1258282194,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Batch job\n(Spark, hourly)",
     "originalText": "Batch job\n(Spark, hourly)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-batch",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-dw",
     "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": 1033108813,
     "version": 1,
     "versionNonce": 1400113411,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-dw-t"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e2"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e3"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-dw-t",
     "type": "text",
     "x": 1000,
     "y": 566.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": 1113963314,
     "version": 1,
     "versionNonce": 1799645191,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Warehouse\n(columnar)",
     "originalText": "Warehouse\n(columnar)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-dw",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-bi",
     "type": "ellipse",
     "x": 1320,
     "y": 550,
     "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": 562957180,
     "version": 1,
     "versionNonce": 261582917,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-bi-t"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e3"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-bi-t",
     "type": "text",
     "x": 1330,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1519490801,
     "version": 1,
     "versionNonce": 1967786446,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Dashboards / ad hoc SQL",
     "originalText": "Dashboards / ad hoc SQL",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-bi",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-stream",
     "type": "rectangle",
     "x": 660,
     "y": 400,
     "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": 1806584668,
     "version": 1,
     "versionNonce": 561623934,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-stream-t"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e4"
      },
      {
       "type": "arrow",
       "id": "04-batch-analytics-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-stream-t",
     "type": "text",
     "x": 670,
     "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": 652132316,
     "version": 1,
     "versionNonce": 80336782,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Stream processor\n(Flink, minute windows)",
     "originalText": "Stream processor\n(Flink, minute windows)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-stream",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-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": 1890322093,
     "version": 1,
     "versionNonce": 786442398,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-e0-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "04-batch-analytics-src",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "04-batch-analytics-lake",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "04-batch-analytics-e0-t",
     "type": "text",
     "x": 231.0,
     "y": 576.0,
     "width": 48,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 16889874,
     "version": 1,
     "versionNonce": 643396776,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "append",
     "originalText": "append",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-e0",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-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": 740223520,
     "version": 1,
     "versionNonce": 607991153,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "04-batch-analytics-lake",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "04-batch-analytics-batch",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "04-batch-analytics-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": 2033636663,
     "version": 1,
     "versionNonce": 516841822,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "04-batch-analytics-batch",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "04-batch-analytics-dw",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "04-batch-analytics-e2-t",
     "type": "text",
     "x": 899.0,
     "y": 576.0,
     "width": 32,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 265236939,
     "version": 1,
     "versionNonce": 1400082662,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "load",
     "originalText": "load",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-e3",
     "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": 2072265938,
     "version": 1,
     "versionNonce": 455736474,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "04-batch-analytics-dw",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "04-batch-analytics-bi",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "04-batch-analytics-e4",
     "type": "arrow",
     "x": 180.0,
     "y": 565.5454545454545,
     "width": 480.0,
     "height": 109.09090909090907,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 2
     },
     "seed": 244051093,
     "version": 1,
     "versionNonce": 1067275002,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       480.0,
       -109.09090909090907
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "04-batch-analytics-src",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "04-batch-analytics-stream",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "04-batch-analytics-e4-t",
     "type": "text",
     "x": 380.0,
     "y": 501.0,
     "width": 80,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 821653593,
     "version": 1,
     "versionNonce": 1189349777,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "speed path",
     "originalText": "speed path",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-e5",
     "type": "arrow",
     "x": 829.2,
     "y": 472.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": 181242850,
     "version": 1,
     "versionNonce": 419812754,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-e5-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.5999999999999,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "04-batch-analytics-stream",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "04-batch-analytics-dw",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "04-batch-analytics-e5-t",
     "type": "text",
     "x": 863.0,
     "y": 501.0,
     "width": 104,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1942080813,
     "version": 1,
     "versionNonce": 119682499,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "approx, fresh",
     "originalText": "approx, fresh",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-e5",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "04-batch-analytics-notes",
     "type": "rectangle",
     "x": 0,
     "y": 700,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 272167094,
     "version": 1,
     "versionNonce": 1903737355,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "04-batch-analytics-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "04-batch-analytics-notes-t",
     "type": "text",
     "x": 12,
     "y": 710,
     "width": 396,
     "height": 156,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1398499908,
     "version": 1,
     "versionNonce": 856430244,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 Freshness vs cost\n\u2022 Lambda (batch+stream) vs Kappa (stream only)\n\u2022 Late data: watermarks\n\u2022 Partition by date for cheap scans\n\u2022 Reprocess raw data when logic changes",
     "originalText": "Trade-offs to raise\n\u2022 Freshness vs cost\n\u2022 Lambda (batch+stream) vs Kappa (stream only)\n\u2022 Late data: watermarks\n\u2022 Partition by date for cheap scans\n\u2022 Reprocess raw data when logic changes",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "04-batch-analytics-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "05-search-filtering",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Search and filtering: DB is truth, index is a copy",
   "elements": [
    {
     "id": "05-search-filtering-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1400,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 1190502837,
     "version": 1,
     "versionNonce": 1942810372,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-badge-t",
     "type": "text",
     "x": 20,
     "y": 25,
     "width": 1360,
     "height": 250,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 2053150340,
     "version": 1,
     "versionNonce": 1063673567,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Search",
     "originalText": "Search",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-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": 1114940396,
     "version": 1,
     "versionNonce": 870111104,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Search and filtering: DB is truth, index is a copy",
     "originalText": "Search and filtering: DB is truth, index is a copy",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-db",
     "type": "rectangle",
     "x": 0,
     "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": 1922119102,
     "version": 1,
     "versionNonce": 588987925,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-db-t"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e0"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-db-t",
     "type": "text",
     "x": 10,
     "y": 566.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": 1789442529,
     "version": 1,
     "versionNonce": 522362321,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Primary DB\n(source of truth)",
     "originalText": "Primary DB\n(source of truth)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-db",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-cdc",
     "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": 1685192165,
     "version": 1,
     "versionNonce": 1898882740,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-cdc-t"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e0"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-cdc-t",
     "type": "text",
     "x": 340,
     "y": 566.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": 1357122901,
     "version": 1,
     "versionNonce": 311583110,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Change stream\n(CDC / outbox)",
     "originalText": "Change stream\n(CDC / outbox)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-cdc",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-idx",
     "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": 1033535610,
     "version": 1,
     "versionNonce": 1839700616,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-idx-t"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e1"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-idx-t",
     "type": "text",
     "x": 670,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 314051310,
     "version": 1,
     "versionNonce": 913495727,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Indexer",
     "originalText": "Indexer",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-idx",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-es",
     "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": 1300430509,
     "version": 1,
     "versionNonce": 525488742,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-es-t"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e2"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-es-t",
     "type": "text",
     "x": 1000,
     "y": 566.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": 663343194,
     "version": 1,
     "versionNonce": 1572745252,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Search index\n(shards x replicas)",
     "originalText": "Search index\n(shards x replicas)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-es",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-api",
     "type": "rectangle",
     "x": 990,
     "y": 400,
     "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": 614090117,
     "version": 1,
     "versionNonce": 1087089873,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-api-t"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e3"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-api-t",
     "type": "text",
     "x": 1000,
     "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": 589504031,
     "version": 1,
     "versionNonce": 2008910112,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Search API\n(query + rank)",
     "originalText": "Search API\n(query + rank)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-api",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-c",
     "type": "ellipse",
     "x": 660,
     "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": 943122534,
     "version": 1,
     "versionNonce": 404265717,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-c-t"
      },
      {
       "type": "arrow",
       "id": "05-search-filtering-e3"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-c-t",
     "type": "text",
     "x": 670,
     "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": 1710500231,
     "version": 1,
     "versionNonce": 2092769115,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Client\n(typeahead, filters)",
     "originalText": "Client\n(typeahead, filters)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-c",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-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": 699199910,
     "version": 1,
     "versionNonce": 960836460,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "05-search-filtering-db",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "05-search-filtering-cdc",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "05-search-filtering-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": 693491441,
     "version": 1,
     "versionNonce": 1853372069,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "05-search-filtering-cdc",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "05-search-filtering-idx",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "05-search-filtering-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": 1734349672,
     "version": 1,
     "versionNonce": 1456492750,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "05-search-filtering-idx",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "05-search-filtering-es",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "05-search-filtering-e2-t",
     "type": "text",
     "x": 875.0,
     "y": 576.0,
     "width": 80,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1809368695,
     "version": 1,
     "versionNonce": 840716951,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "upsert doc",
     "originalText": "upsert doc",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-e3",
     "type": "arrow",
     "x": 840.0,
     "y": 436.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": 1531648886,
     "version": 1,
     "versionNonce": 1368056915,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-e3-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "05-search-filtering-c",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "05-search-filtering-api",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "05-search-filtering-e3-t",
     "type": "text",
     "x": 875.0,
     "y": 426.0,
     "width": 80,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 395970335,
     "version": 1,
     "versionNonce": 1571754094,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "q, filters",
     "originalText": "q, filters",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-e3",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-e4",
     "type": "arrow",
     "x": 1080.0,
     "y": 472.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": 83678550,
     "version": 1,
     "versionNonce": 1451611685,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "05-search-filtering-api",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "05-search-filtering-es",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "05-search-filtering-e4-t",
     "type": "text",
     "x": 1060.0,
     "y": 501.0,
     "width": 40,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1969975946,
     "version": 1,
     "versionNonce": 1891753122,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "query",
     "originalText": "query",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "05-search-filtering-notes",
     "type": "rectangle",
     "x": 0,
     "y": 700,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 77661512,
     "version": 1,
     "versionNonce": 1650747323,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "05-search-filtering-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "05-search-filtering-notes-t",
     "type": "text",
     "x": 12,
     "y": 710,
     "width": 396,
     "height": 156,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1423772582,
     "version": 1,
     "versionNonce": 1268965730,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 Index freshness (seconds behind DB)\n\u2022 Inverted index + analyzers\n\u2022 Typo tolerance: fuzzy / n-grams\n\u2022 Shards for size, replicas for QPS\n\u2022 Ranking: BM25 + business signals",
     "originalText": "Trade-offs to raise\n\u2022 Index freshness (seconds behind DB)\n\u2022 Inverted index + analyzers\n\u2022 Typo tolerance: fuzzy / n-grams\n\u2022 Shards for size, replicas for QPS\n\u2022 Ranking: BM25 + business signals",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "05-search-filtering-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "06-file-media",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: File and media: metadata in DB, bytes in blob storage",
   "elements": [
    {
     "id": "06-file-media-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1400,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 276126872,
     "version": 1,
     "versionNonce": 484686861,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-badge-t",
     "type": "text",
     "x": 20,
     "y": 25,
     "width": 1360,
     "height": 250,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 981631322,
     "version": 1,
     "versionNonce": 450024946,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Files + media",
     "originalText": "Files + media",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-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": 361040388,
     "version": 1,
     "versionNonce": 1140589864,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "File and media: metadata in DB, bytes in blob storage",
     "originalText": "File and media: metadata in DB, bytes in blob storage",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-c",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 1167889501,
     "version": 1,
     "versionNonce": 170029958,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-c-t"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e0"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e2"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-c-t",
     "type": "text",
     "x": 10,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 779757290,
     "version": 1,
     "versionNonce": 1161557138,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Client",
     "originalText": "Client",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-c",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-api",
     "type": "rectangle",
     "x": 330,
     "y": 400,
     "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": 556436892,
     "version": 1,
     "versionNonce": 1813567875,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-api-t"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e0"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-api-t",
     "type": "text",
     "x": 340,
     "y": 426.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1110717269,
     "version": 1,
     "versionNonce": 1743532651,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Upload API",
     "originalText": "Upload API",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-api",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-meta",
     "type": "rectangle",
     "x": 660,
     "y": 400,
     "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": 641530463,
     "version": 1,
     "versionNonce": 2124342558,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-meta-t"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-meta-t",
     "type": "text",
     "x": 670,
     "y": 426.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1404662648,
     "version": 1,
     "versionNonce": 384237252,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Metadata DB",
     "originalText": "Metadata DB",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-meta",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-obj",
     "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": 1198563464,
     "version": 1,
     "versionNonce": 247074473,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-obj-t"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e2"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e3"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-obj-t",
     "type": "text",
     "x": 670,
     "y": 716.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": 787456634,
     "version": 1,
     "versionNonce": 1826722755,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Object storage\n(S3)",
     "originalText": "Object storage\n(S3)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-obj",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-tx",
     "type": "rectangle",
     "x": 990,
     "y": 700,
     "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": 311016187,
     "version": 1,
     "versionNonce": 1155017300,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-tx-t"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e3"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-tx-t",
     "type": "text",
     "x": 1000,
     "y": 716.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": 72291701,
     "version": 1,
     "versionNonce": 380387730,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Transcode / thumbnail\nworkers",
     "originalText": "Transcode / thumbnail\nworkers",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-tx",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-cdn",
     "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": 1119061846,
     "version": 1,
     "versionNonce": 359671404,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-cdn-t"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e4"
      },
      {
       "type": "arrow",
       "id": "06-file-media-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-cdn-t",
     "type": "text",
     "x": 340,
     "y": 726.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 955235052,
     "version": 1,
     "versionNonce": 286141623,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "CDN",
     "originalText": "CDN",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-cdn",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-e0",
     "type": "arrow",
     "x": 169.2,
     "y": 550.0,
     "width": 171.60000000000002,
     "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": 1135808359,
     "version": 1,
     "versionNonce": 522601131,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-e0-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.60000000000002,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "06-file-media-c",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "06-file-media-api",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "06-file-media-e0-t",
     "type": "text",
     "x": 187.0,
     "y": 501.0,
     "width": 136,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1948942436,
     "version": 1,
     "versionNonce": 49591107,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "1. request upload",
     "originalText": "1. request upload",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-e0",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-e1",
     "type": "arrow",
     "x": 510.0,
     "y": 436.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": 1456645773,
     "version": 1,
     "versionNonce": 1794266953,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-e1-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "06-file-media-api",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "06-file-media-meta",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "06-file-media-e1-t",
     "type": "text",
     "x": 529.0,
     "y": 426.0,
     "width": 112,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1150448851,
     "version": 1,
     "versionNonce": 555016297,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "status=pending",
     "originalText": "status=pending",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-e1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-e2",
     "type": "arrow",
     "x": 180.0,
     "y": 606.4545454545455,
     "width": 480.0,
     "height": 109.09090909090901,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 2
     },
     "seed": 185567036,
     "version": 1,
     "versionNonce": 1024075532,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       480.0,
       109.09090909090901
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "06-file-media-c",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "06-file-media-obj",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "06-file-media-e2-t",
     "type": "text",
     "x": 320.0,
     "y": 651.0,
     "width": 200,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 470090439,
     "version": 1,
     "versionNonce": 693418589,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "2. PUT parts (signed URL)",
     "originalText": "2. PUT parts (signed URL)",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-e3",
     "type": "arrow",
     "x": 840.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": 1124831726,
     "version": 1,
     "versionNonce": 216379242,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-e3-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "06-file-media-obj",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "06-file-media-tx",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "06-file-media-e3-t",
     "type": "text",
     "x": 867.0,
     "y": 726.0,
     "width": 96,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 778016013,
     "version": 1,
     "versionNonce": 866588009,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "3. on upload",
     "originalText": "3. on upload",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-e3",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-e4",
     "type": "arrow",
     "x": 340.8,
     "y": 700.0,
     "width": 171.60000000000002,
     "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": 1339997165,
     "version": 1,
     "versionNonce": 1309988210,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       -171.60000000000002,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "06-file-media-cdn",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "06-file-media-c",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "06-file-media-e4-t",
     "type": "text",
     "x": 183.0,
     "y": 651.0,
     "width": 144,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 884211553,
     "version": 1,
     "versionNonce": 1245372314,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "4. play / download",
     "originalText": "4. play / download",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-e5",
     "type": "arrow",
     "x": 660.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": 1914210560,
     "version": 1,
     "versionNonce": 764074177,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-e5-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       -150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "06-file-media-obj",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "06-file-media-cdn",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "06-file-media-e5-t",
     "type": "text",
     "x": 561.0,
     "y": 726.0,
     "width": 48,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1161884711,
     "version": 1,
     "versionNonce": 1490358044,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "origin",
     "originalText": "origin",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "06-file-media-e5",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "06-file-media-notes",
     "type": "rectangle",
     "x": 0,
     "y": 850,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 78009938,
     "version": 1,
     "versionNonce": 1075669244,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "06-file-media-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "06-file-media-notes-t",
     "type": "text",
     "x": 12,
     "y": 860,
     "width": 396,
     "height": 156,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 158696257,
     "version": 1,
     "versionNonce": 65911073,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 Never stream big bytes through app servers\n\u2022 Resumable/multipart upload\n\u2022 Signed URLs expire\n\u2022 Hot vs cold tiers (cost)\n\u2022 Dedup by content hash",
     "originalText": "Trade-offs to raise\n\u2022 Never stream big bytes through app servers\n\u2022 Resumable/multipart upload\n\u2022 Signed URLs expire\n\u2022 Hot vs cold tiers (cost)\n\u2022 Dedup by content hash",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "06-file-media-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "07-workflow-orchestration",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Workflow orchestration: a durable state machine",
   "elements": [
    {
     "id": "07-workflow-orchestration-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1400,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 79172990,
     "version": 1,
     "versionNonce": 813709450,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-badge-t",
     "type": "text",
     "x": 20,
     "y": 25,
     "width": 1360,
     "height": 250,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 2039081425,
     "version": 1,
     "versionNonce": 1055185499,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Workflow",
     "originalText": "Workflow",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-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": 1920088989,
     "version": 1,
     "versionNonce": 456474908,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Workflow orchestration: a durable state machine",
     "originalText": "Workflow orchestration: a durable state machine",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-t",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 1856188578,
     "version": 1,
     "versionNonce": 2126015576,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-t-t"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e0"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-t-t",
     "type": "text",
     "x": 10,
     "y": 566.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": 1688291830,
     "version": 1,
     "versionNonce": 1321918115,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trigger\n(API, event, cron)",
     "originalText": "Trigger\n(API, event, cron)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-t",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-orc",
     "type": "rectangle",
     "x": 330,
     "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": 924195863,
     "version": 1,
     "versionNonce": 985979547,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-orc-t"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e0"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e1"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e2"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e3"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-orc-t",
     "type": "text",
     "x": 340,
     "y": 566.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": 1471905176,
     "version": 1,
     "versionNonce": 853085646,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Orchestrator\n(Temporal, Step Fns)",
     "originalText": "Orchestrator\n(Temporal, Step Fns)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-orc",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-st",
     "type": "rectangle",
     "x": 330,
     "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": 600087727,
     "version": 1,
     "versionNonce": 1738163422,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-st-t"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-st-t",
     "type": "text",
     "x": 340,
     "y": 716.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": 1492725227,
     "version": 1,
     "versionNonce": 233596964,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Workflow state\n(durable history)",
     "originalText": "Workflow state\n(durable history)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-st",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-a",
     "type": "rectangle",
     "x": 660,
     "y": 400,
     "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": 557566592,
     "version": 1,
     "versionNonce": 61225319,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-a-t"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-a-t",
     "type": "text",
     "x": 670,
     "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": 303752167,
     "version": 1,
     "versionNonce": 1097767345,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Step A\n(reserve)",
     "originalText": "Step A\n(reserve)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-a",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-b",
     "type": "rectangle",
     "x": 660,
     "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": 1850017270,
     "version": 1,
     "versionNonce": 701138478,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-b-t"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e3"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-b-t",
     "type": "text",
     "x": 670,
     "y": 566.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": 237945867,
     "version": 1,
     "versionNonce": 362859751,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Step B\n(charge)",
     "originalText": "Step B\n(charge)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-b",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-cc",
     "type": "rectangle",
     "x": 660,
     "y": 700,
     "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": 1635874816,
     "version": 1,
     "versionNonce": 1210894223,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-cc-t"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-cc-t",
     "type": "text",
     "x": 670,
     "y": 716.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": 1040296615,
     "version": 1,
     "versionNonce": 1258676655,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Step C\n(ship)",
     "originalText": "Step C\n(ship)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-cc",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-comp",
     "type": "rectangle",
     "x": 990,
     "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": 194293563,
     "version": 1,
     "versionNonce": 1973335386,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-comp-t"
      },
      {
       "type": "arrow",
       "id": "07-workflow-orchestration-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-comp-t",
     "type": "text",
     "x": 1000,
     "y": 566.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": 796080902,
     "version": 1,
     "versionNonce": 676598821,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Compensations\n(undo A, refund B)",
     "originalText": "Compensations\n(undo A, refund B)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-comp",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-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": 1155503872,
     "version": 1,
     "versionNonce": 1914802141,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-e0-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "07-workflow-orchestration-t",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "07-workflow-orchestration-orc",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "07-workflow-orchestration-e0-t",
     "type": "text",
     "x": 219.0,
     "y": 576.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": 15559427,
     "version": 1,
     "versionNonce": 1130620378,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "start(id)",
     "originalText": "start(id)",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-e0",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-e1",
     "type": "arrow",
     "x": 420.0,
     "y": 622.0,
     "width": 0.0,
     "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": 1563975175,
     "version": 1,
     "versionNonce": 1412727127,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-e1-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "07-workflow-orchestration-orc",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "07-workflow-orchestration-st",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "07-workflow-orchestration-e1-t",
     "type": "text",
     "x": 352.0,
     "y": 651.0,
     "width": 136,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1389567516,
     "version": 1,
     "versionNonce": 1049889717,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "persist each step",
     "originalText": "persist each step",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-e1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-e2",
     "type": "arrow",
     "x": 499.2,
     "y": 550.0,
     "width": 171.59999999999997,
     "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": 147947538,
     "version": 1,
     "versionNonce": 1329498207,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.59999999999997,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "07-workflow-orchestration-orc",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "07-workflow-orchestration-a",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "07-workflow-orchestration-e3",
     "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": 935726745,
     "version": 1,
     "versionNonce": 1531516258,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "07-workflow-orchestration-orc",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "07-workflow-orchestration-b",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "07-workflow-orchestration-e4",
     "type": "arrow",
     "x": 499.2,
     "y": 622.0,
     "width": 171.59999999999997,
     "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": 785798162,
     "version": 1,
     "versionNonce": 4590954,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.59999999999997,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "07-workflow-orchestration-orc",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "07-workflow-orchestration-cc",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "07-workflow-orchestration-e5",
     "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": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 2
     },
     "seed": 1440243342,
     "version": 1,
     "versionNonce": 1639073805,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-e5-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "07-workflow-orchestration-b",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "07-workflow-orchestration-comp",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "07-workflow-orchestration-e5-t",
     "type": "text",
     "x": 875.0,
     "y": 576.0,
     "width": 80,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 360307211,
     "version": 1,
     "versionNonce": 2038578867,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "on failure",
     "originalText": "on failure",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-e5",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "07-workflow-orchestration-notes",
     "type": "rectangle",
     "x": 0,
     "y": 850,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1197990395,
     "version": 1,
     "versionNonce": 863202765,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "07-workflow-orchestration-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "07-workflow-orchestration-notes-t",
     "type": "text",
     "x": 12,
     "y": 860,
     "width": 396,
     "height": 156,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1065922394,
     "version": 1,
     "versionNonce": 21262380,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 Orchestration vs choreography\n\u2022 Each step idempotent + retry policy\n\u2022 Timeouts and human waits\n\u2022 Saga compensation, not rollback\n\u2022 Visibility: find stuck runs",
     "originalText": "Trade-offs to raise\n\u2022 Orchestration vs choreography\n\u2022 Each step idempotent + retry policy\n\u2022 Timeouts and human waits\n\u2022 Saga compensation, not rollback\n\u2022 Visibility: find stuck runs",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "07-workflow-orchestration-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "08-transactional-financial",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Transactional / financial: ledger is truth",
   "elements": [
    {
     "id": "08-transactional-financial-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1400,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 390205077,
     "version": 1,
     "versionNonce": 1134595847,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-badge-t",
     "type": "text",
     "x": 20,
     "y": 25,
     "width": 1360,
     "height": 250,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 385487906,
     "version": 1,
     "versionNonce": 617896093,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Payments",
     "originalText": "Payments",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-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": 1715887401,
     "version": 1,
     "versionNonce": 178958210,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Transactional / financial: ledger is truth",
     "originalText": "Transactional / financial: ledger is truth",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-c",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 1692125396,
     "version": 1,
     "versionNonce": 96611648,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-c-t"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e0"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-c-t",
     "type": "text",
     "x": 10,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1286970024,
     "version": 1,
     "versionNonce": 1306720430,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Client",
     "originalText": "Client",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-c",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-api",
     "type": "rectangle",
     "x": 330,
     "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": 999909489,
     "version": 1,
     "versionNonce": 362850479,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-api-t"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e0"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e1"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-api-t",
     "type": "text",
     "x": 340,
     "y": 566.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": 666802866,
     "version": 1,
     "versionNonce": 1672960502,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Payment API\n(idempotency key)",
     "originalText": "Payment API\n(idempotency key)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-api",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-led",
     "type": "rectangle",
     "x": 660,
     "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": 1400738089,
     "version": 1,
     "versionNonce": 2122533125,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-led-t"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e1"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e3"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-led-t",
     "type": "text",
     "x": 670,
     "y": 566.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": 641939353,
     "version": 1,
     "versionNonce": 1220529104,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Ledger DB\n(double-entry, ACID)",
     "originalText": "Ledger DB\n(double-entry, ACID)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-led",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-ob",
     "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": 621706037,
     "version": 1,
     "versionNonce": 188068319,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-ob-t"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e3"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-ob-t",
     "type": "text",
     "x": 670,
     "y": 716.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": 1843591968,
     "version": 1,
     "versionNonce": 598321627,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Outbox table\n(same txn)",
     "originalText": "Outbox table\n(same txn)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-ob",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-bus",
     "type": "rectangle",
     "x": 990,
     "y": 700,
     "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": 69062037,
     "version": 1,
     "versionNonce": 987587880,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-bus-t"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-bus-t",
     "type": "text",
     "x": 1000,
     "y": 726.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 365466112,
     "version": 1,
     "versionNonce": 133833464,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Event bus",
     "originalText": "Event bus",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-bus",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-psp",
     "type": "rectangle",
     "x": 660,
     "y": 400,
     "width": 180,
     "height": 72,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#f1f3f5",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 179796361,
     "version": 1,
     "versionNonce": 571630913,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-psp-t"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e2"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-psp-t",
     "type": "text",
     "x": 670,
     "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": 1549226796,
     "version": 1,
     "versionNonce": 450612830,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Payment provider\n(Stripe, Adyen)",
     "originalText": "Payment provider\n(Stripe, Adyen)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-psp",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-rec",
     "type": "rectangle",
     "x": 990,
     "y": 400,
     "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": 1617563116,
     "version": 1,
     "versionNonce": 1938688888,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-rec-t"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e5"
      },
      {
       "type": "arrow",
       "id": "08-transactional-financial-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-rec-t",
     "type": "text",
     "x": 1000,
     "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": 218099797,
     "version": 1,
     "versionNonce": 80920074,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Reconciliation job\n(daily)",
     "originalText": "Reconciliation job\n(daily)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-rec",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-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": 1050375824,
     "version": 1,
     "versionNonce": 2101503088,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-e0-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "08-transactional-financial-c",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "08-transactional-financial-api",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "08-transactional-financial-e0-t",
     "type": "text",
     "x": 195.0,
     "y": 576.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": 1132981884,
     "version": 1,
     "versionNonce": 14234933,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "POST /pay + key",
     "originalText": "POST /pay + key",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-e0",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-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": 1962578963,
     "version": 1,
     "versionNonce": 301126734,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-e1-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "08-transactional-financial-api",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "08-transactional-financial-led",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "08-transactional-financial-e1-t",
     "type": "text",
     "x": 529.0,
     "y": 576.0,
     "width": 112,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 394887584,
     "version": 1,
     "versionNonce": 283684098,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "debit + credit",
     "originalText": "debit + credit",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-e1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-e2",
     "type": "arrow",
     "x": 499.2,
     "y": 550.0,
     "width": 171.59999999999997,
     "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": 2035206439,
     "version": 1,
     "versionNonce": 1083162951,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       171.59999999999997,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "08-transactional-financial-api",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "08-transactional-financial-psp",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "08-transactional-financial-e2-t",
     "type": "text",
     "x": 541.0,
     "y": 501.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": 319760307,
     "version": 1,
     "versionNonce": 1140563901,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "charge(key)",
     "originalText": "charge(key)",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-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": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 2
     },
     "seed": 1008396568,
     "version": 1,
     "versionNonce": 881402584,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "08-transactional-financial-led",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "08-transactional-financial-ob",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "08-transactional-financial-e4",
     "type": "arrow",
     "x": 840.0,
     "y": 736.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": 991004122,
     "version": 1,
     "versionNonce": 1977145509,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "08-transactional-financial-ob",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "08-transactional-financial-bus",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "08-transactional-financial-e4-t",
     "type": "text",
     "x": 895.0,
     "y": 726.0,
     "width": 40,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 2121493856,
     "version": 1,
     "versionNonce": 1643084754,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "relay",
     "originalText": "relay",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-e5",
     "type": "arrow",
     "x": 990.0,
     "y": 436.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": 329595264,
     "version": 1,
     "versionNonce": 2057332978,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-e5-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       -150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "08-transactional-financial-rec",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "08-transactional-financial-psp",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "08-transactional-financial-e5-t",
     "type": "text",
     "x": 855.0,
     "y": 426.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": 1234026409,
     "version": 1,
     "versionNonce": 200778942,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "settlement file",
     "originalText": "settlement file",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-e5",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-e6",
     "type": "arrow",
     "x": 1000.8,
     "y": 472.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": 851649605,
     "version": 1,
     "versionNonce": 332738928,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-e6-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       -171.5999999999999,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "08-transactional-financial-rec",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "08-transactional-financial-led",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "08-transactional-financial-e6-t",
     "type": "text",
     "x": 887.0,
     "y": 501.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": 633185882,
     "version": 1,
     "versionNonce": 1424953947,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "compare",
     "originalText": "compare",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-e6",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "08-transactional-financial-notes",
     "type": "rectangle",
     "x": 0,
     "y": 850,
     "width": 420,
     "height": 176,
     "angle": 0,
     "strokeColor": "#e67700",
     "backgroundColor": "#ffec99",
     "fillStyle": "solid",
     "strokeWidth": 1,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1090665198,
     "version": 1,
     "versionNonce": 1307461651,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "08-transactional-financial-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "08-transactional-financial-notes-t",
     "type": "text",
     "x": 12,
     "y": 860,
     "width": 396,
     "height": 156,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 573124783,
     "version": 1,
     "versionNonce": 53554862,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 Idempotency key per request\n\u2022 Double-entry: debits = credits\n\u2022 Outbox: DB write + event atomically\n\u2022 Retries with backoff, never double charge\n\u2022 Reconcile and alert on mismatches",
     "originalText": "Trade-offs to raise\n\u2022 Idempotency key per request\n\u2022 Double-entry: debits = credits\n\u2022 Outbox: DB write + event atomically\n\u2022 Retries with backoff, never double charge\n\u2022 Reconcile and alert on mismatches",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "08-transactional-financial-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "09-recommendation",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Recommendation: generate candidates, then rank",
   "elements": [
    {
     "id": "09-recommendation-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1400,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 2071981132,
     "version": 1,
     "versionNonce": 260537060,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-badge-t",
     "type": "text",
     "x": 20,
     "y": 25,
     "width": 1360,
     "height": 250,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 2086486749,
     "version": 1,
     "versionNonce": 1154370228,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Recs",
     "originalText": "Recs",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-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": 427431139,
     "version": 1,
     "versionNonce": 934986292,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Recommendation: generate candidates, then rank",
     "originalText": "Recommendation: generate candidates, then rank",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-ev",
     "type": "ellipse",
     "x": 0,
     "y": 700,
     "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": 2102877464,
     "version": 1,
     "versionNonce": 1249219059,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-ev-t"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e0"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-ev-t",
     "type": "text",
     "x": 10,
     "y": 716.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": 1226400162,
     "version": 1,
     "versionNonce": 1995711775,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "User events\n(clicks, views)",
     "originalText": "User events\n(clicks, views)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-ev",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-fs",
     "type": "rectangle",
     "x": 330,
     "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": 2001014987,
     "version": 1,
     "versionNonce": 2002911414,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-fs-t"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e0"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e1"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-fs-t",
     "type": "text",
     "x": 340,
     "y": 726.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 508965897,
     "version": 1,
     "versionNonce": 855772366,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Feature store",
     "originalText": "Feature store",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-fs",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-tr",
     "type": "rectangle",
     "x": 660,
     "y": 700,
     "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": 1338632473,
     "version": 1,
     "versionNonce": 368741222,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-tr-t"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e1"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-tr-t",
     "type": "text",
     "x": 670,
     "y": 716.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": 2031284043,
     "version": 1,
     "versionNonce": 75181073,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Offline training\n(daily)",
     "originalText": "Offline training\n(daily)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-tr",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-req",
     "type": "ellipse",
     "x": 0,
     "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": 1243774778,
     "version": 1,
     "versionNonce": 1971264699,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-req-t"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e3"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-req-t",
     "type": "text",
     "x": 10,
     "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": 328411397,
     "version": 1,
     "versionNonce": 1930377202,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Request\n(user, context)",
     "originalText": "Request\n(user, context)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-req",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-cg",
     "type": "rectangle",
     "x": 330,
     "y": 400,
     "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": 1153874070,
     "version": 1,
     "versionNonce": 1661501011,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-cg-t"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e3"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-cg-t",
     "type": "text",
     "x": 340,
     "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": 901243977,
     "version": 1,
     "versionNonce": 904987393,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Candidate generation\n(1000s, cheap)",
     "originalText": "Candidate generation\n(1000s, cheap)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-cg",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-rk",
     "type": "rectangle",
     "x": 660,
     "y": 400,
     "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": 320459813,
     "version": 1,
     "versionNonce": 387848845,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-rk-t"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e2"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e4"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e5"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e6"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-rk-t",
     "type": "text",
     "x": 670,
     "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": 608771575,
     "version": 1,
     "versionNonce": 1124460935,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Ranking model\n(100s, expensive)",
     "originalText": "Ranking model\n(100s, expensive)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-rk",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-rr",
     "type": "rectangle",
     "x": 990,
     "y": 400,
     "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": 1544270864,
     "version": 1,
     "versionNonce": 569534435,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-rr-t"
      },
      {
       "type": "arrow",
       "id": "09-recommendation-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-rr-t",
     "type": "text",
     "x": 1000,
     "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": 1200734954,
     "version": 1,
     "versionNonce": 483946434,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Re-rank / filters\n(diversity, rules)",
     "originalText": "Re-rank / filters\n(diversity, rules)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-rr",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-e0",
     "type": "arrow",
     "x": 180.0,
     "y": 736.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": 1568472786,
     "version": 1,
     "versionNonce": 993785024,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "09-recommendation-ev",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "09-recommendation-fs",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "09-recommendation-e1",
     "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": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 2
     },
     "seed": 2138412470,
     "version": 1,
     "versionNonce": 2087958218,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "09-recommendation-fs",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "09-recommendation-tr",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "09-recommendation-e2",
     "type": "arrow",
     "x": 750.0,
     "y": 700.0,
     "width": 0.0,
     "height": 228.0,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 2
     },
     "seed": 1692562947,
     "version": 1,
     "versionNonce": 106662966,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       -228.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "09-recommendation-tr",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "09-recommendation-rk",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "09-recommendation-e2-t",
     "type": "text",
     "x": 702.0,
     "y": 576.0,
     "width": 96,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 683180148,
     "version": 1,
     "versionNonce": 15420946,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "deploy model",
     "originalText": "deploy model",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-e3",
     "type": "arrow",
     "x": 180.0,
     "y": 436.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": 2111818698,
     "version": 1,
     "versionNonce": 1936000749,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "09-recommendation-req",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "09-recommendation-cg",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "09-recommendation-e4",
     "type": "arrow",
     "x": 510.0,
     "y": 436.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": 1741262778,
     "version": 1,
     "versionNonce": 1296869832,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "09-recommendation-cg",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "09-recommendation-rk",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "09-recommendation-e5",
     "type": "arrow",
     "x": 840.0,
     "y": 436.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": 604332897,
     "version": 1,
     "versionNonce": 1787484620,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "09-recommendation-rk",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "09-recommendation-rr",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "09-recommendation-e6",
     "type": "arrow",
     "x": 459.6,
     "y": 700.0,
     "width": 250.79999999999995,
     "height": 228.0,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "dashed",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 2
     },
     "seed": 1477297580,
     "version": 1,
     "versionNonce": 1615363606,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-e6-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       250.79999999999995,
       -228.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "09-recommendation-fs",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "09-recommendation-rk",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "09-recommendation-e6-t",
     "type": "text",
     "x": 525.0,
     "y": 576.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": 1357544872,
     "version": 1,
     "versionNonce": 519301701,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "online features",
     "originalText": "online features",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-e6",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "09-recommendation-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": 1423027308,
     "version": 1,
     "versionNonce": 7479173,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "09-recommendation-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "09-recommendation-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": 1393921253,
     "version": 1,
     "versionNonce": 1452869879,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 Offline vs online features\n\u2022 Cold start: popular / content-based\n\u2022 Explore vs exploit\n\u2022 Feedback loop: what we show becomes events\n\u2022 Latency budget per stage\n\u2022 Metrics: CTR vs long-term retention",
     "originalText": "Trade-offs to raise\n\u2022 Offline vs online features\n\u2022 Cold start: popular / content-based\n\u2022 Explore vs exploit\n\u2022 Feedback loop: what we show becomes events\n\u2022 Latency budget per stage\n\u2022 Metrics: CTR vs long-term retention",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "09-recommendation-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  },
  {
   "id": "10-events-notifications",
   "status": "unpublished",
   "created": 1,
   "name": "Pattern: Events and notifications: one event, many channels",
   "elements": [
    {
     "id": "10-events-notifications-badge",
     "type": "rectangle",
     "x": 0,
     "y": 0,
     "width": 1500,
     "height": 300,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#a5d8ff",
     "fillStyle": "solid",
     "strokeWidth": 4,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 1710511787,
     "version": 1,
     "versionNonce": 515573653,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-badge-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-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": 840701765,
     "version": 1,
     "versionNonce": 50343942,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Notify",
     "originalText": "Notify",
     "fontSize": 200,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-badge",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-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": 1244823086,
     "version": 1,
     "versionNonce": 1087538183,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Events and notifications: one event, many channels",
     "originalText": "Events and notifications: one event, many channels",
     "fontSize": 32,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": null,
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-src",
     "type": "ellipse",
     "x": 0,
     "y": 550,
     "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": 1598681341,
     "version": 1,
     "versionNonce": 279075610,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-src-t"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e0"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-src-t",
     "type": "text",
     "x": 10,
     "y": 566.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": 1687489987,
     "version": 1,
     "versionNonce": 1675729002,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Event sources\n(order shipped)",
     "originalText": "Event sources\n(order shipped)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-src",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-ns",
     "type": "rectangle",
     "x": 330,
     "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": 328138490,
     "version": 1,
     "versionNonce": 1549234735,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-ns-t"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e0"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e1"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e2"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-ns-t",
     "type": "text",
     "x": 340,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1838472558,
     "version": 1,
     "versionNonce": 1181782803,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Notification service",
     "originalText": "Notification service",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-ns",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-pref",
     "type": "rectangle",
     "x": 330,
     "y": 400,
     "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": 207309914,
     "version": 1,
     "versionNonce": 1205329786,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-pref-t"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e1"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-pref-t",
     "type": "text",
     "x": 340,
     "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": 436840513,
     "version": 1,
     "versionNonce": 221695533,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Preferences +\nsuppression + dedup",
     "originalText": "Preferences +\nsuppression + dedup",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-pref",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-q",
     "type": "rectangle",
     "x": 660,
     "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": 1226742262,
     "version": 1,
     "versionNonce": 639582432,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-q-t"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e2"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e3"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-q-t",
     "type": "text",
     "x": 670,
     "y": 576.0,
     "width": 160,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1070841497,
     "version": 1,
     "versionNonce": 1141293140,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Per-channel queues",
     "originalText": "Per-channel queues",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-q",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-w",
     "type": "rectangle",
     "x": 990,
     "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": 1873639735,
     "version": 1,
     "versionNonce": 1355497595,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-w-t"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e3"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e4"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-w-t",
     "type": "text",
     "x": 1000,
     "y": 566.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": 815395442,
     "version": 1,
     "versionNonce": 1603522945,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Channel workers\n(rate limited)",
     "originalText": "Channel workers\n(rate limited)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-w",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-prov",
     "type": "rectangle",
     "x": 1320,
     "y": 550,
     "width": 180,
     "height": 72,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "#f1f3f5",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": {
      "type": 3
     },
     "seed": 1837162109,
     "version": 1,
     "versionNonce": 124602635,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-prov-t"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e4"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-prov-t",
     "type": "text",
     "x": 1330,
     "y": 566.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": 1718165849,
     "version": 1,
     "versionNonce": 873750152,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Providers\n(APNs, FCM, SES, Twilio)",
     "originalText": "Providers\n(APNs, FCM, SES, Twilio)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-prov",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-log",
     "type": "rectangle",
     "x": 990,
     "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": 346075148,
     "version": 1,
     "versionNonce": 212497939,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-log-t"
      },
      {
       "type": "arrow",
       "id": "10-events-notifications-e5"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-log-t",
     "type": "text",
     "x": 1000,
     "y": 716.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": 1764741985,
     "version": 1,
     "versionNonce": 1936430753,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Delivery log\n(sent, opened)",
     "originalText": "Delivery log\n(sent, opened)",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-log",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-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": 595164486,
     "version": 1,
     "versionNonce": 1229255375,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "10-events-notifications-src",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "10-events-notifications-ns",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "10-events-notifications-e1",
     "type": "arrow",
     "x": 420.0,
     "y": 550.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": 2085529092,
     "version": 1,
     "versionNonce": 210354178,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-e1-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       -78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "10-events-notifications-ns",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "10-events-notifications-pref",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "10-events-notifications-e1-t",
     "type": "text",
     "x": 348.0,
     "y": 501.0,
     "width": 144,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 546797965,
     "version": 1,
     "versionNonce": 733420649,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "allowed? seen key?",
     "originalText": "allowed? seen key?",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-e1",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-e2",
     "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": 2028015217,
     "version": 1,
     "versionNonce": 1781838706,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-e2-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "10-events-notifications-ns",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "10-events-notifications-q",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "10-events-notifications-e2-t",
     "type": "text",
     "x": 557.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": 1476020710,
     "version": 1,
     "versionNonce": 1210090034,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "fan out",
     "originalText": "fan out",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-e2",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-e3",
     "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": 1278920445,
     "version": 1,
     "versionNonce": 1098406855,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "10-events-notifications-q",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "10-events-notifications-w",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "10-events-notifications-e4",
     "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": 1117417594,
     "version": 1,
     "versionNonce": 1744655514,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-e4-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       150.0,
       0.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "10-events-notifications-w",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "10-events-notifications-prov",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "10-events-notifications-e4-t",
     "type": "text",
     "x": 1229.0,
     "y": 576.0,
     "width": 32,
     "height": 20,
     "angle": 0,
     "strokeColor": "#1e1e1e",
     "backgroundColor": "transparent",
     "fillStyle": "solid",
     "strokeWidth": 2,
     "strokeStyle": "solid",
     "roughness": 1,
     "opacity": 100,
     "groupIds": [],
     "frameId": null,
     "roundness": null,
     "seed": 1025058477,
     "version": 1,
     "versionNonce": 1292082035,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "send",
     "originalText": "send",
     "fontSize": 14,
     "fontFamily": 5,
     "textAlign": "center",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-e4",
     "lineHeight": 1.25,
     "autoResize": true
    },
    {
     "id": "10-events-notifications-e5",
     "type": "arrow",
     "x": 1080.0,
     "y": 622.0,
     "width": 0.0,
     "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": 2075250981,
     "version": 1,
     "versionNonce": 1693796714,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "points": [
      [
       0,
       0
      ],
      [
       0.0,
       78.0
      ]
     ],
     "lastCommittedPoint": null,
     "startBinding": {
      "elementId": "10-events-notifications-w",
      "focus": 0,
      "gap": 4
     },
     "endBinding": {
      "elementId": "10-events-notifications-log",
      "focus": 0,
      "gap": 4
     },
     "startArrowhead": null,
     "endArrowhead": "arrow",
     "elbowed": false
    },
    {
     "id": "10-events-notifications-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": 514290217,
     "version": 1,
     "versionNonce": 718687466,
     "isDeleted": false,
     "boundElements": [
      {
       "type": "text",
       "id": "10-events-notifications-notes-t"
      }
     ],
     "updated": 1,
     "link": null,
     "locked": false
    },
    {
     "id": "10-events-notifications-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": 694311369,
     "version": 1,
     "versionNonce": 322855252,
     "isDeleted": false,
     "boundElements": [],
     "updated": 1,
     "link": null,
     "locked": false,
     "text": "Trade-offs to raise\n\u2022 Dedup key per (user, event)\n\u2022 Quiet hours, opt-outs, frequency caps\n\u2022 Immediate vs digest\n\u2022 Retries via delay queue + backoff\n\u2022 Provider fallback (SMS if push fails)\n\u2022 Template + locale rendering",
     "originalText": "Trade-offs to raise\n\u2022 Dedup key per (user, event)\n\u2022 Quiet hours, opt-outs, frequency caps\n\u2022 Immediate vs digest\n\u2022 Retries via delay queue + backoff\n\u2022 Provider fallback (SMS if push fails)\n\u2022 Template + locale rendering",
     "fontSize": 16,
     "fontFamily": 5,
     "textAlign": "left",
     "verticalAlign": "middle",
     "containerId": "10-events-notifications-notes",
     "lineHeight": 1.25,
     "autoResize": true
    }
   ]
  }
 ]
}