# readysettech/readyset

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/readysettech-readyset).**

5,192 stars · 158 forks · Rust · other

## Links

- GitHub: https://github.com/readysettech/readyset
- Homepage: https://readyset.io
- awesome-repositories: https://awesome-repositories.com/repository/readysettech-readyset.md

## Topics

`backend` `cache` `caching` `caching-proxy` `databases` `mysql` `mysql-database` `postgres` `postgresql` `postgresql-database` `rust` `rust-lang` `sql` `streaming-data`

## Description

Readyset is a transparent caching proxy for PostgreSQL and MySQL that sits between an application and its database, intercepting SQL queries and serving cached results from memory. It automatically caches query results on first execution and keeps those caches consistent by consuming the database’s replication stream in real time, enabling faster repeated reads without application code changes. The proxy also supports caching advanced SQL functions such as window functions, bucket functions, and locale-aware collation sorting, and exposes an interface that allows AI agents to inspect proxied queries and dynamically create or drop caches.

What distinguishes Readyset is its real-time cache synchronization via change-data-capture, combined with high-availability support through global transaction identifiers (GTIDs) to maintain consistency during database failovers. Developers can embed SQL comment hints to control caching behavior on a per-query basis, and a CLI tool allows diagnosing SQL workload performance before production deployment. The proxy also features agent-oriented cache management, where AI agents can programmatically inspect workloads and adjust caching strategies.

Beyond its core identity, Readyset offers a range of operational capabilities: it can be deployed as a transparent proxy without modifying application code, installed as a binary or packaged as systemd services for x86-64 and ARM64, and integrated with existing connection poolers and cloud platforms. Monitoring features list all cached SQL queries and their status, while cache management is also available through custom SQL commands to create, show, or remove cached queries.

Installation options include a downloadable binary, deb and rpm packages for systemd service deployment, and setup that does not require changes to application code or ORM layers.

## Tags

### Data & Databases

- [Database Proxy Caches](https://awesome-repositories.com/f/data-databases/query-caching-strategies/database-proxy-caches.md) — Acts as a transparent caching proxy that intercepts SQL queries for PostgreSQL and MySQL databases.
- [Change Data Capture](https://awesome-repositories.com/f/data-databases/change-data-capture.md) — Consumes the database replication stream to keep cached results consistent in real time.
- [Query Result Caching](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/caching-performance/caching-strategies/query-result-caching.md) — Caches SQL query results in memory and automatically invalidates them on data changes.
- [In-Cache Query Execution](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/caching-performance/caching-strategies/query-result-caching/method-result-caches/analysis-result-caches/query-output-caches/in-cache-query-execution.md) — Automatically caches SQL query results on first execution and keeps them consistent by consuming the database replication stream in real time. ([source](https://readyset.io/docs/demo))
- [Database Traffic Interception](https://awesome-repositories.com/f/data-databases/database-traffic-interception.md) — Intercepts database protocol traffic transparently without requiring application code changes.
- [High Availability Cache Layers](https://awesome-repositories.com/f/data-databases/database-caching-middleware/high-availability-cache-layers.md) — Ensures cache consistency and high availability during database failover using global transaction identifiers. ([source](https://blog.readyset.io/))
- [Analytical Result Caches](https://awesome-repositories.com/f/data-databases/database-caching-middleware/sql-cache-storage/analytical-result-caches.md) — Caches advanced analytical functions such as window functions, bucket functions, and locale-aware collation.
- [Selective Query Caching Markers](https://awesome-repositories.com/f/data-databases/query-caching-strategies/database-proxy-caches/selective-query-caching-markers.md) — Allows marking specific SQL queries for proxy-caching via embedded SQL comment hints, enabling selective caching. ([source](https://readyset.io/docs/get-started))
- [SQL-Based Cache Management Commands](https://awesome-repositories.com/f/data-databases/query-caching-strategies/database-proxy-caches/sql-based-cache-management-commands.md) — Enables cache management via custom SQL commands to create, show, or remove cached queries directly. ([source](https://readyset.io/docs/demo))
- [Advanced SQL Function Caching Support](https://awesome-repositories.com/f/data-databases/sql-aggregate-functions/custom-sql-functions/advanced-sql-function-caching-support.md) — Supports caching window functions, bucket functions, and locale-aware collation sorting for complex analytical queries. ([source](https://blog.readyset.io/))
- [SQL Performance Analysis](https://awesome-repositories.com/f/data-databases/sql-performance-analysis.md) — Provides a CLI to analyze and diagnose SQL workload performance before production deployment.

### Artificial Intelligence & ML

- [Cache Management Interfaces](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-servers/cache-management-interfaces.md) — Exposes server endpoints for AI agents to inspect workloads and manage cache states.

### Networking & Communication

- [AI-Driven Cache Controllers](https://awesome-repositories.com/f/networking-communication/rpc-servers/cache-management-interfaces/ai-driven-cache-controllers.md) — Ships an interface for AI agents to inspect queries and dynamically create or drop caches. ([source](https://blog.readyset.io/))

### Development Tools & Productivity

- [Cache Directives](https://awesome-repositories.com/f/development-tools-productivity/sql-execution-directives/cache-directives.md) — Allows developers to control caching behavior per query using SQL comment hints.

### DevOps & Infrastructure

- [GTID Consistency Mechanisms](https://awesome-repositories.com/f/devops-infrastructure/high-availability-infrastructure/database-failover-management/gtid-consistency-mechanisms.md) — Uses global transaction identifiers to maintain cache consistency during database failovers.

### System Administration & Monitoring

- [SQL Workload Analysis Tools](https://awesome-repositories.com/f/system-administration-monitoring/cli-performance-monitors/sql-workload-analysis-tools.md) — Provides a command-line tool to inspect and diagnose SQL workload performance before production deployment. ([source](https://blog.readyset.io/))
