Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Go
  3. redka

redka

BSD-3-ClauseGov1.0.1

Redis-compatible key-value store with SQLite/PostgreSQL backend, offering ACID transactions and SQL views.

GitHubGitHub
4.5k stars131 forks0 contributors

What is redka?

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.

Target Audience

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.

Value Proposition

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.

Overview

Redis re-implemented with SQL

Use Cases

Best For

  • Embedding Redis-like caching in Go applications without external dependencies
  • Creating lightweight testing environments that mimic Redis without containers
  • Adding Redis-compatible data structures to existing PostgreSQL deployments
  • Applications requiring ACID transactions with key-value operations
  • Scenarios where data persistence beyond RAM limits is important
  • Projects needing SQL-based analysis of Redis-style data structures

Not Ideal For

  • High-performance applications requiring sub-millisecond latency and Redis's optimized in-memory operations
  • Projects needing the latest Redis features or active development, as Redka is in maintenance mode
  • Use cases where simplicity of a standalone Redis server is preferred over managing a SQL backend
  • Scenarios where data must be entirely in-memory for speed, such as real-time analytics or caching layers

Pros & Cons

Pros

Persistent Storage Beyond RAM

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.

ACID Transactional Guarantees

Supports atomic, consistent, isolated, and durable transactions, ensuring data integrity for critical operations, highlighted in the key features and philosophy.

SQL Integration for Analysis

Provides SQL views for easier data introspection and reporting, enabling relational analysis of Redis-style data structures without extra tools.

Flexible Deployment Options

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.

Cons

Performance Trade-offs

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.

Limited Development Roadmap

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.

Dependency on SQL Databases

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.

Open Source Alternative To

redka is an open-source alternative to the following products:

Redis
Redis

An open-source, in-memory data structure store used as a database, cache, and message broker. It supports various data structures such as strings, hashes, lists, sets, and more.

Frequently Asked Questions

Quick Stats

Stars4,542
Forks131
Contributors0
Open Issues0
Last commit2 months ago
CreatedSince 2024

Tags

#database#postgres#redis#go-library#data-structures#key-value-store#embedded-database#postgresql#redis-compatible#sqlite#key-value#acid-transactions

Built With

S
SQLite
G
Go
P
PostgreSQL

Included in

Go169.1k
Auto-fetched 1 day ago

Related Projects

Prometheus.ioPrometheus.io

The Prometheus monitoring system and time series database.

Stars63,716
Forks10,349
Last commit2 days ago
MilvusMilvus

Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search

Stars43,926
Forks3,972
Last commit1 day ago
TiDBTiDB

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.

Stars40,002
Forks6,169
Last commit1 day ago
cockroachcockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.

Stars32,086
Forks4,119
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub