A key-value store has one shape. If every read is "look up this exact ID," that is the block.
It is a coat check. You hand over the ticket and you get back what you stored. No joins, no range queries, no relationships.
Sessions work this way: who is logged in on this device, check the key. Rate limits, feature flags and idempotency keys work this way too. Same block, same question, different thing behind the ticket.
The moment you need to find things by anything other than the ID, this block is the wrong one.
The question is not which database. It is whether the read is a ticket or a search.
Kay
P.S. Free, if you want the map: the storage article sorts databases by what they are good at and what they give up. https://systemthinkinglab.ai/learn/building-blocks/storage-extremes/
This note goes out by email Sunday to Friday. Read more at systemthinkinglab.ai.
If you want to see how products like Instagram and Netflix are designed, take your free 5-day course: the 7 building blocks.
Top comments (0)