Resources / Guides
Key-value, tables or blobs? Choosing storage for a small backend
When to use a key-value store, structured tables or blob storage for APIs, webhooks and jobs — with simple rules of thumb.
Small backends rarely need a full database on day one. Three simple kinds of storage cover most needs — the trick is picking the right one.
Key-value
Store a value under a key and read it back instantly: session:abc, visits, feature-flags. Perfect for counters, caches, rate-limit state and lookups by a known id. Group keys with a prefix (todo:42) so they're easy to browse.
Tables
Rows with fields, listed and filtered: orders, signups, tickets. Use tables when you need to list records, filter by a field ("all open tickets") or edit rows.
Blobs
Files: uploads, images, PDFs, generated reports, CSV exports. Anything binary or larger than a typical record. Organize them in containers (reports/2026-11.pdf).
Rules of thumb
- Known key, small value → key-value
- Many records you list or filter → table
- Files → blobs
- Relational queries, joins or millions of rows → a real database
In Wisp
Every project has all three built in — kv, table() and file in the SDK, in JavaScript and Python — and the Storage section lets you browse key-value collections, table rows and blob containers. One storage allowance covers all three.
Build it with Wisp — describe an API, get it live.