A DDIA-based framework for choosing the right database: read/write patterns first
cneuralnetwork · x · 2026-11-26
Developer Hitesh Patil published a practical database-selection framework drawn from Martin Kleppmann's Designing Data-Intensive Applications, aiming to avoid over-engineering on day one.
- Start with read/write patterns: he contrasts Twitter/X's home timeline approaches — a read-heavy design joining a global tweets table at query time (cheap writes, expensive reads) vs a fan-out design pushing posts into pre-computed follower caches (cheap reads, expensive for accounts with millions of followers). Write down your main queries, write patterns and read-to-write ratio first.
- Data model: default to relational DBs for many-to-many relationships or evolving query patterns; document stores (MongoDB, DynamoDB) for self-contained trees fetched by ID like user profiles or catalog items; graph databases for multi-hop traversals.
- His reminder: relational databases still serve billions of users daily, no matter how shiny new frameworks look.
More from Infra
- Baseten ships least-privilege access for inference: short-lived tokens, egress limits — baseten · 2026-11-26
- Polymarket launches GPU compute markets, pricing H100/B200/B300 rentals out to 2028 — marcofyi · 2026-11-26
- Robot startup Abstract raises $2.5M to run robot brains in the cloud with 30ms latency — Scobleizer · 2026-11-26
- llama.cpp now runs nvfp4 quants on Apple Silicon, CUDA, AMD and more — pcuenq · 2026-11-26
- Tool-call failure rates swing wildly: DeepSeek V4.1 Flash hits 15% on one provider — remilouf · 2026-11-26
- Backdoor found on VPS machines via CVE-2026-99999 exploitation — check port 38859 — rez0__ · 2026-11-26