System Design: Load Balancing
Master traffic distribution, Layer 4 vs Layer 7 proxies, routing algorithms, consistent hashing rings, GSLB, and high-availability health checks.
1. What is Load Balancing?
A Load Balancer acts as a high-performance traffic director positioned in front of your server infrastructure. It accepts incoming network requests from clients and distributes them efficiently across multiple backend servers to ensure no single server becomes a bottleneck.
Core Load Balancer Architecture
System DesignTraffic distribution across a monitored cluster with automated health checks
[
{
"id": "eBuAtSrwHrT0fO4vKzdtU",
"type": "rectangle",
"x": 40,
"y": 40,
"width": 180,
"height": 60,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a0",
"roundness": {
"type": 3
},
"seed": 1,
"version": 2,
"versionNonce": 1015430484,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "9hrAWz1Y1ZX-7h3p6WIGT"
}
],
"updated": 1787734339404,
"link": null,
"locked": false
},
{
"id": "9hrAWz1Y1ZX-7h3p6WIGT",
"type": "text",
"x": 50,
"y": 61.875,
"width": 160,
"height": 16.25,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a1",
"roundness": null,
"seed": 3,
"version": 2,
"versionNonce": 1678111212,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"text": "Client Browser",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "eBuAtSrwHrT0fO4vKzdtU",
"originalText": "Client Browser",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "t2N1hl0gRCvy3yk5v-JSK",
"type": "rectangle",
"x": 40,
"y": 140,
"width": 180,
"height": 60,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a2",
"roundness": {
"type": 3
},
"seed": 5,
"version": 2,
"versionNonce": 1023111892,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "T-HTVfwKWp9QQ4tE1oHpp"
}
],
"updated": 1787734339404,
"link": null,
"locked": false
},
{
"id": "T-HTVfwKWp9QQ4tE1oHpp",
"type": "text",
"x": 50,
"y": 161.875,
"width": 160,
"height": 16.25,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a3",
"roundness": null,
"seed": 7,
"version": 2,
"versionNonce": 952685676,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"text": "Mobile App",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "t2N1hl0gRCvy3yk5v-JSK",
"originalText": "Mobile App",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "ZT9fQm2X--dMdxdT-J3dP",
"type": "rectangle",
"x": 40,
"y": 240,
"width": 180,
"height": 60,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a4",
"roundness": {
"type": 3
},
"seed": 9,
"version": 2,
"versionNonce": 875427924,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "O16LVw4sySgAMKJQ5W3vx"
}
],
"updated": 1787734339404,
"link": null,
"locked": false
},
{
"id": "O16LVw4sySgAMKJQ5W3vx",
"type": "text",
"x": 50,
"y": 261.875,
"width": 160,
"height": 16.25,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a5",
"roundness": null,
"seed": 11,
"version": 2,
"versionNonce": 1745577708,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"text": "IoT Device",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "ZT9fQm2X--dMdxdT-J3dP",
"originalText": "IoT Device",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "Nb03kgpfqkiZFJ7q0bElq",
"type": "diamond",
"x": 300,
"y": 100,
"width": 180,
"height": 140,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "#8b4dde",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a6",
"roundness": null,
"seed": 13,
"version": 5,
"versionNonce": 1833237945,
"isDeleted": false,
"boundElements": [
{
"id": "L1ZmCPMbZYgzW5RFVdYpK",
"type": "arrow"
},
{
"id": "-kohmp8vusoupbwoDX9d4",
"type": "arrow"
},
{
"id": "ufYUMB595C3NfwZeIuCcs",
"type": "arrow"
},
{
"type": "text",
"id": "8VCryFW5igGQIt3kIqsdz"
}
],
"updated": 1787734427988,
"link": null,
"locked": false
},
{
"id": "8VCryFW5igGQIt3kIqsdz",
"type": "text",
"x": 310,
"y": 161.25,
"width": 160,
"height": 17.5,
"angle": 0,
"strokeColor": "#ffffff",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a7",
"roundness": null,
"seed": 15,
"version": 2,
"versionNonce": 1717021036,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"text": "Load Balancer",
"fontSize": 14,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "Nb03kgpfqkiZFJ7q0bElq",
"originalText": "Load Balancer",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "_G-YaCCOIG1hftoKV_l91",
"type": "rectangle",
"x": 600,
"y": 10,
"width": 300,
"height": 330,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a8",
"roundness": {
"type": 3
},
"seed": 17,
"version": 2,
"versionNonce": 191034196,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false
},
{
"id": "iB-2HkB4Qu2dY5i61opHe",
"type": "text",
"x": 630.4705523322611,
"y": -25.205878762637894,
"width": 247.37982177734375,
"height": 25,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a9",
"roundness": null,
"seed": 19,
"version": 81,
"versionNonce": 1806943799,
"isDeleted": false,
"boundElements": [],
"updated": 1787734464715,
"link": null,
"locked": false,
"text": "Health Monitored Cluster",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Health Monitored Cluster",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "TonrajbGwuC0LU9Ckb1jQ",
"type": "rectangle",
"x": 630,
"y": 40,
"width": 240,
"height": 70,
"angle": 0,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aA",
"roundness": {
"type": 3
},
"seed": 21,
"version": 3,
"versionNonce": 902443961,
"isDeleted": false,
"boundElements": [
{
"id": "-kohmp8vusoupbwoDX9d4",
"type": "arrow"
},
{
"type": "text",
"id": "UqlSlmkf6J1QVomct-ur9"
}
],
"updated": 1787734424558,
"link": null,
"locked": false
},
{
"id": "UqlSlmkf6J1QVomct-ur9",
"type": "text",
"x": 640,
"y": 58.75,
"width": 220,
"height": 32.5,
"angle": 0,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aB",
"roundness": null,
"seed": 23,
"version": 2,
"versionNonce": 603274860,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"text": "Server A: 10.0.0.1\nActive · Weight 2",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "TonrajbGwuC0LU9Ckb1jQ",
"originalText": "Server A: 10.0.0.1\nActive · Weight 2",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "SsspgValJnI91gI-7MCFJ",
"type": "rectangle",
"x": 630,
"y": 140,
"width": 240,
"height": 70,
"angle": 0,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aC",
"roundness": {
"type": 3
},
"seed": 25,
"version": 3,
"versionNonce": 1689832537,
"isDeleted": false,
"boundElements": [
{
"id": "ufYUMB595C3NfwZeIuCcs",
"type": "arrow"
},
{
"type": "text",
"id": "ZZOJ3uWtzgTk_90ZhpmMK"
}
],
"updated": 1787734427989,
"link": null,
"locked": false
},
{
"id": "ZZOJ3uWtzgTk_90ZhpmMK",
"type": "text",
"x": 640,
"y": 158.75,
"width": 220,
"height": 32.5,
"angle": 0,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aD",
"roundness": null,
"seed": 27,
"version": 2,
"versionNonce": 1176146156,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"text": "Server B: 10.0.0.2\nActive · Weight 1",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "SsspgValJnI91gI-7MCFJ",
"originalText": "Server B: 10.0.0.2\nActive · Weight 1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "zZmqFZy5YKbGLfmvMDO0S",
"type": "rectangle",
"x": 630,
"y": 240,
"width": 240,
"height": 70,
"angle": 0,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aE",
"roundness": {
"type": 3
},
"seed": 29,
"version": 3,
"versionNonce": 1347735097,
"isDeleted": false,
"boundElements": [
{
"id": "L1ZmCPMbZYgzW5RFVdYpK",
"type": "arrow"
},
{
"type": "text",
"id": "c5xmf62BLPJpGPZzwf5Pp"
}
],
"updated": 1787734421117,
"link": null,
"locked": false
},
{
"id": "c5xmf62BLPJpGPZzwf5Pp",
"type": "text",
"x": 640,
"y": 258.75,
"width": 220,
"height": 32.5,
"angle": 0,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aF",
"roundness": null,
"seed": 31,
"version": 2,
"versionNonce": 1290900332,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"text": "Server C: 10.0.0.3\nActive · Weight 1",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "zZmqFZy5YKbGLfmvMDO0S",
"originalText": "Server C: 10.0.0.3\nActive · Weight 1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "gQi8TyjHsYhRL1bXUU0NX",
"type": "arrow",
"x": 220.5,
"y": 70.5,
"width": 79,
"height": 79,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aG",
"roundness": null,
"seed": 33,
"version": 2,
"versionNonce": 1664395604,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
79,
79
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "C7jPj6k7vGC0v4E-By4zE",
"type": "arrow",
"x": 220.5,
"y": 170,
"width": 79,
"height": 0,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aH",
"roundness": null,
"seed": 35,
"version": 2,
"versionNonce": 381961708,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
79,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "LvfIGzHVKzNNGW-6NyvkC",
"type": "arrow",
"x": 220.5,
"y": 269.5,
"width": 79,
"height": 79,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aI",
"roundness": null,
"seed": 37,
"version": 2,
"versionNonce": 1526488788,
"isDeleted": false,
"boundElements": [],
"updated": 1787734339404,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
79,
-79
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "TxA5bbi14Tm54OoeW_hZb",
"type": "text",
"x": 70.69590714398552,
"y": -17.500004487879124,
"width": 62.01994323730469,
"height": 25,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aJ",
"roundness": null,
"seed": 39,
"version": 98,
"versionNonce": 1797716439,
"isDeleted": false,
"boundElements": [],
"updated": 1787734516506,
"link": null,
"locked": false,
"text": "Traffic",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Traffic",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "-kohmp8vusoupbwoDX9d4",
"type": "arrow",
"x": 484.61764705882354,
"y": 169.85294476677393,
"width": 142.05883071001836,
"height": 89.8823529411765,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aN",
"roundness": null,
"seed": 47,
"version": 87,
"versionNonce": 1229678647,
"isDeleted": false,
"boundElements": [],
"updated": 1787734442249,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
142.05883071001836,
-89.8823529411765
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "Nb03kgpfqkiZFJ7q0bElq",
"focus": 0.6635409202199772,
"gap": 4.757982772975641
},
"endBinding": {
"elementId": "TonrajbGwuC0LU9Ckb1jQ",
"focus": 0.6586197782246217,
"gap": 3.3235222311581083
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "ufYUMB595C3NfwZeIuCcs",
"type": "arrow",
"x": 486.9706241383272,
"y": 172.20588594324448,
"width": 140.6470157398897,
"height": 5.882345760569876,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aO",
"roundness": null,
"seed": 49,
"version": 90,
"versionNonce": 1005952503,
"isDeleted": false,
"boundElements": [],
"updated": 1787734451857,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
140.6470157398897,
5.882345760569876
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "Nb03kgpfqkiZFJ7q0bElq",
"focus": -0.020552907926696347,
"gap": 7.074161560633486
},
"endBinding": {
"elementId": "SsspgValJnI91gI-7MCFJ",
"focus": -0.2050706910776124,
"gap": 2.3823601217831083
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "L1ZmCPMbZYgzW5RFVdYpK",
"type": "arrow",
"x": 484.61764705882354,
"y": 173.67646699793198,
"width": 139.70588953354786,
"height": 102.00002154181988,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aP",
"roundness": null,
"seed": 51,
"version": 87,
"versionNonce": 1832775033,
"isDeleted": false,
"boundElements": [],
"updated": 1787734438716,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
139.70588953354786,
102.00002154181988
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "Nb03kgpfqkiZFJ7q0bElq",
"focus": -0.7267154016243621,
"gap": 5.337240855618256
},
"endBinding": {
"elementId": "zZmqFZy5YKbGLfmvMDO0S",
"focus": -0.7538663745047482,
"gap": 5.676463407628603
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "tJKObsis-jYiFDcsOaxsf",
"type": "rectangle",
"x": -11.538759119370553,
"y": 15.933832505170102,
"width": 258.588238884421,
"height": 304.58824606502753,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aR",
"roundness": {
"type": 3
},
"seed": 469581207,
"version": 244,
"versionNonce": 992862521,
"isDeleted": false,
"boundElements": [],
"updated": 1787734510505,
"link": null,
"locked": false
}
]Scalability & Horizontal Scaling
Enables web applications to scale horizontally by adding commodity servers to a pool rather than upgrading a single expensive machine.
High Availability & Resilience
Prevents single points of failure (SPOF). If a server crashes or requires maintenance, traffic is automatically routed to surviving nodes.
Security & TLS Offloading
Offloads resource-intensive TLS/SSL decryption from application servers and shields backend servers from direct public internet exposure.
Traffic Management & Rate Limiting
Provides centralized entry points for throttling malicious traffic, managing DDoS attacks, and enforcing web application firewall (WAF) rules.
2. Layer 4 vs Layer 7 Load Balancing
Load balancers operate primarily at two distinct layers of the OSI model: Layer 4 (Transport Layer) and Layer 7 (Application Layer). Choosing the right layer determines the proxy's performance, flexibility, and operational overhead.
Layer 4 vs Layer 7 Traffic Routing
System DesignTransport-level packet forwarding vs Application-level content inspection
[
{
"id": "RcoBZTDX6ozZXQbrNfPBd",
"type": "rectangle",
"x": 20,
"y": 10,
"width": 900,
"height": 190,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a0",
"roundness": {
"type": 3
},
"seed": 1,
"version": 7,
"versionNonce": 1935039200,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "WI491aPiG8SVrpia4vF8W"
}
],
"updated": 1787734621881,
"link": null,
"locked": false
},
{
"id": "g5UnCkL5kiaencRqOmAzB",
"type": "text",
"x": 27.230778620793274,
"y": -48.88461538461539,
"width": 329.7279052734375,
"height": 35,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a1",
"roundness": null,
"seed": 3,
"version": 32,
"versionNonce": 468551392,
"isDeleted": false,
"boundElements": [],
"updated": 1787734669208,
"link": null,
"locked": false,
"text": "Layer 4: Transport Layer",
"fontSize": 28,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Layer 4: Transport Layer",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "VEE5-rOPr389WqLCP_ZP1",
"type": "rectangle",
"x": 50,
"y": 60,
"width": 160,
"height": 60,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a2",
"roundness": {
"type": 3
},
"seed": 5,
"version": 2,
"versionNonce": 252378196,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "IjIUaY4ClJrxTK8HBnYU8"
}
],
"updated": 1787734566418,
"link": null,
"locked": false
},
{
"id": "IjIUaY4ClJrxTK8HBnYU8",
"type": "text",
"x": 60,
"y": 81.875,
"width": 140,
"height": 16.25,
"angle": 0,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a3",
"roundness": null,
"seed": 7,
"version": 2,
"versionNonce": 2020647660,
"isDeleted": false,
"boundElements": [],
"updated": 1787734566418,
"link": null,
"locked": false,
"text": "Client TCP Packet",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "VEE5-rOPr389WqLCP_ZP1",
"originalText": "Client TCP Packet",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "Fybtu5vQHmM4J8PL_wk_8",
"type": "diamond",
"x": 260,
"y": 40,
"width": 190,
"height": 100,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a4",
"roundness": null,
"seed": 9,
"version": 4,
"versionNonce": 676193056,
"isDeleted": false,
"boundElements": [
{
"id": "HYruqMiNsJZX7olaAqG3R",
"type": "arrow"
},
{
"id": "GfVnYGKAPh0mkZzrOvlAG",
"type": "arrow"
},
{
"type": "text",
"id": "H5PA6RqbMys03XHwx6sDK"
}
],
"updated": 1787734640419,
"link": null,
"locked": false
},
{
"id": "H5PA6RqbMys03XHwx6sDK",
"type": "text",
"x": 270,
"y": 75,
"width": 170,
"height": 30,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a5",
"roundness": null,
"seed": 11,
"version": 2,
"versionNonce": 783639916,
"isDeleted": false,
"boundElements": [],
"updated": 1787734566418,
"link": null,
"locked": false,
"text": "L4 Proxy / NAT\nIP: 192.168.1.1:80",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "Fybtu5vQHmM4J8PL_wk_8",
"originalText": "L4 Proxy / NAT\nIP: 192.168.1.1:80",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "CROVQbxTLA7FSOvxymHyA",
"type": "rectangle",
"x": 572.9231144831731,
"y": 23.230755145733184,
"width": 220,
"height": 60,
"angle": 0,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a6",
"roundness": {
"type": 3
},
"seed": 13,
"version": 36,
"versionNonce": 181561120,
"isDeleted": false,
"boundElements": [
{
"id": "HYruqMiNsJZX7olaAqG3R",
"type": "arrow"
},
{
"type": "text",
"id": "ppJXMRHKKPb-qtIM59Sl3"
}
],
"updated": 1787734633356,
"link": null,
"locked": false
},
{
"id": "ppJXMRHKKPb-qtIM59Sl3",
"type": "text",
"x": 582.9231144831731,
"y": 38.230755145733184,
"width": 200,
"height": 30,
"angle": 0,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a7",
"roundness": null,
"seed": 15,
"version": 35,
"versionNonce": 600159008,
"isDeleted": false,
"boundElements": [],
"updated": 1787734627300,
"link": null,
"locked": false,
"text": "Backend Server 1\nNo Payload Inspection",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "CROVQbxTLA7FSOvxymHyA",
"originalText": "Backend Server 1\nNo Payload Inspection",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "OgEEVSRKaPktR0exjwiJK",
"type": "rectangle",
"x": 574.769287109375,
"y": 103.84615384615387,
"width": 220,
"height": 60,
"angle": 0,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a8",
"roundness": {
"type": 3
},
"seed": 17,
"version": 37,
"versionNonce": 1998717664,
"isDeleted": false,
"boundElements": [
{
"id": "GfVnYGKAPh0mkZzrOvlAG",
"type": "arrow"
},
{
"type": "text",
"id": "zCYO9uEyUdT1W8M16LquT"
}
],
"updated": 1787734637928,
"link": null,
"locked": false
},
{
"id": "zCYO9uEyUdT1W8M16LquT",
"type": "text",
"x": 584.769287109375,
"y": 118.84615384615387,
"width": 200,
"height": 30,
"angle": 0,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a9",
"roundness": null,
"seed": 19,
"version": 36,
"versionNonce": 1701363488,
"isDeleted": false,
"boundElements": [],
"updated": 1787734628983,
"link": null,
"locked": false,
"text": "Backend Server 2\nFast & Low CPU",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "OgEEVSRKaPktR0exjwiJK",
"originalText": "Backend Server 2\nFast & Low CPU",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "cOL1Mg4gDdRA7VWDCsDyE",
"type": "arrow",
"x": 210.5,
"y": 90,
"width": 49,
"height": 0,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aA",
"roundness": null,
"seed": 21,
"version": 2,
"versionNonce": 34615892,
"isDeleted": false,
"boundElements": [],
"updated": 1787734566418,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
49,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "HYruqMiNsJZX7olaAqG3R",
"type": "arrow",
"x": 454.1922983022837,
"y": 88.57691368689905,
"width": 109.61537522536048,
"height": 36.076908991887024,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aB",
"roundness": null,
"seed": 23,
"version": 70,
"versionNonce": 1375625952,
"isDeleted": false,
"boundElements": [],
"updated": 1787734635992,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
109.61537522536048,
-36.076908991887024
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "Fybtu5vQHmM4J8PL_wk_8",
"focus": 0.3286668567321204,
"gap": 4.84218053526176
},
"endBinding": {
"elementId": "CROVQbxTLA7FSOvxymHyA",
"focus": 0.6032059959621618,
"gap": 9.115440955528925
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "GfVnYGKAPh0mkZzrOvlAG",
"type": "arrow",
"x": 456.6538461538462,
"y": 93.88461068960339,
"width": 105.30770169771631,
"height": 40.69229360727161,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aC",
"roundness": null,
"seed": 25,
"version": 74,
"versionNonce": 2140925728,
"isDeleted": false,
"boundElements": [],
"updated": 1787734641018,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
105.30770169771631,
40.69229360727161
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "Fybtu5vQHmM4J8PL_wk_8",
"focus": -0.3725872067430878,
"gap": 7.252216727982408
},
"endBinding": {
"elementId": "OgEEVSRKaPktR0exjwiJK",
"focus": -0.6645746523141962,
"gap": 12.8077392578125
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "zUAiSXCDSyV14sezuniHQ",
"type": "rectangle",
"x": 10.153855543870122,
"y": 332.15383676382214,
"width": 900,
"height": 300,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aE",
"roundness": {
"type": 3
},
"seed": 29,
"version": 93,
"versionNonce": 256301792,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "JAopu_AHYIQIK3iQJFRS5"
},
{
"type": "text",
"id": "EgcKhbDzwg8f1vUv_8zhJ"
},
{
"type": "text",
"id": "qUK3DxqjBTt3oahNGvBMv"
}
],
"updated": 1787734700801,
"link": null,
"locked": false
},
{
"id": "H0ImT5qEqNMurl5n6oujD",
"type": "text",
"x": 30.30770169771631,
"y": 280.65384145883417,
"width": 352.21185302734375,
"height": 35,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aF",
"roundness": null,
"seed": 31,
"version": 51,
"versionNonce": 259286752,
"isDeleted": false,
"boundElements": [],
"updated": 1787734760330,
"link": null,
"locked": false,
"text": "Layer 7: Application Layer",
"fontSize": 28,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Layer 7: Application Layer",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "WmfLI0Mq2eRW3Aa-va4UV",
"type": "rectangle",
"x": 32.15386023888232,
"y": 452.24766629274524,
"width": 160,
"height": 59.8198867425686,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aG",
"roundness": {
"type": 3
},
"seed": 33,
"version": 103,
"versionNonce": 426521312,
"isDeleted": false,
"boundElements": [
{
"id": "NA1r2lkeSDM5Bmae_eNsi",
"type": "arrow"
},
{
"type": "text",
"id": "rM7MD25gFDhRIK1Zt-YIA"
}
],
"updated": 1787734731008,
"link": null,
"locked": false
},
{
"id": "rM7MD25gFDhRIK1Zt-YIA",
"type": "text",
"x": 42.15386023888232,
"y": 474.03260966402956,
"width": 140,
"height": 16.25,
"angle": 0,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aH",
"roundness": null,
"seed": 35,
"version": 104,
"versionNonce": 1579840288,
"isDeleted": false,
"boundElements": [],
"updated": 1787734725580,
"link": null,
"locked": false,
"text": "Client HTTP Request",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "WmfLI0Mq2eRW3Aa-va4UV",
"originalText": "Client HTTP Request",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "PhNTKP4q-oby29TZzlmVf",
"type": "diamond",
"x": 250.15385554387024,
"y": 411.33207882993884,
"width": 200,
"height": 140,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aI",
"roundness": null,
"seed": 37,
"version": 92,
"versionNonce": 2069062432,
"isDeleted": false,
"boundElements": [
{
"id": "xmYowXZffoU-XsaNxY8AH",
"type": "arrow"
},
{
"id": "YiFMFhTg-Fe5v5lZzhfRg",
"type": "arrow"
},
{
"id": "d2k3-MGfwWcsRpv7HD27_",
"type": "arrow"
},
{
"id": "NA1r2lkeSDM5Bmae_eNsi",
"type": "arrow"
},
{
"type": "text",
"id": "ZKcWP9_Wax5twmVFqDh2W"
}
],
"updated": 1787734728803,
"link": null,
"locked": false
},
{
"id": "ZKcWP9_Wax5twmVFqDh2W",
"type": "text",
"x": 260.15385554387024,
"y": 451.33207882993884,
"width": 180,
"height": 60,
"angle": 0,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aJ",
"roundness": null,
"seed": 39,
"version": 86,
"versionNonce": 409277216,
"isDeleted": false,
"boundElements": [],
"updated": 1787734721548,
"link": null,
"locked": false,
"text": "L7 Proxy / ALB\nDecrypt TLS &\nInspect\nHeaders",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "PhNTKP4q-oby29TZzlmVf",
"originalText": "L7 Proxy / ALB\nDecrypt TLS & Inspect Headers",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "ck-1YCqtLQ0cn9MzTiW7r",
"type": "rectangle",
"x": 610.1538555438702,
"y": 378.7692378117488,
"width": 220,
"height": 54.834896180687885,
"angle": 0,
"strokeColor": "#f59e0b",
"backgroundColor": "#fffbe6",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aK",
"roundness": {
"type": 3
},
"seed": 41,
"version": 103,
"versionNonce": 561221344,
"isDeleted": false,
"boundElements": [
{
"id": "xmYowXZffoU-XsaNxY8AH",
"type": "arrow"
},
{
"type": "text",
"id": "9a5wU35mNl5VQ1zWv9Xcr"
}
],
"updated": 1787734775263,
"link": null,
"locked": false
},
{
"id": "9a5wU35mNl5VQ1zWv9Xcr",
"type": "text",
"x": 620.1538555438702,
"y": 398.06168590209273,
"width": 200,
"height": 16.25,
"angle": 0,
"strokeColor": "#92400e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aL",
"roundness": null,
"seed": 43,
"version": 104,
"versionNonce": 232698592,
"isDeleted": false,
"boundElements": [],
"updated": 1787734775263,
"link": null,
"locked": false,
"text": "Auth Microservice",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "ck-1YCqtLQ0cn9MzTiW7r",
"originalText": "Auth Microservice",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "v4za4n7ZTfqOGEyfy0xVS",
"type": "rectangle",
"x": 608.9230581430288,
"y": 450.4671731630365,
"width": 220,
"height": 54.834896180687885,
"angle": 0,
"strokeColor": "#06b6d4",
"backgroundColor": "#ecfeff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aM",
"roundness": {
"type": 3
},
"seed": 45,
"version": 134,
"versionNonce": 968023776,
"isDeleted": false,
"boundElements": [
{
"id": "YiFMFhTg-Fe5v5lZzhfRg",
"type": "arrow"
},
{
"type": "text",
"id": "Vv70aUjiw8r994ytohu2P"
}
],
"updated": 1787734778686,
"link": null,
"locked": false
},
{
"id": "Vv70aUjiw8r994ytohu2P",
"type": "text",
"x": 618.9230581430288,
"y": 469.75962125338043,
"width": 200,
"height": 16.25,
"angle": 0,
"strokeColor": "#155e75",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aN",
"roundness": null,
"seed": 47,
"version": 135,
"versionNonce": 28574432,
"isDeleted": false,
"boundElements": [],
"updated": 1787734778686,
"link": null,
"locked": false,
"text": "S3 / CDN Origin",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "v4za4n7ZTfqOGEyfy0xVS",
"originalText": "S3 / CDN Origin",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "XqG9HyINJS2m08Y16DmHE",
"type": "rectangle",
"x": 608.923105093149,
"y": 522.1651319893842,
"width": 220,
"height": 54.834896180687885,
"angle": 0,
"strokeColor": "#ec4899",
"backgroundColor": "#fdf2f8",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aO",
"roundness": {
"type": 3
},
"seed": 49,
"version": 116,
"versionNonce": 1668159200,
"isDeleted": false,
"boundElements": [
{
"id": "d2k3-MGfwWcsRpv7HD27_",
"type": "arrow"
},
{
"type": "text",
"id": "yizWz0Ano26cQSNKLg4qg"
}
],
"updated": 1787734781519,
"link": null,
"locked": false
},
{
"id": "yizWz0Ano26cQSNKLg4qg",
"type": "text",
"x": 618.923105093149,
"y": 541.4575800797281,
"width": 200,
"height": 16.25,
"angle": 0,
"strokeColor": "#9d174d",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aP",
"roundness": null,
"seed": 51,
"version": 117,
"versionNonce": 1061698272,
"isDeleted": false,
"boundElements": [],
"updated": 1787734781519,
"link": null,
"locked": false,
"text": "Session Server Node",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "XqG9HyINJS2m08Y16DmHE",
"originalText": "Session Server Node",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "NA1r2lkeSDM5Bmae_eNsi",
"type": "arrow",
"x": 200.6538555438703,
"y": 477.7330364921527,
"width": 47.76924954927881,
"height": 2.446380643862483,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aQ",
"roundness": null,
"seed": 53,
"version": 175,
"versionNonce": 358118176,
"isDeleted": false,
"boundElements": [],
"updated": 1787734734153,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
29.758376781757022,
-2.0887916378858904
],
[
47.76924954927881,
0.3575890059765925
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "WmfLI0Mq2eRW3Aa-va4UV",
"focus": 0.050313287700270944,
"gap": 8.499995304987976
},
"endBinding": {
"elementId": "PhNTKP4q-oby29TZzlmVf",
"focus": -0.10576430010136448,
"gap": 4.465225890619379
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "xmYowXZffoU-XsaNxY8AH",
"type": "arrow",
"x": 456.6087704059056,
"y": 481.45950576814397,
"width": 152.57632875926174,
"height": 78.79497169987371,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aR",
"roundness": null,
"seed": 55,
"version": 188,
"versionNonce": 155539168,
"isDeleted": false,
"boundElements": [],
"updated": 1787734775263,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
152.57632875926174,
-78.79497169987371
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "PhNTKP4q-oby29TZzlmVf",
"focus": 1.4126385798903276,
"gap": 6.513624921984311
},
"endBinding": {
"elementId": "ck-1YCqtLQ0cn9MzTiW7r",
"focus": 0.7222312155709614,
"gap": 1
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "YiFMFhTg-Fe5v5lZzhfRg",
"type": "arrow",
"x": 453.6593304407328,
"y": 482.647793555052,
"width": 154.29497132359302,
"height": 3.579617412941559,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aT",
"roundness": null,
"seed": 59,
"version": 232,
"versionNonce": 1978705632,
"isDeleted": false,
"boundElements": [],
"updated": 1787734778687,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
154.29497132359302,
3.579617412941559
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "PhNTKP4q-oby29TZzlmVf",
"focus": -0.01087557985004139,
"gap": 3.9510225074903937
},
"endBinding": {
"elementId": "v4za4n7ZTfqOGEyfy0xVS",
"focus": -0.3695308013525616,
"gap": 1
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "JAopu_AHYIQIK3iQJFRS5",
"type": "text",
"x": 20.153855543870122,
"y": 475.27883676382214,
"width": 880,
"height": 13.75,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aU",
"roundness": null,
"seed": 61,
"version": 2,
"versionNonce": 817699156,
"isDeleted": false,
"boundElements": [],
"updated": 1787734566418,
"link": null,
"locked": false,
"text": "GET /images/logo.png",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "zUAiSXCDSyV14sezuniHQ",
"originalText": "GET /images/logo.png",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "d2k3-MGfwWcsRpv7HD27_",
"type": "arrow",
"x": 457.2798048211364,
"y": 483.2351383593217,
"width": 150.67454389330976,
"height": 71.55295430876004,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aV",
"roundness": null,
"seed": 63,
"version": 296,
"versionNonce": 244960032,
"isDeleted": false,
"boundElements": [],
"updated": 1787734787507,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
150.67454389330976,
71.55295430876004
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "PhNTKP4q-oby29TZzlmVf",
"focus": -0.4896935697745829,
"gap": 7.182942963422394
},
"endBinding": {
"elementId": "XqG9HyINJS2m08Y16DmHE",
"focus": -0.7269227444375467,
"gap": 1
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "EgcKhbDzwg8f1vUv_8zhJ",
"type": "text",
"x": 20.153855543870122,
"y": 475.27883676382214,
"width": 880,
"height": 13.75,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aW",
"roundness": null,
"seed": 65,
"version": 2,
"versionNonce": 1039584980,
"isDeleted": false,
"boundElements": [],
"updated": 1787734566418,
"link": null,
"locked": false,
"text": "Cookie: session_id=abc",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "zUAiSXCDSyV14sezuniHQ",
"originalText": "Cookie: session_id=abc",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "WI491aPiG8SVrpia4vF8W",
"type": "text",
"x": 30,
"y": 92.5,
"width": 880,
"height": 25,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aX",
"roundness": null,
"seed": 1552066336,
"version": 50,
"versionNonce": 2138071776,
"isDeleted": false,
"boundElements": null,
"updated": 1787734663042,
"link": null,
"locked": false,
"text": "Forward TCP Packets",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "top",
"containerId": "RcoBZTDX6ozZXQbrNfPBd",
"originalText": "Forward TCP Packets",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "qUK3DxqjBTt3oahNGvBMv",
"type": "text",
"x": 20.153855543870122,
"y": 469.65383676382214,
"width": 880,
"height": 25,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aY",
"roundness": null,
"seed": 1001759456,
"version": 41,
"versionNonce": 1473079072,
"isDeleted": false,
"boundElements": null,
"updated": 1787734766335,
"link": null,
"locked": false,
"text": "GET /api/v1/users",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "top",
"containerId": "zUAiSXCDSyV14sezuniHQ",
"originalText": "GET /api/v1/users",
"autoResize": true,
"lineHeight": 1.25
}
]| Feature | Layer 4 (Transport Layer) | Layer 7 (Application Layer) |
|---|---|---|
| Inspection Depth | IP headers & TCP/UDP port numbers only | Full HTTP headers, URLs, cookies, & JSON body payloads |
| Performance & Throughput | Ultra-high throughput, near-zero CPU latency (Packet NAT) | Moderate throughput, requires CPU for TLS decryption & parsing |
| Content Awareness | No awareness of HTTP requests, cookies, or routes | Path-based routing (e.g. /api vs /static), header routing |
| TLS Termination | Passes raw encrypted bytes through to backend servers | Terminates TLS at proxy; encrypts or forwards cleartext internally |
| Example Implementations | HAProxy (TCP mode), AWS Network Load Balancer (NLB), IPVS | Nginx, Envoy, AWS Application Load Balancer (ALB), Traefik |
3. Load Balancing Algorithms
A load balancing algorithm dictates how incoming connections are selected and distributed across the available backend servers.
1. Round Robin
Distributes requests sequentially down the list of servers. Simple and stateless, but assumes all servers have equal capacity and equal job execution times.
Round Robin Request Distribution
System DesignRequests are handed out in a fixed, repeating order across the server list
[
{
"id": "rr-client",
"type": "rectangle",
"x": 40,
"y": 140,
"width": 160,
"height": 60,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 1,
"version": 1,
"versionNonce": 2,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "rr-client-text"
}
]
},
{
"id": "rr-client-text",
"type": "text",
"x": 50,
"y": 156,
"width": 140,
"height": 28,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 3,
"version": 1,
"versionNonce": 4,
"isDeleted": false,
"text": "Client",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Client",
"containerId": "rr-client"
},
{
"id": "rr-lb",
"type": "diamond",
"x": 260,
"y": 110,
"width": 160,
"height": 120,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": null,
"seed": 5,
"version": 1,
"versionNonce": 6,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "rr-lb-text"
}
]
},
{
"id": "rr-lb-text",
"type": "text",
"x": 270,
"y": 156,
"width": 140,
"height": 28,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 7,
"version": 1,
"versionNonce": 8,
"isDeleted": false,
"text": "Load Balancer",
"fontSize": 14,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Load Balancer",
"containerId": "rr-lb"
},
{
"id": "rr-a",
"type": "rectangle",
"x": 520,
"y": 20,
"width": 200,
"height": 60,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 9,
"version": 1,
"versionNonce": 10,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "rr-a-text"
}
]
},
{
"id": "rr-a-text",
"type": "text",
"x": 530,
"y": 36,
"width": 180,
"height": 28,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 11,
"version": 1,
"versionNonce": 12,
"isDeleted": false,
"text": "Server A",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server A",
"containerId": "rr-a"
},
{
"id": "rr-b",
"type": "rectangle",
"x": 520,
"y": 140,
"width": 200,
"height": 60,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 13,
"version": 1,
"versionNonce": 14,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "rr-b-text"
}
]
},
{
"id": "rr-b-text",
"type": "text",
"x": 530,
"y": 156,
"width": 180,
"height": 28,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 15,
"version": 1,
"versionNonce": 16,
"isDeleted": false,
"text": "Server B",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server B",
"containerId": "rr-b"
},
{
"id": "rr-c",
"type": "rectangle",
"x": 520,
"y": 260,
"width": 200,
"height": 60,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 17,
"version": 1,
"versionNonce": 18,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "rr-c-text"
}
]
},
{
"id": "rr-c-text",
"type": "text",
"x": 530,
"y": 276,
"width": 180,
"height": 28,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 19,
"version": 1,
"versionNonce": 20,
"isDeleted": false,
"text": "Server C",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server C",
"containerId": "rr-c"
},
{
"id": "rr-arrow-client-lb",
"type": "arrow",
"x": 200,
"y": 170,
"width": 60,
"height": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
60,
0
]
],
"endArrowhead": "arrow",
"seed": 21,
"version": 1,
"versionNonce": 22,
"isDeleted": false
},
{
"id": "rr-arrow-lb-a",
"type": "arrow",
"x": 420,
"y": 150,
"width": 100,
"height": -100,
"strokeColor": "#3b82f6",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
100,
-100
]
],
"endArrowhead": "arrow",
"seed": 23,
"version": 1,
"versionNonce": 24,
"isDeleted": false
},
{
"id": "rr-arrow-lb-b",
"type": "arrow",
"x": 420,
"y": 170,
"width": 100,
"height": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
100,
0
]
],
"endArrowhead": "arrow",
"seed": 25,
"version": 1,
"versionNonce": 26,
"isDeleted": false
},
{
"id": "rr-arrow-lb-c",
"type": "arrow",
"x": 420,
"y": 190,
"width": 100,
"height": 100,
"strokeColor": "#3b82f6",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
100,
100
]
],
"endArrowhead": "arrow",
"seed": 27,
"version": 1,
"versionNonce": 28,
"isDeleted": false
},
{
"id": "rr-label-1",
"type": "text",
"x": 430,
"y": 88,
"width": 55.440000000000005,
"height": 17,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 29,
"version": 1,
"versionNonce": 30,
"isDeleted": false,
"text": "Request 1",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Request 1"
},
{
"id": "rr-label-2",
"type": "text",
"x": 430,
"y": 178,
"width": 55.440000000000005,
"height": 17,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 31,
"version": 1,
"versionNonce": 32,
"isDeleted": false,
"text": "Request 2",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Request 2"
},
{
"id": "rr-label-3",
"type": "text",
"x": 430,
"y": 262,
"width": 55.440000000000005,
"height": 17,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 33,
"version": 1,
"versionNonce": 34,
"isDeleted": false,
"text": "Request 3",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Request 3"
},
{
"id": "rr-note",
"type": "text",
"x": 260,
"y": 400,
"width": 443.52000000000004,
"height": 18,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 35,
"version": 1,
"versionNonce": 36,
"isDeleted": false,
"text": "Request 4 cycles back to Server A, the order repeats indefinitely.",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Request 4 cycles back to Server A, the order repeats indefinitely."
}
]2. Weighted Round Robin
Assigns a numeric weight to each node based on hardware specs (e.g. Server A = weight 3, Server B = weight 1). Server A receives 3x more requests.
Weighted Round Robin Distribution
System DesignHigher-capacity nodes are assigned a larger share of incoming traffic
[
{
"id": "wrr-client",
"type": "rectangle",
"x": 40,
"y": 140,
"width": 160,
"height": 60,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 37,
"version": 1,
"versionNonce": 38,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "wrr-client-text"
}
]
},
{
"id": "wrr-client-text",
"type": "text",
"x": 50,
"y": 156,
"width": 140,
"height": 28,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 39,
"version": 1,
"versionNonce": 40,
"isDeleted": false,
"text": "Client",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Client",
"containerId": "wrr-client"
},
{
"id": "wrr-lb",
"type": "diamond",
"x": 260,
"y": 100,
"width": 160,
"height": 140,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": null,
"seed": 41,
"version": 1,
"versionNonce": 42,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "wrr-lb-text"
}
]
},
{
"id": "wrr-lb-text",
"type": "text",
"x": 270,
"y": 153.75,
"width": 140,
"height": 32.5,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 43,
"version": 1,
"versionNonce": 44,
"isDeleted": false,
"text": "Weighted\nLoad Balancer",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Weighted\nLoad Balancer",
"containerId": "wrr-lb"
},
{
"id": "wrr-a",
"type": "rectangle",
"x": 520,
"y": 20,
"width": 240,
"height": 80,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 45,
"version": 1,
"versionNonce": 46,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "wrr-a-text"
}
]
},
{
"id": "wrr-a-text",
"type": "text",
"x": 530,
"y": 43.75,
"width": 220,
"height": 32.5,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 47,
"version": 1,
"versionNonce": 48,
"isDeleted": false,
"text": "Server A\nWeight 3 · 8 vCPUs",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server A\nWeight 3 · 8 vCPUs",
"containerId": "wrr-a"
},
{
"id": "wrr-b",
"type": "rectangle",
"x": 520,
"y": 260,
"width": 240,
"height": 60,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 49,
"version": 1,
"versionNonce": 50,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "wrr-b-text"
}
]
},
{
"id": "wrr-b-text",
"type": "text",
"x": 530,
"y": 273.75,
"width": 220,
"height": 32.5,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 51,
"version": 1,
"versionNonce": 52,
"isDeleted": false,
"text": "Server B\nWeight 1 · 2 vCPUs",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server B\nWeight 1 · 2 vCPUs",
"containerId": "wrr-b"
},
{
"id": "wrr-arrow-client-lb",
"type": "arrow",
"x": 200,
"y": 170,
"width": 60,
"height": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
60,
0
]
],
"endArrowhead": "arrow",
"seed": 53,
"version": 1,
"versionNonce": 54,
"isDeleted": false
},
{
"id": "wrr-arrow-lb-a",
"type": "arrow",
"x": 420,
"y": 150,
"width": 100,
"height": -90,
"strokeColor": "#10b981",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
100,
-90
]
],
"endArrowhead": "arrow",
"seed": 55,
"version": 1,
"versionNonce": 56,
"isDeleted": false
},
{
"id": "wrr-arrow-lb-b",
"type": "arrow",
"x": 420,
"y": 190,
"width": 100,
"height": 100,
"strokeColor": "#f59e0b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
100,
100
]
],
"endArrowhead": "arrow",
"seed": 57,
"version": 1,
"versionNonce": 58,
"isDeleted": false
},
{
"id": "wrr-label-a",
"type": "text",
"x": 430,
"y": 92,
"width": 100.80000000000001,
"height": 18,
"strokeColor": "#10b981",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 59,
"version": 1,
"versionNonce": 60,
"isDeleted": false,
"text": "~75% of traffic",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "~75% of traffic"
},
{
"id": "wrr-label-b",
"type": "text",
"x": 420,
"y": 232,
"width": 100.80000000000001,
"height": 18,
"strokeColor": "#f59e0b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 61,
"version": 1,
"versionNonce": 62,
"isDeleted": false,
"text": "~25% of traffic",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "~25% of traffic"
},
{
"id": "wrr-note",
"type": "text",
"x": 260,
"y": 380,
"width": 530.88,
"height": 18,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 63,
"version": 1,
"versionNonce": 64,
"isDeleted": false,
"text": "Higher-weight nodes are selected more often, proportional to declared capacity.",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Higher-weight nodes are selected more often, proportional to declared capacity."
}
]3. Least Connections
Directs new requests to the server with the fewest active open connections. Optimal for long-lived connections such as WebSockets or database pools.
Least Connections Routing
System DesignNew requests go to whichever server currently has the fewest open connections
[
{
"id": "lc-client",
"type": "rectangle",
"x": 40,
"y": 140,
"width": 160,
"height": 60,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 65,
"version": 1,
"versionNonce": 66,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "lc-client-text"
}
]
},
{
"id": "lc-client-text",
"type": "text",
"x": 50,
"y": 156,
"width": 140,
"height": 28,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 67,
"version": 1,
"versionNonce": 68,
"isDeleted": false,
"text": "New Request",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "New Request",
"containerId": "lc-client"
},
{
"id": "lc-lb",
"type": "diamond",
"x": 260,
"y": 100,
"width": 160,
"height": 140,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": null,
"seed": 69,
"version": 1,
"versionNonce": 70,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "lc-lb-text"
}
]
},
{
"id": "lc-lb-text",
"type": "text",
"x": 270,
"y": 155,
"width": 140,
"height": 30,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 71,
"version": 1,
"versionNonce": 72,
"isDeleted": false,
"text": "Load Balancer\n(checks conn counts)",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Load Balancer\n(checks conn counts)",
"containerId": "lc-lb"
},
{
"id": "lc-a",
"type": "rectangle",
"x": 520,
"y": 20,
"width": 240,
"height": 60,
"strokeColor": "#94a3b8",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 73,
"version": 1,
"versionNonce": 74,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "lc-a-text"
}
]
},
{
"id": "lc-a-text",
"type": "text",
"x": 530,
"y": 36,
"width": 220,
"height": 28,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 75,
"version": 1,
"versionNonce": 76,
"isDeleted": false,
"text": "Server A, 42 active conns",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server A, 42 active conns",
"containerId": "lc-a"
},
{
"id": "lc-b",
"type": "rectangle",
"x": 520,
"y": 140,
"width": 240,
"height": 60,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 77,
"version": 1,
"versionNonce": 78,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "lc-b-text"
}
]
},
{
"id": "lc-b-text",
"type": "text",
"x": 530,
"y": 156,
"width": 220,
"height": 28,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 79,
"version": 1,
"versionNonce": 80,
"isDeleted": false,
"text": "Server B, 15 active conns (fewest)",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server B, 15 active conns (fewest)",
"containerId": "lc-b"
},
{
"id": "lc-c",
"type": "rectangle",
"x": 520,
"y": 260,
"width": 240,
"height": 60,
"strokeColor": "#94a3b8",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 81,
"version": 1,
"versionNonce": 82,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "lc-c-text"
}
]
},
{
"id": "lc-c-text",
"type": "text",
"x": 530,
"y": 276,
"width": 220,
"height": 28,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 83,
"version": 1,
"versionNonce": 84,
"isDeleted": false,
"text": "Server C, 58 active conns",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server C, 58 active conns",
"containerId": "lc-c"
},
{
"id": "lc-arrow-client-lb",
"type": "arrow",
"x": 200,
"y": 170,
"width": 60,
"height": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
60,
0
]
],
"endArrowhead": "arrow",
"seed": 85,
"version": 1,
"versionNonce": 86,
"isDeleted": false
},
{
"id": "lc-arrow-lb-b",
"type": "arrow",
"x": 420,
"y": 170,
"width": 100,
"height": 0,
"strokeColor": "#10b981",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
100,
0
]
],
"endArrowhead": "arrow",
"seed": 87,
"version": 1,
"versionNonce": 88,
"isDeleted": false
},
{
"id": "lc-label-b",
"type": "text",
"x": 430,
"y": 145,
"width": 73.92,
"height": 18,
"strokeColor": "#10b981",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 89,
"version": 1,
"versionNonce": 90,
"isDeleted": false,
"text": "Routed here",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Routed here"
},
{
"id": "lc-note",
"type": "text",
"x": 260,
"y": 400,
"width": 537.6,
"height": 18,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 91,
"version": 1,
"versionNonce": 92,
"isDeleted": false,
"text": "Servers A and C are skipped this round, they already have more open connections.",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Servers A and C are skipped this round, they already have more open connections."
}
]4. IP Hash
Hashes the client's IPv4/IPv6 address to deterministically route the client to the same server node every time, providing basic session persistence.
IP Hash Routing
System DesignA hash of the client IP deterministically maps that client to the same backend server
[
{
"id": "ih-client",
"type": "rectangle",
"x": 40,
"y": 140,
"width": 200,
"height": 70,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 93,
"version": 1,
"versionNonce": 94,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "ih-client-text"
}
]
},
{
"id": "ih-client-text",
"type": "text",
"x": 50,
"y": 158.75,
"width": 180,
"height": 32.5,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 95,
"version": 1,
"versionNonce": 96,
"isDeleted": false,
"text": "Client\nIP: 203.0.113.42",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Client\nIP: 203.0.113.42",
"containerId": "ih-client"
},
{
"id": "ih-hash",
"type": "diamond",
"x": 300,
"y": 130,
"width": 180,
"height": 100,
"strokeColor": "#f59e0b",
"backgroundColor": "#fffbe6",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": null,
"seed": 97,
"version": 1,
"versionNonce": 98,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "ih-hash-text"
}
]
},
{
"id": "ih-hash-text",
"type": "text",
"x": 310,
"y": 166,
"width": 160,
"height": 28,
"strokeColor": "#92400e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 99,
"version": 1,
"versionNonce": 100,
"isDeleted": false,
"text": "hash(IP) % N",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "hash(IP) % N",
"containerId": "ih-hash"
},
{
"id": "ih-a",
"type": "rectangle",
"x": 560,
"y": 30,
"width": 200,
"height": 60,
"strokeColor": "#94a3b8",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 101,
"version": 1,
"versionNonce": 102,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "ih-a-text"
}
]
},
{
"id": "ih-a-text",
"type": "text",
"x": 570,
"y": 46,
"width": 180,
"height": 28,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 103,
"version": 1,
"versionNonce": 104,
"isDeleted": false,
"text": "Server A",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server A",
"containerId": "ih-a"
},
{
"id": "ih-b",
"type": "rectangle",
"x": 560,
"y": 145,
"width": 200,
"height": 60,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 105,
"version": 1,
"versionNonce": 106,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "ih-b-text"
}
]
},
{
"id": "ih-b-text",
"type": "text",
"x": 570,
"y": 161,
"width": 180,
"height": 28,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 107,
"version": 1,
"versionNonce": 108,
"isDeleted": false,
"text": "Server B",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server B",
"containerId": "ih-b"
},
{
"id": "ih-c",
"type": "rectangle",
"x": 560,
"y": 260,
"width": 200,
"height": 60,
"strokeColor": "#94a3b8",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"roundness": {
"type": 3
},
"seed": 109,
"version": 1,
"versionNonce": 110,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "ih-c-text"
}
]
},
{
"id": "ih-c-text",
"type": "text",
"x": 570,
"y": 276,
"width": 180,
"height": 28,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 111,
"version": 1,
"versionNonce": 112,
"isDeleted": false,
"text": "Server C",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "Server C",
"containerId": "ih-c"
},
{
"id": "ih-arrow-client-hash",
"type": "arrow",
"x": 240,
"y": 175,
"width": 60,
"height": 5,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
60,
5
]
],
"endArrowhead": "arrow",
"seed": 113,
"version": 1,
"versionNonce": 114,
"isDeleted": false
},
{
"id": "ih-arrow-hash-b",
"type": "arrow",
"x": 480,
"y": 180,
"width": 80,
"height": -5,
"strokeColor": "#10b981",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"points": [
[
0,
0
],
[
80,
-5
]
],
"endArrowhead": "arrow",
"seed": 115,
"version": 1,
"versionNonce": 116,
"isDeleted": false
},
{
"id": "ih-note",
"type": "text",
"x": 300,
"y": 400,
"width": 719.0400000000001,
"height": 18,
"strokeColor": "#f59e0b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"seed": 117,
"version": 1,
"versionNonce": 118,
"isDeleted": false,
"text": "The same client IP always hashes to Server B, repeat visits land on the same node without needing a cookie.",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"originalText": "The same client IP always hashes to Server B, repeat visits land on the same node without needing a cookie."
}
]Consistent Hashing & Virtual Nodes
Standard modulo hashing (Hash(Key) % N) fails catastrophically when a server node is added or removed because N changes, causing almost 100% of keys to re-map and invalidating distributed caches (cache stampede).
Consistent Hashing maps both servers and keys onto a circular hash ring (0 to 232-1). A key is assigned to the first server encountered moving clockwise on the ring. When a server is added or removed, only K / N keys are remapped on average!
Consistent Hashing Ring Architecture
System DesignVirtual nodes ensure uniform distribution across the 32-bit hash space
[
{
"id": "OMcuJF7e8yBYTPL1mHaWM",
"type": "ellipse",
"x": 220,
"y": 60,
"width": 400,
"height": 400,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a0",
"roundness": null,
"seed": 1,
"version": 2,
"versionNonce": 227420116,
"isDeleted": false,
"boundElements": [],
"updated": 1787734806915,
"link": null,
"locked": false
},
{
"id": "rvaLG31FPQfjclN_V9BQC",
"type": "text",
"x": 43.099281311035156,
"y": -18.982140677315854,
"width": 126.37284851074219,
"height": 16.25,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a1",
"roundness": null,
"seed": 3,
"version": 83,
"versionNonce": 928446878,
"isDeleted": false,
"boundElements": [],
"updated": 1787734889948,
"link": null,
"locked": false,
"text": "Hash Ring: 0 to 2³²-1",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Hash Ring: 0 to 2³²-1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "di5gZFAuPU7wFDs3eVAul",
"type": "rectangle",
"x": 523.1428309849331,
"y": 167.7142769949777,
"width": 140,
"height": 50,
"angle": 0,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a2",
"roundness": {
"type": 3
},
"seed": 5,
"version": 43,
"versionNonce": 1200563522,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "4s30FHaCTjRyh0HU2MT9g"
}
],
"updated": 1787734938838,
"link": null,
"locked": false
},
{
"id": "4s30FHaCTjRyh0HU2MT9g",
"type": "text",
"x": 533.1428309849331,
"y": 177.7142769949777,
"width": 120,
"height": 30,
"angle": 0,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a3",
"roundness": null,
"seed": 7,
"version": 44,
"versionNonce": 699164766,
"isDeleted": false,
"boundElements": [],
"updated": 1787734939038,
"link": null,
"locked": false,
"text": "Node A\nAngle 45°",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "di5gZFAuPU7wFDs3eVAul",
"originalText": "Node A\nAngle 45°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "KndoG0tNGyIRV5af7JKct",
"type": "rectangle",
"x": 348.57146344866067,
"y": 428.14287458147317,
"width": 140,
"height": 50,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a4",
"roundness": {
"type": 3
},
"seed": 9,
"version": 39,
"versionNonce": 82242206,
"isDeleted": false,
"boundElements": [
{
"id": "sp3DbymlbWucduxnzh_UL",
"type": "arrow"
},
{
"type": "text",
"id": "X2jtlnOngZL4LJBNZcDc3"
}
],
"updated": 1787734943987,
"link": null,
"locked": false
},
{
"id": "X2jtlnOngZL4LJBNZcDc3",
"type": "text",
"x": 358.57146344866067,
"y": 438.14287458147317,
"width": 120,
"height": 30,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a5",
"roundness": null,
"seed": 11,
"version": 38,
"versionNonce": 338421470,
"isDeleted": false,
"boundElements": [],
"updated": 1787734943987,
"link": null,
"locked": false,
"text": "Node B\nAngle 160°",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "KndoG0tNGyIRV5af7JKct",
"originalText": "Node B\nAngle 160°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "GFmQG78SxAdoEVBeUrKP4",
"type": "rectangle",
"x": 182.5714329310826,
"y": 173.0000174386161,
"width": 140,
"height": 50,
"angle": 0,
"strokeColor": "#f59e0b",
"backgroundColor": "#fffbe6",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a6",
"roundness": {
"type": 3
},
"seed": 13,
"version": 21,
"versionNonce": 157997278,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "ORGjxiSADVf02EXD4P-LW"
}
],
"updated": 1787734948903,
"link": null,
"locked": false
},
{
"id": "ORGjxiSADVf02EXD4P-LW",
"type": "text",
"x": 192.5714329310826,
"y": 183.0000174386161,
"width": 120,
"height": 30,
"angle": 0,
"strokeColor": "#92400e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a7",
"roundness": null,
"seed": 15,
"version": 21,
"versionNonce": 915934494,
"isDeleted": false,
"boundElements": [],
"updated": 1787734948903,
"link": null,
"locked": false,
"text": "Node C\nAngle 290°",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "GFmQG78SxAdoEVBeUrKP4",
"originalText": "Node C\nAngle 290°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "0mMFQw5QwaLSNW_xrqseQ",
"type": "rectangle",
"x": 524.4285452706473,
"y": 302.85714285714283,
"width": 140,
"height": 50,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "#f1f5f9",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a8",
"roundness": {
"type": 3
},
"seed": 17,
"version": 23,
"versionNonce": 1206236574,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "9bPqwhTLePlMlV4XgXZsG"
}
],
"updated": 1787734945238,
"link": null,
"locked": false
},
{
"id": "9bPqwhTLePlMlV4XgXZsG",
"type": "text",
"x": 534.4285452706473,
"y": 314.10714285714283,
"width": 120,
"height": 27.5,
"angle": 0,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a9",
"roundness": null,
"seed": 19,
"version": 23,
"versionNonce": 1125732830,
"isDeleted": false,
"boundElements": [],
"updated": 1787734945238,
"link": null,
"locked": false,
"text": "Virtual Node A1\n120°",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "0mMFQw5QwaLSNW_xrqseQ",
"originalText": "Virtual Node A1\n120°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "WUTLAY9aONToX9Lc4Bhek",
"type": "rectangle",
"x": 177.7142551967076,
"y": 302.28571864536826,
"width": 140,
"height": 50,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "#f1f5f9",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aA",
"roundness": {
"type": 3
},
"seed": 21,
"version": 42,
"versionNonce": 1682902750,
"isDeleted": false,
"boundElements": [
{
"id": "b6KtAmoqLJRAX3YMf82DI",
"type": "arrow"
},
{
"type": "text",
"id": "3YAT1qQVf3XadCI1KPopN"
}
],
"updated": 1787734947737,
"link": null,
"locked": false
},
{
"id": "3YAT1qQVf3XadCI1KPopN",
"type": "text",
"x": 187.7142551967076,
"y": 313.53571864536826,
"width": 120,
"height": 27.5,
"angle": 0,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aB",
"roundness": null,
"seed": 23,
"version": 41,
"versionNonce": 1401258782,
"isDeleted": false,
"boundElements": [],
"updated": 1787734947738,
"link": null,
"locked": false,
"text": "Virtual Node B1\n230°",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "WUTLAY9aONToX9Lc4Bhek",
"originalText": "Virtual Node B1\n230°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "Ki7ZIsyq-QE0wHbTDUfK3",
"type": "rectangle",
"x": 356.57140241350453,
"y": 40.71428571428572,
"width": 140,
"height": 50,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "#f1f5f9",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aC",
"roundness": {
"type": 3
},
"seed": 25,
"version": 50,
"versionNonce": 959228766,
"isDeleted": false,
"boundElements": [
{
"id": "l6_X4cKA1o6fx7v37EGuC",
"type": "arrow"
},
{
"type": "text",
"id": "XcUJLyCi_GVDqrfQf_tNh"
}
],
"updated": 1787734941238,
"link": null,
"locked": false
},
{
"id": "XcUJLyCi_GVDqrfQf_tNh",
"type": "text",
"x": 366.57140241350453,
"y": 51.96428571428572,
"width": 120,
"height": 27.5,
"angle": 0,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aD",
"roundness": null,
"seed": 27,
"version": 49,
"versionNonce": 1669042078,
"isDeleted": false,
"boundElements": [],
"updated": 1787734941238,
"link": null,
"locked": false,
"text": "Virtual Node C1\n340°",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "Ki7ZIsyq-QE0wHbTDUfK3",
"originalText": "Virtual Node C1\n340°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "5txgW-sOQsUd5ZZnvx-ex",
"type": "rectangle",
"x": 660,
"y": 470,
"width": 190,
"height": 55,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aE",
"roundness": {
"type": 3
},
"seed": 29,
"version": 3,
"versionNonce": 1045531010,
"isDeleted": false,
"boundElements": [
{
"id": "sp3DbymlbWucduxnzh_UL",
"type": "arrow"
},
{
"type": "text",
"id": "PUwk-BUZXntqSrfVzF5Rt"
}
],
"updated": 1787734920853,
"link": null,
"locked": false
},
{
"id": "PUwk-BUZXntqSrfVzF5Rt",
"type": "text",
"x": 670,
"y": 490,
"width": 170,
"height": 15,
"angle": 0,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aF",
"roundness": null,
"seed": 31,
"version": 2,
"versionNonce": 398442732,
"isDeleted": false,
"boundElements": [],
"updated": 1787734806915,
"link": null,
"locked": false,
"text": "User Key: user_101",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "5txgW-sOQsUd5ZZnvx-ex",
"originalText": "User Key: user_101",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "8_6nTNkDTPK-2jOkGGZx7",
"type": "rectangle",
"x": 10,
"y": 470,
"width": 190,
"height": 55,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aG",
"roundness": {
"type": 3
},
"seed": 33,
"version": 3,
"versionNonce": 1586678530,
"isDeleted": false,
"boundElements": [
{
"id": "b6KtAmoqLJRAX3YMf82DI",
"type": "arrow"
},
{
"type": "text",
"id": "lnghmYiyXPKljMauveJwt"
}
],
"updated": 1787734910972,
"link": null,
"locked": false
},
{
"id": "lnghmYiyXPKljMauveJwt",
"type": "text",
"x": 20,
"y": 490,
"width": 170,
"height": 15,
"angle": 0,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aH",
"roundness": null,
"seed": 35,
"version": 2,
"versionNonce": 309379948,
"isDeleted": false,
"boundElements": [],
"updated": 1787734806915,
"link": null,
"locked": false,
"text": "User Key: user_205",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "8_6nTNkDTPK-2jOkGGZx7",
"originalText": "User Key: user_205",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "6q7yw0_MBNd6rlKAjDa-4",
"type": "rectangle",
"x": 10,
"y": 10,
"width": 190,
"height": 55,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aI",
"roundness": {
"type": 3
},
"seed": 37,
"version": 3,
"versionNonce": 188410754,
"isDeleted": false,
"boundElements": [
{
"id": "l6_X4cKA1o6fx7v37EGuC",
"type": "arrow"
},
{
"type": "text",
"id": "zeInHPEG-69tZqaPuJPrM"
},
{
"type": "text",
"id": "qhHQamM6bpQUNHKWyMSUY"
}
],
"updated": 1787734895868,
"link": null,
"locked": false
},
{
"id": "zeInHPEG-69tZqaPuJPrM",
"type": "text",
"x": 20,
"y": 30,
"width": 170,
"height": 15,
"angle": 0,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aJ",
"roundness": null,
"seed": 39,
"version": 2,
"versionNonce": 1155364332,
"isDeleted": false,
"boundElements": [],
"updated": 1787734806915,
"link": null,
"locked": false,
"text": "User Key: user_808",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "6q7yw0_MBNd6rlKAjDa-4",
"originalText": "User Key: user_808",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "sp3DbymlbWucduxnzh_UL",
"type": "arrow",
"x": 661.2050967943362,
"y": 474.72016277371483,
"width": 158.9990436058709,
"height": 24.956797501799144,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aK",
"roundness": null,
"seed": 41,
"version": 106,
"versionNonce": 570907422,
"isDeleted": false,
"boundElements": [],
"updated": 1787734943988,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
-158.9990436058709,
-24.956797501799144
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "5txgW-sOQsUd5ZZnvx-ex",
"focus": 0.17503027497346865,
"gap": 1
},
"endBinding": {
"elementId": "KndoG0tNGyIRV5af7JKct",
"focus": -0.4569166711687913,
"gap": 15.07144601004461
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "aS_-7LcaIy7A1xAMUAxCb",
"type": "text",
"x": 724.2832499912806,
"y": 441.12494332449774,
"width": 60.00492858886719,
"height": 13.75,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aL",
"roundness": null,
"seed": 43,
"version": 61,
"versionNonce": 2127532546,
"isDeleted": false,
"boundElements": [],
"updated": 1787734924358,
"link": null,
"locked": false,
"text": "Hash = 90°",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Hash = 90°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "b6KtAmoqLJRAX3YMf82DI",
"type": "arrow",
"x": 168.2959356907214,
"y": 466.9860240845929,
"width": 74.06370453164408,
"height": 104.95555779117609,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aM",
"roundness": null,
"seed": 45,
"version": 291,
"versionNonce": 1391645762,
"isDeleted": false,
"boundElements": [],
"updated": 1787734998946,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
74.06370453164408,
-104.95555779117609
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "8_6nTNkDTPK-2jOkGGZx7",
"focus": 0.3650444503915674,
"gap": 3.0139759154071157
},
"endBinding": {
"elementId": "WUTLAY9aONToX9Lc4Bhek",
"focus": -0.21865870880397012,
"gap": 9.74474764804853
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "OumXbYbxWI8RjsJoh6H1C",
"type": "text",
"x": 67.13173784528462,
"y": 535.4107230050223,
"width": 66.30792236328125,
"height": 13.75,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aN",
"roundness": null,
"seed": 47,
"version": 67,
"versionNonce": 999373442,
"isDeleted": false,
"boundElements": [],
"updated": 1787734989778,
"link": null,
"locked": false,
"text": "Hash = 200°",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Hash = 200°",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "l6_X4cKA1o6fx7v37EGuC",
"type": "arrow",
"x": 204.82243432943034,
"y": 29.744853864499355,
"width": 145.78677714758317,
"height": 26.441374137517336,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aO",
"roundness": null,
"seed": 49,
"version": 149,
"versionNonce": 1659104222,
"isDeleted": false,
"boundElements": [],
"updated": 1787734941238,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
145.78677714758317,
26.441374137517336
]
],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "6q7yw0_MBNd6rlKAjDa-4",
"focus": -0.5805862858821406,
"gap": 5.07144601004461
},
"endBinding": {
"elementId": "Ki7ZIsyq-QE0wHbTDUfK3",
"focus": -0.11268445558052603,
"gap": 6.446929051461409
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "qhHQamM6bpQUNHKWyMSUY",
"type": "text",
"x": 20,
"y": 30.625,
"width": 170,
"height": 13.75,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aP",
"roundness": null,
"seed": 51,
"version": 2,
"versionNonce": 514698604,
"isDeleted": false,
"boundElements": [],
"updated": 1787734806915,
"link": null,
"locked": false,
"text": "Hash = 310°",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "6q7yw0_MBNd6rlKAjDa-4",
"originalText": "Hash = 310°",
"autoResize": true,
"lineHeight": 1.25
}
]Virtual Nodes (VNodes)
To prevent non-uniform key distribution (hotspots) due to sparse physical node placement, each physical server is mapped to dozens or hundreds of virtual positions (virtual nodes) across the ring.
Consistent Hashing Algorithm in Python
Virtual node mapping, circular ring placement, and clockwise lookup
Press Run to execute the code and see output here.
4. Hardware vs Software Load Balancers
Hardware Load Balancers
- Description:Specialized physical rack appliances built with custom ASICs or FPGAs.
- Vendors:F5 BIG-IP, Citrix ADC (NetScaler), A10 Networks.
- Pros:Unmatched raw throughput, gigabit-per-second packet processing, hardware TLS chips.
- Cons:Extremely expensive ($10k–$100k+), complex physical management, poor flexibility in automated CI/CD pipelines.
Software Load Balancers
- Description:Applications running on standard Linux VMs, bare-metal servers, or cloud containers.
- Technologies:Nginx, HAProxy, Envoy Proxy, Traefik, AWS ALB/NLB.
- Pros:Open-source, highly flexible, programmable via API/IaC (Terraform), cost-effective.
- Cons:Bound by general-purpose CPU and Linux kernel OS networking stack limits.
Production Nginx Reverse Proxy & Load Balancer Config
Upstream pool configuration, IP hashing, weights, and health check locations
Press Run to execute the code and see output here.
5. Global Server Load Balancing (GSLB)
While traditional load balancers manage traffic inside a single data center, Global Server Load Balancing (GSLB) routes user traffic across multiple geographically distributed data centers around the globe.
Global Server Load Balancing (GSLB) Architecture
System DesignGeoDNS routing user queries to nearest data center cluster
[
{
"id": "TyyfEkhGNKixo4Yfb8-ez",
"type": "rectangle",
"x": 40,
"y": 40,
"width": 190,
"height": 60,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a0",
"roundness": {
"type": 3
},
"seed": 1,
"version": 3,
"versionNonce": 1106043837,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "jpzxaaH4EPvUjGZ6hR_jm"
}
],
"updated": 1787735508474,
"link": null,
"locked": false
},
{
"id": "jpzxaaH4EPvUjGZ6hR_jm",
"type": "text",
"x": 50,
"y": 61.875,
"width": 170,
"height": 16.25,
"angle": 0,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a1",
"roundness": null,
"seed": 3,
"version": 2,
"versionNonce": 1583463508,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508474,
"link": null,
"locked": false,
"text": "User in New York",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "TyyfEkhGNKixo4Yfb8-ez",
"originalText": "User in New York",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "e-9Zw4nWpc_rM_HWFSxn9",
"type": "rectangle",
"x": 40,
"y": 150,
"width": 190,
"height": 60,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "#f8fafc",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a2",
"roundness": {
"type": 3
},
"seed": 5,
"version": 3,
"versionNonce": 261795955,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "IvlJxskz13bGcltfl0N_G"
}
],
"updated": 1787735508474,
"link": null,
"locked": false
},
{
"id": "IvlJxskz13bGcltfl0N_G",
"type": "text",
"x": 50,
"y": 171.875,
"width": 170,
"height": 16.25,
"angle": 0,
"strokeColor": "#334155",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a3",
"roundness": null,
"seed": 7,
"version": 2,
"versionNonce": 890180052,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508474,
"link": null,
"locked": false,
"text": "User in London",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "e-9Zw4nWpc_rM_HWFSxn9",
"originalText": "User in London",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "dpbbFHO_kvH6sxUqirFKs",
"type": "diamond",
"x": 300,
"y": 80,
"width": 190,
"height": 130,
"angle": 0,
"strokeColor": "#3b2a8e",
"backgroundColor": "#3b2a8e",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a4",
"roundness": null,
"seed": 9,
"version": 6,
"versionNonce": 1789473459,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "z4kMbW6hE6klp4H4AGPxl"
}
],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "z4kMbW6hE6klp4H4AGPxl",
"type": "text",
"x": 310,
"y": 136.875,
"width": 170,
"height": 16.25,
"angle": 0,
"strokeColor": "#ffffff",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a5",
"roundness": null,
"seed": 11,
"version": 2,
"versionNonce": 1182119764,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false,
"text": "GeoDNS Server",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "dpbbFHO_kvH6sxUqirFKs",
"originalText": "GeoDNS Server",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "VylONv6OKHAeFtGx9kxsb",
"type": "rectangle",
"x": 570,
"y": 20,
"width": 230,
"height": 70,
"angle": 0,
"strokeColor": "#2563eb",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a6",
"roundness": {
"type": 3
},
"seed": 13,
"version": 4,
"versionNonce": 1124882739,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "6yI9Xu6mGjFFTtSGyPqA5"
}
],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "6yI9Xu6mGjFFTtSGyPqA5",
"type": "text",
"x": 580,
"y": 40,
"width": 210,
"height": 30,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a7",
"roundness": null,
"seed": 15,
"version": 2,
"versionNonce": 250326228,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false,
"text": "US-East Data Center\nAWS N. Virginia",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "VylONv6OKHAeFtGx9kxsb",
"originalText": "US-East Data Center\nAWS N. Virginia",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "rPPryEHsjrrOTMaVPY-Z9",
"type": "rectangle",
"x": 573.0769230769231,
"y": 149.2307692307692,
"width": 230,
"height": 70,
"angle": 0,
"strokeColor": "#059669",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a8",
"roundness": {
"type": 3
},
"seed": 17,
"version": 53,
"versionNonce": 449590877,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "10uAMxC4i2h0bk6r0XQgM"
}
],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "10uAMxC4i2h0bk6r0XQgM",
"type": "text",
"x": 583.0769230769231,
"y": 169.2307692307692,
"width": 210,
"height": 30,
"angle": 0,
"strokeColor": "#064e3b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a9",
"roundness": null,
"seed": 19,
"version": 51,
"versionNonce": 1391798355,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false,
"text": "EU-Central Data Center\nAWS Frankfurt",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "rPPryEHsjrrOTMaVPY-Z9",
"originalText": "EU-Central Data Center\nAWS Frankfurt",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "GrcaLUoRdWgskw9ZRqD-X",
"type": "rectangle",
"x": 857.8462101862981,
"y": -65.23077451265772,
"width": 260,
"height": 220,
"angle": 0,
"strokeColor": "#2563eb",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aA",
"roundness": {
"type": 3
},
"seed": 21,
"version": 83,
"versionNonce": 811727347,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "0clREAFxctHEd-uQBicdA",
"type": "text",
"x": 934.9743480193305,
"y": -52.179473094451154,
"width": 99.179931640625,
"height": 25,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aB",
"roundness": null,
"seed": 23,
"version": 206,
"versionNonce": 1683701666,
"isDeleted": false,
"boundElements": [],
"updated": 1787735550294,
"link": null,
"locked": false,
"text": "US Region",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "middle",
"containerId": null,
"originalText": "US Region",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "S0qjpFC4RML6LsIYA70ba",
"type": "rectangle",
"x": 887.1538367638223,
"y": -22.307704045222295,
"width": 210,
"height": 55,
"angle": 0,
"strokeColor": "#2563eb",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aC",
"roundness": {
"type": 3
},
"seed": 25,
"version": 111,
"versionNonce": 778144307,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "41Ja8tizBizwHKO1xWqc_"
}
],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "41Ja8tizBizwHKO1xWqc_",
"type": "text",
"x": 897.1538367638223,
"y": -2.9327040452222946,
"width": 190,
"height": 16.25,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aD",
"roundness": null,
"seed": 27,
"version": 111,
"versionNonce": 1756875731,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false,
"text": "Regional ALB",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "S0qjpFC4RML6LsIYA70ba",
"originalText": "Regional ALB",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "oAEoSVi-5cSZAF5d9EXbe",
"type": "rectangle",
"x": 887.1538367638223,
"y": 62.692295954777705,
"width": 210,
"height": 55,
"angle": 0,
"strokeColor": "#2563eb",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aE",
"roundness": {
"type": 3
},
"seed": 29,
"version": 111,
"versionNonce": 773118323,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "ot4HCxTPb1GP_L5HYzlCL"
}
],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "ot4HCxTPb1GP_L5HYzlCL",
"type": "text",
"x": 897.1538367638223,
"y": 82.0672959547777,
"width": 190,
"height": 16.25,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aF",
"roundness": null,
"seed": 31,
"version": 111,
"versionNonce": 197079827,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false,
"text": "App Cluster US",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "oAEoSVi-5cSZAF5d9EXbe",
"originalText": "App Cluster US",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "CC4lDpGTHCIQpb7tJALZr",
"type": "rectangle",
"x": 579.230769230769,
"y": 307.07693246694714,
"width": 261.23079740084154,
"height": 220,
"angle": 0,
"strokeColor": "#059669",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aG",
"roundness": {
"type": 3
},
"seed": 33,
"version": 121,
"versionNonce": 1927887166,
"isDeleted": false,
"boundElements": [],
"updated": 1787735540919,
"link": null,
"locked": false
},
{
"id": "ANnV4v2FeKryVYyqY350s",
"type": "rectangle",
"x": 603.6153940054087,
"y": 333.999985914964,
"width": 210,
"height": 55,
"angle": 0,
"strokeColor": "#059669",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aI",
"roundness": {
"type": 3
},
"seed": 37,
"version": 107,
"versionNonce": 274090963,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "MFOENXUvMaUGd3Bzqo8xX"
}
],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "MFOENXUvMaUGd3Bzqo8xX",
"type": "text",
"x": 613.6153940054087,
"y": 353.374985914964,
"width": 190,
"height": 16.25,
"angle": 0,
"strokeColor": "#064e3b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aJ",
"roundness": null,
"seed": 39,
"version": 107,
"versionNonce": 1575180659,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false,
"text": "Regional ALB",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "ANnV4v2FeKryVYyqY350s",
"originalText": "Regional ALB",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "wucN0wlLuyxWX0sP-kt_9",
"type": "rectangle",
"x": 603.6153940054087,
"y": 418.999985914964,
"width": 210,
"height": 55,
"angle": 0,
"strokeColor": "#059669",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aK",
"roundness": {
"type": 3
},
"seed": 41,
"version": 107,
"versionNonce": 1035842323,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "NfvikM7KMVJ86B0K55ABW"
}
],
"updated": 1787735508475,
"link": null,
"locked": false
},
{
"id": "NfvikM7KMVJ86B0K55ABW",
"type": "text",
"x": 613.6153940054087,
"y": 438.374985914964,
"width": 190,
"height": 16.25,
"angle": 0,
"strokeColor": "#064e3b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aL",
"roundness": null,
"seed": 43,
"version": 107,
"versionNonce": 274454707,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508475,
"link": null,
"locked": false,
"text": "App Cluster EU",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "wucN0wlLuyxWX0sP-kt_9",
"originalText": "App Cluster EU",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "gh5P1cfidVeepNcfBOPXm",
"type": "arrow",
"x": 230.38460129957934,
"y": 71,
"width": 70.46152437650244,
"height": 74.61536583533652,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aM",
"roundness": null,
"seed": 45,
"version": 34,
"versionNonce": 1927934515,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508476,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
70.46152437650244,
74.61536583533652
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "M1abEex8OkKsQle59IItV",
"type": "arrow",
"x": 230.38460129957934,
"y": 180.23075045072116,
"width": 67.38462477463946,
"height": 31.999997652493988,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aN",
"roundness": null,
"seed": 47,
"version": 63,
"versionNonce": 1338005021,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508476,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
67.38462477463946,
-31.999997652493988
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "QQAuJbAHWZHv_ge_MNAwL",
"type": "text",
"x": 15.250227708082917,
"y": 11.788435715895417,
"width": 112.6728515625,
"height": 13.75,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aO",
"roundness": null,
"seed": 49,
"version": 68,
"versionNonce": 1927515859,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508476,
"link": null,
"locked": false,
"text": "DNS Query: app.com",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "DNS Query: app.com",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "3U584Ro4TWuI4wWB9zU8a",
"type": "arrow",
"x": 492.8461726262019,
"y": 145.000002347506,
"width": 76.1538273737981,
"height": 89.00000234750601,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aP",
"roundness": null,
"seed": 51,
"version": 26,
"versionNonce": 2124809747,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508476,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
76.1538273737981,
-89.00000234750601
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "Jk7MpP3SCezfhYjZeMuoV",
"type": "text",
"x": 404.5502387804863,
"y": 50.714739285982574,
"width": 143.42384338378906,
"height": 20,
"angle": 0,
"strokeColor": "#2563eb",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aQ",
"roundness": null,
"seed": 53,
"version": 120,
"versionNonce": 485938018,
"isDeleted": false,
"boundElements": [],
"updated": 1787735592844,
"link": null,
"locked": false,
"text": "Resolves 54.210.1.5",
"fontSize": 16,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Resolves 54.210.1.5",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "kIENy1Z1fx7svBTcCtVMf",
"type": "arrow",
"x": 484.9022718713127,
"y": 154.14165936116737,
"width": 86.71958706879923,
"height": 28.98846333226814,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aR",
"roundness": null,
"seed": 55,
"version": 73,
"versionNonce": 292726259,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508476,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
86.71958706879923,
28.98846333226814
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "uC15TiADMH-QyrvECGszO",
"type": "text",
"x": 382.2635880525642,
"y": 230.04485692733368,
"width": 147.08470153808594,
"height": 19.90384615384617,
"angle": 0,
"strokeColor": "#059669",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aS",
"roundness": null,
"seed": 57,
"version": 163,
"versionNonce": 952842174,
"isDeleted": false,
"boundElements": [],
"updated": 1787735557284,
"link": null,
"locked": false,
"text": "Resolves 35.156.0.2",
"fontSize": 15.923076923076936,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Resolves 35.156.0.2",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "hT5qA4PvZOcVym9EJ5ZMb",
"type": "arrow",
"x": 805.576904296875,
"y": 62.07691838191107,
"width": 49.46151968149047,
"height": 0.307682917668302,
"angle": 0,
"strokeColor": "#2563eb",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aT",
"roundness": null,
"seed": 59,
"version": 104,
"versionNonce": 1697118237,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508477,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
49.46151968149047,
-0.307682917668302
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "L5lD-myILnfDJl-YhzUkK",
"type": "arrow",
"x": 992.1538367638223,
"y": 33.692295954777705,
"width": 0,
"height": 28,
"angle": 0,
"strokeColor": "#2563eb",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aU",
"roundness": null,
"seed": 61,
"version": 111,
"versionNonce": 573397171,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508477,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
0,
28
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "2CPUx6-VGFEw2Kib_Oidy",
"type": "arrow",
"x": 701.2837802462049,
"y": 221.04028690803796,
"width": 1.108896021110695,
"height": 85.65090678249925,
"angle": 0,
"strokeColor": "#059669",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aV",
"roundness": null,
"seed": 63,
"version": 294,
"versionNonce": 1777852243,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508477,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
-1.108896021110695,
85.65090678249925
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "gnmZtGLDezYYqUoH1q2G5",
"type": "arrow",
"x": 698.6153940054087,
"y": 389.999985914964,
"width": 0,
"height": 28,
"angle": 0,
"strokeColor": "#059669",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aW",
"roundness": null,
"seed": 65,
"version": 107,
"versionNonce": 1269663731,
"isDeleted": false,
"boundElements": [],
"updated": 1787735508477,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
0,
28
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "yndfmupQRB3t457LvQIWC",
"type": "text",
"x": 664.3800162290917,
"y": 543.8654573880709,
"width": 97.69993591308594,
"height": 25,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aX",
"roundness": null,
"seed": 1510185470,
"version": 133,
"versionNonce": 555987298,
"isDeleted": false,
"boundElements": null,
"updated": 1787735622771,
"link": null,
"locked": false,
"text": "EU Region",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "top",
"containerId": null,
"originalText": "EU Region",
"autoResize": true,
"lineHeight": 1.25
}
]GeoDNS Routing
Inspects the client's DNS resolver IP address and returns the IP of the data center nearest to the user, minimizing round-trip time (RTT).
BGP Anycast
Announces the exact same IP address from multiple data centers worldwide. Internet routers automatically pick the shortest network path via BGP.
6. Health Checks and Failover
Load balancers continuously send probe requests to backend nodes to verify operational health. If a node fails a set number of consecutive checks, it is temporarily removed from the active routing pool until health is restored.
Health Check & Automated Failover Sequence
System DesignActive probe polling, failure threshold detection, and automatic traffic migration
[
{
"id": "C34Tn134s3RLfxWVkg5OV",
"type": "rectangle",
"x": 60,
"y": 20,
"width": 180,
"height": 50,
"angle": 0,
"strokeColor": "#8b4dde",
"backgroundColor": "#f3e8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a0",
"roundness": {
"type": 3
},
"seed": 1,
"version": 2,
"versionNonce": 1026802862,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "80eHO22V2QL33S0kQi7uj"
}
],
"updated": 1787737484788,
"link": null,
"locked": false
},
{
"id": "80eHO22V2QL33S0kQi7uj",
"type": "text",
"x": 70,
"y": 36.875,
"width": 160,
"height": 16.25,
"angle": 0,
"strokeColor": "#6b21a8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a1",
"roundness": null,
"seed": 3,
"version": 2,
"versionNonce": 878355762,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484788,
"link": null,
"locked": false,
"text": "Load Balancer",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "C34Tn134s3RLfxWVkg5OV",
"originalText": "Load Balancer",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "bsiD7sgQ149rm3iwRCJ4f",
"type": "rectangle",
"x": 380,
"y": 20,
"width": 180,
"height": 50,
"angle": 0,
"strokeColor": "#10b981",
"backgroundColor": "#ecfdf5",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a2",
"roundness": {
"type": 3
},
"seed": 5,
"version": 2,
"versionNonce": 1341325038,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "yaS8R0JcIdxAZUdbgjIA4"
}
],
"updated": 1787737484788,
"link": null,
"locked": false
},
{
"id": "yaS8R0JcIdxAZUdbgjIA4",
"type": "text",
"x": 390,
"y": 36.875,
"width": 160,
"height": 16.25,
"angle": 0,
"strokeColor": "#065f46",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a3",
"roundness": null,
"seed": 7,
"version": 2,
"versionNonce": 468922098,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"text": "Server A (Primary)",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "bsiD7sgQ149rm3iwRCJ4f",
"originalText": "Server A (Primary)",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "F0QJq7HEpdhPKugjkVUd9",
"type": "rectangle",
"x": 700,
"y": 20,
"width": 180,
"height": 50,
"angle": 0,
"strokeColor": "#3b82f6",
"backgroundColor": "#eff6ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a4",
"roundness": {
"type": 3
},
"seed": 9,
"version": 2,
"versionNonce": 860942638,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "mliye7f3UI_8zPNP50ZOa"
}
],
"updated": 1787737484789,
"link": null,
"locked": false
},
{
"id": "mliye7f3UI_8zPNP50ZOa",
"type": "text",
"x": 710,
"y": 36.875,
"width": 160,
"height": 16.25,
"angle": 0,
"strokeColor": "#1e40af",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a5",
"roundness": null,
"seed": 11,
"version": 2,
"versionNonce": 458522802,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"text": "Server B (Secondary)",
"fontSize": 13,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "F0QJq7HEpdhPKugjkVUd9",
"originalText": "Server B (Secondary)",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "BewdzIYtXMCusl4ixd-i_",
"type": "line",
"x": 150,
"y": 70,
"width": 0,
"height": 643.0909035422585,
"angle": 0,
"strokeColor": "#cbd5e1",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a6",
"roundness": null,
"seed": 13,
"version": 47,
"versionNonce": 828863890,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
0,
643.0909035422585
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": null
},
{
"id": "Bbwz2wBjuZPidAtn9T31n",
"type": "line",
"x": 470,
"y": 70,
"width": 3.636363636363626,
"height": 641.6363525390625,
"angle": 0,
"strokeColor": "#cbd5e1",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a7",
"roundness": null,
"seed": 15,
"version": 55,
"versionNonce": 883173138,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
3.636363636363626,
641.6363525390625
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": null
},
{
"id": "c4NMMBO-DdFpLHnJl2r5Q",
"type": "line",
"x": 790,
"y": 70,
"width": 2.2737367544323206e-13,
"height": 644.5454545454546,
"angle": 0,
"strokeColor": "#cbd5e1",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a8",
"roundness": null,
"seed": 17,
"version": 71,
"versionNonce": 758462158,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
2.2737367544323206e-13,
644.5454545454546
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": null
},
{
"id": "i3LCy9dki4EtvL0lwz877",
"type": "rectangle",
"x": 10.848493479719195,
"y": 103.95959102746201,
"width": 860.7273171164773,
"height": 174.72725608132097,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a9",
"roundness": {
"type": 3
},
"seed": 19,
"version": 176,
"versionNonce": 748526717,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "T5W_34XDcuI6CJOMWVukW"
}
],
"updated": 1787737714604,
"link": null,
"locked": false
},
{
"id": "knS_aA11oNjpF9648fb4k",
"type": "text",
"x": 32.36364746093747,
"y": -28.818187366832376,
"width": 216.39984130859375,
"height": 25,
"angle": 0,
"strokeColor": "#94a3b8",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aA",
"roundness": null,
"seed": 21,
"version": 87,
"versionNonce": 335268626,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"text": "loop Every 5 Seconds",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "middle",
"containerId": null,
"originalText": "loop Every 5 Seconds",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "3UMzlmqoZW0IPmh8iCmOa",
"type": "arrow",
"x": 152.45457874644887,
"y": 139.45453990589488,
"width": 318,
"height": 0,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aB",
"roundness": null,
"seed": 23,
"version": 19,
"versionNonce": 164046030,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
318,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "5GcFadiO0wARJx3RtK_On",
"type": "text",
"x": 287.6129919495243,
"y": 121.37373614070319,
"width": 155.3118438720703,
"height": 20,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aC",
"roundness": null,
"seed": 25,
"version": 247,
"versionNonce": 1912936211,
"isDeleted": false,
"boundElements": [],
"updated": 1787737717029,
"link": null,
"locked": false,
"text": "GET /health HTTP/1.1",
"fontSize": 16,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "GET /health HTTP/1.1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "d3yIk18aON8bP3-kGKyv9",
"type": "arrow",
"x": 469,
"y": 165,
"width": 318,
"height": 0,
"angle": 0,
"strokeColor": "#2f9e44",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aD",
"roundness": null,
"seed": 27,
"version": 3,
"versionNonce": 1238348253,
"isDeleted": false,
"boundElements": [],
"updated": 1787737521352,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
-318,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "TuDR8YTw3UBzxjxajgOOt",
"type": "arrow",
"x": 151,
"y": 200,
"width": 638,
"height": 0,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aF",
"roundness": null,
"seed": 31,
"version": 2,
"versionNonce": 1312018802,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
638,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "1DQq441RyJ-xwbRjcZpns",
"type": "arrow",
"x": 789,
"y": 235,
"width": 638,
"height": 0,
"angle": 0,
"strokeColor": "#2f9e44",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aH",
"roundness": null,
"seed": 35,
"version": 3,
"versionNonce": 1525194397,
"isDeleted": false,
"boundElements": [],
"updated": 1787737525661,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
-638,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "k_mql7zfLLoGVFoI25KNO",
"type": "rectangle",
"x": 380,
"y": 280,
"width": 180,
"height": 50,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "#fef2f2",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aJ",
"roundness": {
"type": 3
},
"seed": 39,
"version": 2,
"versionNonce": 897555698,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "XukJAKhqzD62e_Dy1lLdn"
}
],
"updated": 1787737484789,
"link": null,
"locked": false
},
{
"id": "XukJAKhqzD62e_Dy1lLdn",
"type": "text",
"x": 390,
"y": 290,
"width": 160,
"height": 30,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aK",
"roundness": null,
"seed": 41,
"version": 4,
"versionNonce": 563089614,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"text": "Server A Out of Memory\nCrash!",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "k_mql7zfLLoGVFoI25KNO",
"originalText": "Server A Out of Memory Crash!",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "ah9naP97DNnq1HZZQNGCJ",
"type": "arrow",
"x": 151,
"y": 360,
"width": 318,
"height": 0,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aL",
"roundness": null,
"seed": 43,
"version": 2,
"versionNonce": 1696804530,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
318,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "ar6s6oIsJrqXqT6iztxRz",
"type": "text",
"x": 251.8194421325067,
"y": 329.8383659593985,
"width": 155.3118438720703,
"height": 20,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aM",
"roundness": null,
"seed": 45,
"version": 144,
"versionNonce": 755866685,
"isDeleted": false,
"boundElements": [],
"updated": 1787737601118,
"link": null,
"locked": false,
"text": "GET /health HTTP/1.1",
"fontSize": 16,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "GET /health HTTP/1.1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "M1xZB825k2kRUxetid6lp",
"type": "arrow",
"x": 469,
"y": 395,
"width": 318,
"height": 0,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aN",
"roundness": null,
"seed": 47,
"version": 2,
"versionNonce": 99518578,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484789,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
-318,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "mcUAqcjD7cdea_Leun0vD",
"type": "text",
"x": 283.06797004468524,
"y": 418.68690721916425,
"width": 242.91177368164062,
"height": 20,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aO",
"roundness": null,
"seed": 49,
"version": 250,
"versionNonce": 464518493,
"isDeleted": false,
"boundElements": [],
"updated": 1787737593386,
"link": null,
"locked": false,
"text": "Connection Refused / Timeout",
"fontSize": 16,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "Connection Refused / Timeout",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "XqGmuRUTkWEQE1wRHUtth",
"type": "rectangle",
"x": 151.6363525390625,
"y": 437.1818126331676,
"width": 320,
"height": 50,
"angle": 0,
"strokeColor": "#f59e0b",
"backgroundColor": "#fffbe6",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aP",
"roundness": {
"type": 3
},
"seed": 51,
"version": 73,
"versionNonce": 1882991634,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "YhVyNB0J8dVk2lo5umnX7"
}
],
"updated": 1787737484790,
"link": null,
"locked": false
},
{
"id": "YhVyNB0J8dVk2lo5umnX7",
"type": "text",
"x": 161.6363525390625,
"y": 454.6818126331676,
"width": 300,
"height": 15,
"angle": 0,
"strokeColor": "#f59e0b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aQ",
"roundness": null,
"seed": 53,
"version": 73,
"versionNonce": 868276690,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484790,
"link": null,
"locked": false,
"text": "Fail Count = 1 (Unhealthy threshold = 2)",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "XqGmuRUTkWEQE1wRHUtth",
"originalText": "Fail Count = 1 (Unhealthy threshold = 2)",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "B6JEevVt8EKi4OyHGX1N2",
"type": "arrow",
"x": 149.54547674005676,
"y": 519.5454684170809,
"width": 318,
"height": 0,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aR",
"roundness": null,
"seed": 55,
"version": 17,
"versionNonce": 324127950,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484790,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
318,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "T7-pYzl0wW3V4G-W6Ew8T",
"type": "text",
"x": 253.51642600936128,
"y": 502.2324129355075,
"width": 155.3118438720703,
"height": 20,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aS",
"roundness": null,
"seed": 57,
"version": 170,
"versionNonce": 694655709,
"isDeleted": false,
"boundElements": [],
"updated": 1787737589870,
"link": null,
"locked": false,
"text": "GET /health HTTP/1.1",
"fontSize": 16,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "GET /health HTTP/1.1",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "W8lM2Ryzob9oR3-DCr3BO",
"type": "arrow",
"x": 469.7272616299716,
"y": 551.6363525390625,
"width": 318,
"height": 0,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aT",
"roundness": null,
"seed": 59,
"version": 14,
"versionNonce": 376476114,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484790,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
-318,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "ui99c-tXLJ4Gh3DNLm2YG",
"type": "text",
"x": 310.96286796801024,
"y": 584.2120823715671,
"width": 190.8958282470703,
"height": 20,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aU",
"roundness": null,
"seed": 61,
"version": 150,
"versionNonce": 730394013,
"isDeleted": false,
"boundElements": [],
"updated": 1787737592003,
"link": null,
"locked": false,
"text": "503 Service Unavailable",
"fontSize": 16,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "503 Service Unavailable",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "bDxkl_-yhG7MJgJ1H_vB-",
"type": "rectangle",
"x": 150.90909090909088,
"y": 599.6363691850142,
"width": 320,
"height": 50,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "#fef2f2",
"fillStyle": "solid",
"strokeWidth": 1.5,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aV",
"roundness": {
"type": 3
},
"seed": 63,
"version": 56,
"versionNonce": 2080077646,
"isDeleted": false,
"boundElements": [
{
"type": "text",
"id": "4PO-7-dA6SXEZoSxqmbp5"
},
{
"type": "text",
"id": "YVtBObwBIDgAu7bjHx7GQ"
}
],
"updated": 1787737484790,
"link": null,
"locked": false
},
{
"id": "4PO-7-dA6SXEZoSxqmbp5",
"type": "text",
"x": 160.90909090909088,
"y": 617.1363691850142,
"width": 300,
"height": 15,
"angle": 0,
"strokeColor": "#dc2626",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aW",
"roundness": null,
"seed": 65,
"version": 56,
"versionNonce": 1282104718,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484790,
"link": null,
"locked": false,
"text": "Threshold Reached! Mark S1 DOWN",
"fontSize": 12,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "bDxkl_-yhG7MJgJ1H_vB-",
"originalText": "Threshold Reached! Mark S1 DOWN",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "luf134qbN_NnxGpuuGON3",
"type": "arrow",
"x": 145.90911310369324,
"y": 665.7272616299716,
"width": 638,
"height": 0,
"angle": 0,
"strokeColor": "#64748b",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aX",
"roundness": null,
"seed": 67,
"version": 31,
"versionNonce": 1358788562,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484791,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
638,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "YVtBObwBIDgAu7bjHx7GQ",
"type": "text",
"x": 160.90909090909088,
"y": 617.7613691850142,
"width": 300,
"height": 13.75,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aY",
"roundness": null,
"seed": 69,
"version": 2,
"versionNonce": 1772118766,
"isDeleted": false,
"boundElements": [],
"updated": 1787737484791,
"link": null,
"locked": false,
"text": "Route ALL incoming traffic to Server B",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "bDxkl_-yhG7MJgJ1H_vB-",
"originalText": "Route ALL incoming traffic to Server B",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "LRSqG_yIECe2zRDQd5UtZ",
"type": "arrow",
"x": 789,
"y": 713.1818181818182,
"width": 638,
"height": 0,
"angle": 0,
"strokeColor": "#2f9e44",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "dashed",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aZ",
"roundness": null,
"seed": 71,
"version": 62,
"versionNonce": 649943901,
"isDeleted": false,
"boundElements": [],
"updated": 1787737533568,
"link": null,
"locked": false,
"points": [
[
0,
0
],
[
-638,
0
]
],
"lastCommittedPoint": null,
"startBinding": null,
"endBinding": null,
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": false
},
{
"id": "7molN6H50uURUatr9nbyv",
"type": "text",
"x": 344.8573161423808,
"y": 687.3409201882102,
"width": 143.26382446289062,
"height": 13.75,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "aa",
"roundness": null,
"seed": 73,
"version": 157,
"versionNonce": 2112631677,
"isDeleted": false,
"boundElements": [],
"updated": 1787737580772,
"link": null,
"locked": false,
"text": "200 OK Response to Client",
"fontSize": 11,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "200 OK Response to Client",
"autoResize": true,
"lineHeight": 1.25
},
{
"id": "T5W_34XDcuI6CJOMWVukW",
"type": "text",
"x": 20.848493479719195,
"y": 181.3232190681225,
"width": 840.7273171164773,
"height": 20,
"angle": 0,
"strokeColor": "#475569",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 1,
"strokeStyle": "solid",
"roughness": 0,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "ah",
"roundness": null,
"seed": 1539452413,
"version": 256,
"versionNonce": 744828691,
"isDeleted": false,
"boundElements": [],
"updated": 1787737680736,
"link": null,
"locked": false,
"text": "GET /health HTTP/1.1",
"fontSize": 16,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": "i3LCy9dki4EtvL0lwz877",
"originalText": "GET /health HTTP/1.1",
"autoResize": true,
"lineHeight": 1.25
}
]Active Health Checks
The load balancer proactively pings endpoints (e.g. GET /health) every N seconds. Requires backend HTTP 200 OK response within a timeout period.
Passive Health Checks
Monitors real user traffic. If a backend node generates 500 Internal Server Errors or connection timeouts on real client requests, it is marked down.
7. Sticky Sessions (Session Affinity)
Sticky Sessions (or Session Affinity) ensure that all subsequent requests from a specific client browser are directed to the same physical backend server throughout the session.
How Cookie-Based Stickiness Works
On the initial request, the Layer 7 load balancer injects a unique HTTP cookie (e.g., SERVERID=node_A). On subsequent requests, the browser sends the cookie back, telling the load balancer to route directly to node_A.
Architectural Best Practice: Statelessness
Sticky sessions create uneven traffic distribution and prevent smooth failover if the sticky server crashes. Modern microservices store session state in a centralized Redis cache instead of local server RAM!
Load Balancing Knowledge Verification
1. What is the primary operational distinction between Layer 4 and Layer 7 Load Balancing?
2. Why is Consistent Hashing superior to standard Hash (Key % N) modulo routing in distributed server pools?
3. Which Load Balancing algorithm is best suited when backend servers have different hardware capacities (e.g., 64GB RAM vs 16GB RAM)?
4. What mechanism does Global Server Load Balancing (GSLB) primarily rely on to route users to the geographically nearest data center?
5. What is a major trade-off when using Sticky Sessions (Session Affinity) via load balancer cookies in stateful applications?