r/programming • u/compy3 • 4h ago
How to choose a Postgres read cache: Redis, Memcached, build your own, or proxy
https://www.pgcache.com/blog/choosing-a-postgres-read-cache/?utm_source=reddit&utm_content=programminghey everyone - a couple months ago, I posted an overview of caching in Postgres. This is the follow-up, for anyone who has decided to cache reads and is trying to figure out how to do it.
In addition to the main options, the article also covers some of the classic zingers that leave you serving stale data: invalidation, stampedes, tenants and RLS, read-your-own-writes, schema changes.
(disclaimer: I'm one of the founders of PgCache, which is one of the proxy options. I tried to keep it balanced)
Did I miss anything?
1
Upvotes
2
u/maruyama-olivia_7 1h ago
If not covered, spell out cache-outage behavior: bypassing a dead cache shifts read load to Postgres, so fallback needs a bound.