3 ms·
Question: How do cdns serve/shard data ? Meaning, in a pop, there are say 100 nodes, and all of them cache some data, say by hashing the path /ayb.jpg. Does th
by ddorian43 11y ago
Question: How do cdns serve/shard data ? Meaning, in a pop, there are say 100 nodes, and all of them cache some data, say by hashing the path /ayb.jpg.
Does the loadbalancer (say, haproxy) know which node should-have the file cached ? Or there is random loadbalancing and each node get's the data from the other nodes (using the same hash)? Just like openstack-swift (there are proxy that serve http-requests, and data nodes that have files).
- cortesoft 11y agoProbably each CDN does it differently... but the one I know about does the second.... so it goes LB, first webserver on random node, and that first webserver knows where to grab the content from the second webserver on the proper node that has the content.
- tsmith84 11y agoMost CDN have a pile of patents that show how they do their cache hierarchy. -Ex CDN worker