What is Readyset?
Readyset is a caching proxy for PostgreSQL and MySQL. It grew out of Noria, a research database Jon Gjengset built during his PhD at MIT, and the company was co-founded by Jon Gjengset and Alana Marzoev. Readyset’s source code is published under the Business Source License 1.1, which converts to Apache 2.0 after four years.
The app connects to Readyset instead of the database. Queries Readyset hasn’t cached go to the database. Readyset has two kinds of cache:
- Deep caches come from the Noria research. You create one with
CREATE DEEP CACHE. Readyset first copies the tables it replicates, then updates each cached result incrementally as changes arrive through the database’s replication stream. - Shallow caches keep query results in memory and refresh them on a timer, 10 seconds by default. They’re the default kind, and Readyset’s automatic caching mode creates them.
What is PgCache?
PgCache is a transparent, wire-compatible caching proxy and smart read replica for PostgreSQL. It sits between your application and your database without requiring application code changes, and keeps its cache current through Postgres logical replication. Writes, and reads PgCache can't serve from cache, go to your database.
PgCache works with PostgreSQL 16, 17 and 18, including Amazon RDS and Aurora. It's source-available under the Elastic License 2.0.