From 7f1fe010a2effaefac2c3b12395c317dd133a329 Mon Sep 17 00:00:00 2001 From: Buffden Date: Tue, 7 Apr 2026 19:51:57 -0500 Subject: [PATCH] =?UTF-8?q?The=20DNS=20resolution=20path=20and=20the=20act?= =?UTF-8?q?ual=20TCP=20connection=20are=20two=20different=20things.=20Afte?= =?UTF-8?q?r=20DNS=20resolves=20tinyurl.buffden.com:=20=20=20-=20If=20the?= =?UTF-8?q?=20record=20is=20orange-cloud=20(proxied)=20in=20Cloudflare=20?= =?UTF-8?q?=E2=86=92=20DNS=20returns=20Cloudflare's=20anycast=20IP,=20so?= =?UTF-8?q?=20the=20user's=20browser=20connects=20to=20Cloudflare's=20=20?= =?UTF-8?q?=20edge,=20not=20CloudFront.=20Cloudflare=20then=20forwards=20u?= =?UTF-8?q?pstream=20to=20CloudFront.=20=20=20-=20If=20the=20record=20is?= =?UTF-8?q?=20grey-cloud=20(DNS-only)=20=E2=86=92=20DNS=20returns=20CloudF?= =?UTF-8?q?ront's=20IP=20=E2=86=92=20user=20connects=20to=20CloudFront=20d?= =?UTF-8?q?irectly.=20The=20arrow=20would=20be=20correct=20but=20then=20?= =?UTF-8?q?=20=20=20Cloudflare's=20WAF/DDoS=20protection=20doesn't=20apply?= =?UTF-8?q?=20to=20SPA=20traffic.=20=20=20Since=20the=20whole=20point=20of?= =?UTF-8?q?=20the=20setup=20is=20Cloudflare=20absorbing=20traffic=20before?= =?UTF-8?q?=20it=20reaches=20AWS,=20tinyurl.buffden.com=20should=20be=20or?= =?UTF-8?q?ange-cloud=20proxied=20=E2=80=94=20=20=20meaning=20the=20correc?= =?UTF-8?q?t=20flow=20is:=20=20=20User=20=E2=86=92=20Cloudflare=20edge=20?= =?UTF-8?q?=E2=86=92=20CloudFront=20=E2=86=92=20S3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v1/url-shortener-v1-hld.excalidraw | 147 ++---------------- .../v2/url-shortener-v2-hld.excalidraw | 137 +--------------- docs/lld/c4-level2-container.excalidraw | 131 +--------------- 3 files changed, 28 insertions(+), 387 deletions(-) diff --git a/docs/architecture/00-baseline/v1/url-shortener-v1-hld.excalidraw b/docs/architecture/00-baseline/v1/url-shortener-v1-hld.excalidraw index 15afebf..b430916 100644 --- a/docs/architecture/00-baseline/v1/url-shortener-v1-hld.excalidraw +++ b/docs/architecture/00-baseline/v1/url-shortener-v1-hld.excalidraw @@ -1957,18 +1957,14 @@ "type": 2 }, "seed": 2038078518, - "version": 1007, - "versionNonce": 2022946296, + "version": 1008, + "versionNonce": 1089093748, "isDeleted": false, "boundElements": [ { "type": "text", "id": "b8arALNbnOCUHh8UNYA9m" }, - { - "id": "ldgUlWDQ57ZKEqkX3XhNg", - "type": "arrow" - }, { "id": "BjnKQQBDyZ7gGtc03aYzy", "type": "arrow" @@ -1982,7 +1978,7 @@ "type": "arrow" } ], - "updated": 1773443299322, + "updated": 1775609326266, "link": null, "locked": false }, @@ -2386,7 +2382,7 @@ "version": 52, "versionNonce": 643180328, "isDeleted": false, - "boundElements": null, + "boundElements": [], "updated": 1774769019814, "link": null, "locked": false, @@ -2497,7 +2493,7 @@ "version": 76, "versionNonce": 13716312, "isDeleted": false, - "boundElements": null, + "boundElements": [], "updated": 1774769149311, "link": null, "locked": false, @@ -2511,117 +2507,6 @@ "autoResize": true, "lineHeight": 1.25 }, - { - "id": "ldgUlWDQ57ZKEqkX3XhNg", - "type": "arrow", - "index": "ah", - "frameId": null, - "x": -106.0782067231496, - "y": 409.891917582048, - "width": 0.7938767479470243, - "height": 150.98022093951272, - "angle": 0, - "strokeColor": "#2f9e44", - "backgroundColor": "transparent", - "fillStyle": "hachure", - "strokeWidth": 2, - "strokeStyle": "solid", - "roughness": 1, - "opacity": 100, - "groupIds": [], - "roundness": null, - "seed": 848463414, - "version": 4195, - "versionNonce": 48182360, - "isDeleted": false, - "boundElements": [ - { - "type": "text", - "id": "nNdC6QGgJMHwnVLRNP7rN" - } - ], - "updated": 1774769149315, - "link": null, - "locked": false, - "points": [ - [ - 0, - 0 - ], - [ - -0.7938767479470243, - -150.98022093951272 - ] - ], - "lastCommittedPoint": null, - "startBinding": { - "elementId": "0MuCDv3LjWbbazdXTSmtA", - "fixedPoint": [ - 0.49888888888888866, - -0.08333333333333333 - ], - "focus": 0, - "gap": 0 - }, - "endBinding": { - "elementId": "nR-2GIajiYPMjhAoZLsck", - "fixedPoint": [ - 0.6792553326139616, - 1.0702649469239056 - ], - "focus": 0, - "gap": 0 - }, - "startArrowhead": null, - "endArrowhead": "arrow", - "label": { - "containerId": "arr-user-dns", - "text": "Resolve\ndomain", - "fontSize": 11, - "fontFamily": 5 - }, - "elbowed": true, - "fixedSegments": null, - "startIsSpecial": null, - "endIsSpecial": null - }, - { - "id": "nNdC6QGgJMHwnVLRNP7rN", - "type": "text", - "x": -204.465384560227, - "y": 307.8412133762247, - "width": 90.71992492675781, - "height": 50, - "angle": 0, - "strokeColor": "#2f9e44", - "backgroundColor": "transparent", - "fillStyle": "solid", - "strokeWidth": 2, - "strokeStyle": "solid", - "roughness": 1, - "opacity": 100, - "groupIds": [], - "frameId": null, - "index": "ah4", - "roundness": null, - "seed": 1749224072, - "version": 20, - "versionNonce": 1006478216, - "isDeleted": false, - "boundElements": [], - "updated": 1773443337814, - "link": null, - "locked": false, - "text": "HTTP \nRequests", - "fontSize": 20, - "fontFamily": 5, - "textAlign": "center", - "verticalAlign": "middle", - "containerId": "ldgUlWDQ57ZKEqkX3XhNg", - "originalText": "HTTP \nRequests", - "autoResize": true, - "lineHeight": 1.25 - }, { "id": "2ucAl8lxXg5KRjTLbWDaN", "type": "arrow", @@ -2955,8 +2840,8 @@ "type": 3 }, "seed": 1674034934, - "version": 1110, - "versionNonce": 2013485864, + "version": 1111, + "versionNonce": 405934580, "isDeleted": false, "boundElements": [ { @@ -2975,10 +2860,6 @@ "id": "2ucAl8lxXg5KRjTLbWDaN", "type": "arrow" }, - { - "id": "ldgUlWDQ57ZKEqkX3XhNg", - "type": "arrow" - }, { "id": "Efn73IUgAM4JpqBCJtgSW", "type": "arrow" @@ -2988,7 +2869,7 @@ "type": "arrow" } ], - "updated": 1774769149311, + "updated": 1775609326266, "link": null, "locked": false }, @@ -3260,10 +3141,10 @@ "type": "text", "index": "av", "frameId": null, - "x": -232.8867066371597, + "x": -232.82645730854642, "y": -377.3786549781124, - "width": 152.26873779296875, - "height": 35.919328098816514, + "width": 152.1482391357422, + "height": 35.919328098816536, "angle": 0, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", @@ -3275,11 +3156,11 @@ "groupIds": [], "roundness": null, "seed": 1689498101, - "version": 860, - "versionNonce": 146015016, + "version": 861, + "versionNonce": 2027353804, "isDeleted": false, "boundElements": [], - "updated": 1774768897542, + "updated": 1775609294605, "link": null, "locked": false, "text": "DNS Cloudflare\ngo.buffden.com → ALB\ntinyurl.buffden.com → CloudFront", diff --git a/docs/architecture/00-baseline/v2/url-shortener-v2-hld.excalidraw b/docs/architecture/00-baseline/v2/url-shortener-v2-hld.excalidraw index 4c75dea..38ba576 100644 --- a/docs/architecture/00-baseline/v2/url-shortener-v2-hld.excalidraw +++ b/docs/architecture/00-baseline/v2/url-shortener-v2-hld.excalidraw @@ -419,8 +419,8 @@ "type": 2 }, "seed": 1002, - "version": 650, - "versionNonce": 1668262576, + "version": 651, + "versionNonce": 1036957048, "isDeleted": false, "boundElements": [ { @@ -435,16 +435,12 @@ "id": "kDcfGxQ6BPb0QUdK0UiG4", "type": "arrow" }, - { - "id": "kFwJpadbX0L51bDeDogBi", - "type": "arrow" - }, { "id": "J1OCywa5y8qTtOz_FOLZi", "type": "arrow" } ], - "updated": 1773443576688, + "updated": 1775609367496, "link": null, "locked": false }, @@ -4165,7 +4161,7 @@ "version": 163, "versionNonce": 1267603212, "isDeleted": false, - "boundElements": null, + "boundElements": [], "updated": 1774769238897, "link": null, "locked": false, @@ -4284,7 +4280,7 @@ "version": 185, "versionNonce": 2108740404, "isDeleted": false, - "boundElements": null, + "boundElements": [], "updated": 1774769236147, "link": null, "locked": false, @@ -4675,8 +4671,8 @@ "type": 3 }, "seed": 73149211, - "version": 1845, - "versionNonce": 946060468, + "version": 1846, + "versionNonce": 1984513656, "isDeleted": false, "boundElements": [ { @@ -4699,16 +4695,12 @@ "id": "OdugGG_69b0BIaWzDnsV7", "type": "arrow" }, - { - "id": "kFwJpadbX0L51bDeDogBi", - "type": "arrow" - }, { "id": "9CVPfmrCU2Kc-942h7F80", "type": "arrow" } ], - "updated": 1774769215050, + "updated": 1775609367496, "link": null, "locked": false }, @@ -4825,119 +4817,6 @@ "autoResize": true, "lineHeight": 1.25 }, - { - "id": "kFwJpadbX0L51bDeDogBi", - "type": "arrow", - "x": -236.6033489643647, - "y": 337.98762360325486, - "width": 27.89812472464891, - "height": 133.58081816850887, - "angle": 0, - "strokeColor": "#2f9e44", - "backgroundColor": "transparent", - "fillStyle": "solid", - "strokeWidth": 2, - "strokeStyle": "solid", - "roughness": 1, - "opacity": 100, - "groupIds": [], - "frameId": null, - "index": "ap", - "roundness": null, - "seed": 528230480, - "version": 121, - "versionNonce": 1366051504, - "isDeleted": false, - "boundElements": [ - { - "type": "text", - "id": "DoFz5m1hzWGUlu2tggWLS" - } - ], - "updated": 1773443576692, - "link": null, - "locked": false, - "points": [ - [ - 0, - 0 - ], - [ - 0, - -66.40074447144286 - ], - [ - 27.89812472464891, - -66.40074447144286 - ], - [ - 27.89812472464891, - -133.58081816850887 - ] - ], - "lastCommittedPoint": null, - "startBinding": { - "elementId": "user", - "fixedPoint": [ - 0.49888888888888894, - -0.08333333333333333 - ], - "focus": 0, - "gap": 0 - }, - "endBinding": { - "elementId": "vdkbCqQ6uEzRXrdo6lbcy", - "focus": 0.17908797480406927, - "gap": 1.7253668548132168, - "fixedPoint": [ - 0.3144041731203486, - 1.0365174685306149 - ] - }, - "startArrowhead": null, - "endArrowhead": "arrow", - "elbowed": true, - "fixedSegments": null, - "startIsSpecial": null, - "endIsSpecial": null - }, - { - "id": "DoFz5m1hzWGUlu2tggWLS", - "type": "text", - "x": -254.71027109911057, - "y": 251.586879131812, - "width": 64.11196899414062, - "height": 40, - "angle": 0, - "strokeColor": "#2f9e44", - "backgroundColor": "transparent", - "fillStyle": "solid", - "strokeWidth": 2, - "strokeStyle": "solid", - "roughness": 1, - "opacity": 100, - "groupIds": [], - "frameId": null, - "index": "apV", - "roundness": null, - "seed": 2032961712, - "version": 7, - "versionNonce": 2116070480, - "isDeleted": false, - "boundElements": [], - "updated": 1773442729076, - "link": null, - "locked": false, - "text": "HTTPS \nrequest", - "fontSize": 16, - "fontFamily": 5, - "textAlign": "center", - "verticalAlign": "middle", - "containerId": "kFwJpadbX0L51bDeDogBi", - "originalText": "HTTPS \nrequest", - "autoResize": true, - "lineHeight": 1.25 - }, { "id": "AEiKmEbqKl3JqDE2wHyAx", "type": "text", diff --git a/docs/lld/c4-level2-container.excalidraw b/docs/lld/c4-level2-container.excalidraw index e806414..4b464c2 100644 --- a/docs/lld/c4-level2-container.excalidraw +++ b/docs/lld/c4-level2-container.excalidraw @@ -456,8 +456,8 @@ "type": 2 }, "seed": 458289626, - "version": 722, - "versionNonce": 2141215383, + "version": 723, + "versionNonce": 1026256348, "isDeleted": false, "boundElements": [ { @@ -475,13 +475,9 @@ { "id": "o9vNTQyb-BaJ56gW5iiYO", "type": "arrow" - }, - { - "id": "he9CFo5JVGSJqld7VEWdL", - "type": "arrow" } ], - "updated": 1774395820255, + "updated": 1775609382887, "link": null, "locked": false }, @@ -3858,117 +3854,6 @@ "link": null, "locked": false }, - { - "id": "he9CFo5JVGSJqld7VEWdL", - "type": "arrow", - "index": "b1p", - "frameId": null, - "x": 1894.5876308730863, - "y": 423.4115559172834, - "width": 0.5974622546825685, - "height": 132.560381291393, - "angle": 0, - "strokeColor": "#2f9e44", - "backgroundColor": "transparent", - "fillStyle": "hachure", - "strokeWidth": 2, - "strokeStyle": "solid", - "roughness": 0, - "opacity": 100, - "groupIds": [], - "roundness": null, - "seed": 516027226, - "version": 7030, - "versionNonce": 1590483863, - "isDeleted": false, - "boundElements": [ - { - "id": "ojREpVH5TAjbIB_qr3tMT", - "type": "text" - } - ], - "updated": 1774395828577, - "link": null, - "locked": false, - "points": [ - [ - 0, - 0 - ], - [ - 0.5974622546825685, - -132.560381291393 - ] - ], - "lastCommittedPoint": null, - "startBinding": { - "elementId": "oeICI_pW2ybP5oKCNA7E8", - "fixedPoint": [ - 0.49888888888888894, - -0.08333333333333333 - ], - "focus": 0, - "gap": 0 - }, - "endBinding": { - "elementId": "78ojM5qUwUrICBKqH7Noy", - "fixedPoint": [ - 0.1857337925188286, - 1.047407964864732 - ], - "focus": 0, - "gap": 0 - }, - "startArrowhead": null, - "endArrowhead": "arrow", - "label": { - "containerId": "arr-user-dns", - "text": "Resolve\ndomain", - "fontSize": 11, - "fontFamily": 5 - }, - "elbowed": true, - "fixedSegments": null, - "startIsSpecial": null, - "endIsSpecial": null - }, - { - "id": "ojREpVH5TAjbIB_qr3tMT", - "type": "text", - "x": 1828.9956814101956, - "y": 347.4922923433583, - "width": 131.18389892578125, - "height": 20, - "angle": 0, - "strokeColor": "#2f9e44", - "backgroundColor": "transparent", - "fillStyle": "solid", - "strokeWidth": 2, - "strokeStyle": "solid", - "roughness": 1, - "opacity": 100, - "groupIds": [], - "frameId": null, - "index": "b1q", - "roundness": null, - "seed": 1268676634, - "version": 157, - "versionNonce": 232837153, - "isDeleted": false, - "boundElements": [], - "updated": 1773443740760, - "link": null, - "locked": false, - "text": "HTTPS requests", - "fontSize": 16, - "fontFamily": 5, - "textAlign": "center", - "verticalAlign": "middle", - "containerId": "he9CFo5JVGSJqld7VEWdL", - "originalText": "HTTPS requests", - "autoResize": true, - "lineHeight": 1.25 - }, { "id": "71eW-l9yd3DH-cvS96QC_", "type": "arrow", @@ -4457,14 +4342,10 @@ "type": 3 }, "seed": 1779854042, - "version": 1927, - "versionNonce": 1472569719, + "version": 1928, + "versionNonce": 431575644, "isDeleted": false, "boundElements": [ - { - "id": "he9CFo5JVGSJqld7VEWdL", - "type": "arrow" - }, { "id": "uapavP1hYntxfD5Go8WU9", "type": "arrow" @@ -4482,7 +4363,7 @@ "type": "text" } ], - "updated": 1774395820255, + "updated": 1775609382887, "link": null, "locked": false },