Loading…
While this loads — worth knowing
Redis has data structures — sorted sets, counters, pub/sub. Memcached has plain keys and nothing else.
Loading…
While this loads — worth knowing
Redis has data structures — sorted sets, counters, pub/sub. Memcached has plain keys and nothing else.
Instagram · scale journey
Stage 1 of 6
Instagram's signature move
Instagram's scaling turns on one hard problem: splitting its data across many databases so writes stop stacking on a single machine. That only works if every row's id is unique across every shard — so Instagram baked a timestamp, a shard number and a per-shard sequence into each id, unique everywhere and still sortable by time. Photos, meanwhile, never touch the app servers at all: they are served from object storage at the edge, near the user.
Comfortable here. Drag the traffic up and watch what gives way first.
Now try building one of these architectures from a blank canvas — you're scored on the services you place and how you wire them.