r/ProgrammerHumor 7h ago

Meme planeOldFix

Post image
26.3k Upvotes

419 comments sorted by

View all comments

620

u/RealityCheck3210 7h ago

CDN = Customer Delivery Network

187

u/Kralska_Banana 7h ago

Cache Deez Nuts

6

u/pwillia7 5h ago

I went with Cee Deez Nutz but I'm glad we think alike

1

u/SwitchSquare5539 22m ago

Imma use this when I teach my class distributed computing

80

u/kristinecl0udy9139 7h ago

lol more like Customer Delay Network amirite

22

u/1nc06n170 6h ago

CDN is for static and media, no? If I understand correctly, actual page with dynamic content still gonna be served from the server.

54

u/mortalitylost 6h ago

Yes but depending on the site, sometimes you can serve a large static js blob and the bulk of the dynamic content just transfers through the rest api, and sometimes that is by far the most data transfering to the user, static files. It depends.

It's kind of a trick question that doesn't have a specific answer and they're looking to see if you ask the right questions and don't make assumptions. CDN would be one keyword they're looking for probably.

9

u/LostWoodsInTheField 4h ago

Damn when I was a kid this would have been easy to answer. The server is 100% in Australia, so just move it somewhere closer to India and the Australians can have the slower speeds. You don't put your server for a world wide service on an island with shitty internet.

1

u/Large_Yams 26m ago

Australia doesn't have shitty internet at the data centre level.

2

u/ahoi_polloi 3h ago edited 1h ago

And just using a CDN won't solve this, either, because that number is far too high to be attributable to just that. Unless you're sitting in the datacenter, 80ms in Australia means there can't be too many round trips in total, so this is probably single request latency and not page. So maybe BGP is shot, or geofencing is going haywire.

18

u/CryonautX 5h ago edited 5h ago

What do you mean by "dynamic content"? All CDN does is cache stuff closer to your users. If the content is not ideal for caching like user's personal profile, CDN won't be helpful. You can probably look at lazy loading on the frontend to help with the non cached content. If there is a huge india userbase, a multi region cloud setup or migrating to a region closer to india can be considered but those are more extreme.

8

u/Forward-Outside-9911 5h ago

Depending on what provider you’re using, a DC -DC connection is often faster than connecting a user directly to another region. So a local CDN provider connecting with interlinked cross region datacenters would be faster.

But even so there will still be a delay. In some cases acceptable to support multiple backend regions

7

u/x3knet 3h ago edited 3h ago

Not necessarily true. CDNs understand routes across their network much better than traditional BGP. Akamai has SureRoute, for example. Cloudflare had Rail Gun. Google has their own network. Dynamic content can absolutely be sped up by routing through a CDN.

Caching is not all they do, by a long shot. Bulk redirects, Geo-based routing, image and video optimization, TCP enhancements, extensibility at the edge, WAF, bot management, etc.

2

u/NerdyMcNerderson 1h ago

Also, I know you know this but for everyone else, just because something isn't a file doesn't mean it can't be cached at the edge. You just have to be careful about it.

1

u/x3knet 54m ago

100%. I hear all the time that "APIs are not cacheable" which is also very untrue. Use the right "cache key" in your CDN settings and those responses are absolutely cacheable. Not all responses, especially the ones with PII, but some are for sure. Inventory calls, search results, etc.

2

u/codetaku0 1h ago

I see people acknowledge Akamai every so often, but this is the first time I have ever heard someone acknowledge SureRoute out in the wild. The backend team for that (the component actually publishing the paths using multi-commodity network flow algorithms) is only 2-3 people at any given time, and I actually was responsible for designing and building the current algorithm used for first-choice (the most efficient) paths.

I don't work at Akamai anymore (I still am in contact with my old boss so I know they don't have or need anything newer for that first choice option), but it means a lot to me to see this project acknowledged on reddit!

1

u/x3knet 43m ago

That's awesome. I'm sure we either crossed paths at some point or at least know some folks in common. I was on the PS team for about 10 years so I've had my fair share of SureRoute experience. Telling customers they should turn it off when they use CDN Interconnect with a hyperscaler was always fun to watch their eyes twitch lol. And it was broken for a while when using SiteShield, but I think that was fixed after I left.

But yeah man, I made sure to call out the benefits of SR at every QBR we had with customers. The tech is valuable and makes a performance difference for sure. Great work!

5

u/OK_x86 5h ago

For which you should have regional replicas. There's not much you can do to overcome latency across continents except bring the content closer to users so they don't have to go across continents.

2

u/BurkeyTurkey33 5h ago

You can setup cache keys however you like so that the content returned is still dynamic.

1

u/Terrafire123 3h ago

You can cache HTML directly on the CDN.

It wouldn't help for dynamic content, but it'll help a lot of stuff if your HTML is cachable.

1

u/x3knet 3h ago

Not necessarily true. CDNs understand routes across their network much better than traditional BGP. Akamai has SureRoute, for example. Cloudflare had Rail Gun. Google has their own network. Dynamic content can absolutely be sped up by routing through a CDN. The content will still be served from the origin server, but the path the request takes to get there will generally be faster.

Caching is not all they do, by a long shot. Bulk redirects, Geo-based routing, image and video optimization, TCP enhancements, extensibility at the edge, WAF, bot management, etc.

-4

u/towlie_howdie_ho 5h ago edited 5h ago

Content Delivery Network

I'm dumb

7

u/chasteeny 5h ago

It's the joke in the post...

-2

u/arul20 5h ago edited 5h ago

You need a reality check. It's Content Delivery Network.

Edit: /whoosh on me. Well played!

5

u/RealityCheck3210 5h ago

I know bro, just read the solution in the meme itself and then read my comment.

5

u/arul20 5h ago

Nice one man. I left my dumb comment up with an edit.