Skip to content

You Just Need Postgres

Stop adding databases before you prove Postgres cannot do it.

PostgresNext.jsMDX

Why do I <3 that: Hundreds of stars, people sharing it as an argument through the internet... I just proved my point.

What it does

You Just Need Postgres is a site and collection of articles arguing that Postgres can replace Redis, Elasticsearch, MongoDB, and RabbitMQ for most applications.

How to use

Browse the patterns or read a specific use-case. Each article shows the Postgres feature you can use instead of adding another tool, then apply it directly to your own Postgres instance.

Common replacements:

  • Job queue with FOR UPDATE SKIP LOCKED.
  • Full-text search with tsvector and tsquery.
  • Realtime events with LISTEN / NOTIFY.
  • Cache with unlogged tables and aggressive TTLs.

Want more of that? See details here

https://youjustneedpostgres.com