Choosing a datastore
For engineers
Picking relational, document, key-value, search, vector, columnar or embedded databases by access pattern and consistency needs
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A team picks a database before any design. What should they write down first?
Check yourself · 2 of 5
A product page and its 5 fixed variants are always read together and rarely change. Which design fits a document store best?
Check yourself · 3 of 5
Which workload suits SQLite best?
Check yourself · 4 of 5
A user updates their email and reloads the page, which reads from an asynchronous replica. What may they see?
Check yourself · 5 of 5
An assistant says a database setting limits something to a specific number. What should you do first?
Topics
- Starting a database choice from access patterns4 min read · Listing reads, writes, consistency and scale before naming a product, and why one PostgreSQL often covers more than expected
- When document and key-value stores fit4 min read · MongoDB-style documents and Redis keys, embedding versus referencing, expiry, and the joins and transactions you give up
- Embedded and serverless database options4 min read · SQLite, libSQL and DuckDB inside the app, and serverless PostgreSQL, for prototypes, edge apps and agent sandboxes
- Replication lag and read consistency5 min read · Leader-follower replication, replica lag, read-your-writes problems, and when eventual consistency is acceptable
- Judging AI database stack recommendations5 min read · Checking an assistant's stack advice for invented features, outdated limits, licence changes and extra databases the app does not need
Start here
- Designing Data-Intensive Applications (opens in a new tab)BookPaid
The standard book on storage engines, replication and consistency trade-offs behind every database choice.
- SQLite: Appropriate uses (opens in a new tab)DocsFree
The SQLite authors list where an embedded database fits and where a client/server one is the better tool.
- MongoDB: Data modeling (opens in a new tab)DocsFree
Embedding versus referencing, and the schema design patterns for document stores.
Helps to know first
110 questions · last verified 2026-12