lathe

Redis beside Postgres

The cache and the queue live next to the database.

A small product needs a database, a cache and something to pass messages, and usually ends up with three providers, three bills and three ways to be metered. On Lathe, Redis 8 runs beside PostgreSQL 17 on the same dedicated machine, on a memory budget you set, for the same plan price.

How they share the box.

One price
Switch Redis on and the bill does not change. The plan is priced by the machine, not by what runs on it.
A memory budget you set
Each engine gets a slice of the plan's RAM. Move the slider and Redis restarts with the new limit in about a minute; Postgres keeps the rest.
TLS and a password
Redis listens over TLS only, with a password you can rotate from the portal. The plain-text port is closed.
Cache or queue
Choose the eviction policy: refuse writes when full, for a queue or a store, or evict least-recently-used keys, for a cache. Redis 8's JSON, search and time series are built in.
Same machine, no network hop
The cache answers from memory on the box the database is on. There is no per-request price and no cross-provider latency.
Persistent
Append-only persistence is on, so a restart keeps your keys, and the daily image of the whole machine includes Redis.

Good for

  • Caching query results and rendered pages next to the data they came from
  • Sessions and rate limits
  • Background jobs and queues
  • Pub/sub and live counters

Questions

Does adding Redis cost extra?

No. Every engine is in the plan price. What changes is how the machine's memory is divided, and you decide that.

Can I run Redis without Postgres?

Yes. An instance runs any mix of Postgres 17, Redis 8, CouchDB 3 and NATS 2; Redis alone gets the whole memory budget.

Is it the real Redis?

Redis 8, the upstream build, unmodified, under its own licence. Any standard client over TLS.

How is Redis backed up?

It is on the machine's daily image, 7 kept, along with everything else, and its append-only log survives a restart.

Read next: Flat-price managed database, No egress fees, Never paused, never metered, Self-hosted VPS or managed, pgvector on your own machine, Supabase alternative, Neon alternative, Moving a Postgres database, A database for side projects, One machine, every engine; all of them on the blog. Every number on this page comes from the pricing page's facts.

Database, cache and queue on one machine, from $15 a month.

Live about 90 seconds after checkout. Cancel any time; Mini starts with a 3-day free trial.

Create an instance

Are you sure?

Type to confirm