Redis-compatible key-value store with SQLite/PostgreSQL backend, offering ACID transactions and SQL views.
Redka is an open-source project that reimplements Redis core functionality using SQL databases as the storage backend. It provides Redis-compatible data structures and commands while leveraging SQLite or PostgreSQL for persistence, ACID transactions, and SQL-based data analysis. This allows developers to use Redis-like features without requiring a separate Redis server or keeping all data in RAM.
Go developers who need an embedded key-value store with Redis API compatibility, teams using PostgreSQL who want Redis-like data structures with transactional guarantees, and developers seeking lightweight testing environments without running full Redis instances.
Redka offers the familiar Redis API with the persistence and transactional safety of SQL databases, eliminating the need to manage a separate Redis server. Its ability to run in-process or as a standalone server provides flexibility, while SQL views enable better data introspection than traditional Redis.
Redis re-implemented with SQL
Redka uses SQLite or PostgreSQL as storage backends, allowing data to exceed RAM limits, which is ideal for embedded caching in Go apps as described in the use cases.
Supports atomic, consistent, isolated, and durable transactions, ensuring data integrity for critical operations, highlighted in the key features and philosophy.
Provides SQL views for easier data introspection and reporting, enabling relational analysis of Redis-style data structures without extra tools.
Can run as a standalone Redis-compatible server or as an in-process Go library, offering versatility for different development and production needs, as outlined in the installation section.
The README explicitly states that Redka cannot match Redis's raw performance, with benchmarks showing only tens of thousands of operations per second, making it unsuitable for high-throughput scenarios.
Redka is in maintenance mode with no new features planned, which restricts future enhancements and adaptation to evolving Redis standards, as noted in the support section.
Requires setup and management of SQLite or PostgreSQL, adding complexity compared to Redis's simple in-memory storage, especially for teams not already using these databases.
redka is an open-source alternative to the following products:
The Prometheus monitoring system and time series database.
Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search
TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.
CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.