macrostack
Browse

The AI stack

Categories

Local & Sovereign AINotes & KnowledgeObservability & MonitoringPassword ManagersWeb AnalyticsTeam ChatSmart HomeNetworking & RoutersVideo ConferencingCloud Storage & SyncPhotos & MediaAPI DevelopmentImage EditingWorkflow Automation & iPaaSDeveloper Tools & ContainersOffice & Productivity SuitesNo-Code DatabasesCode Hosting & Git ForgesProject ManagementEmail Marketing & NewslettersScheduling & BookingError Tracking & Exception MonitoringLog Management & SIEMVPN & PrivacyEmail & Secure MailVector Databases & AI SearchLLM & Agent FrameworksDomains & Web HostingData Removal & PrivacyAuthentication & IdentityHelp Desk & Customer SupportCloud & VPSKubernetes & Container PlatformsEmbedding ModelsPDF & DocumentsAI Coding AssistantsAI Voice & SpeechLLM Observability & EvaluationLLM Gateways & RoutingCloud GPU & AI ComputeCI/CD & build automationData & pipeline orchestrationModel serving & inferenceAI agent frameworksBackend as a serviceSecrets managementFeature flags & experimentationProduct analyticsSearch infrastructureUptime & status monitoringAffiliate & partner platformsVisitor identification & personalisationWikis & internal docsIdentity & access managementData warehouses & analytics enginesCustomer data platformsCRMObject storageBI & dashboardsE-signatureWhiteboards & diagrammingIn-memory data stores & cachingPlatform as a serviceTransactional & bulk emailHeadless CMSDesign & prototypingE-commerce platformsInternal tools & admin panelsManaged databasesForms & surveysFine-Tuning & Model TrainingRAG & Retrieval PlatformsLLM Evaluation & TestingAI Guardrails & Content SafetySpeech Recognition & TranscriptionExperiment Tracking & ML OpsDocument AI & OCR

About

How we rank & score
Migration guide · In-memory data stores & caching

The 5 best Redis alternatives

Redis is the in-memory data store almost every serious application eventually adds: caching, sessions, rate limiting, queues, leaderboards, pub/sub. It is fast because it keeps everything in memory, and it became ubiquitous because the data structures it offers map neatly onto problems developers actually have.

96
Bottom line

There is no longer an urgent reason to leave Redis, and that is worth saying plainly. Valkey is the right default for new projects — same protocol, BSD, foundation governance, no single company able to change the terms again. DragonflyDB if you want materially better performance per machine and can accept a source-available licence.

Jump to the full comparison →

The cost

The software is free to run. Redis Cloud starts around $5/month for a small instance and scales into four figures for production clusters with replication and persistence; AWS ElastiCache, Azure Cache and Google Memorystore price similarly per node-hour. Redis Enterprise is quoted. The bill is for memory and availability, and memory is the expensive kind of storage. Figures checked 2026-08-05.

Why people consider an alternative

This is the clearest licence story in modern software and it is worth telling properly. In March 2024 Redis Ltd relicensed Redis from BSD to a dual RSAL/SSPL arrangement — neither of which is open source — to stop cloud providers reselling it. Within weeks the community forked the last BSD version as Valkey under the Linux Foundation, and AWS, Google and Oracle backed it. Then in May 2025 Redis reversed, adding AGPLv3 as an option from version 8. So Redis is open source again, on a different licence, after a fork already happened. If you left during the fourteen months in between, you left for a real reason. If you are choosing today, the question is not the licence but who you would rather depend on.

When Redis is still the right call

Stay if you are already running it and it works — Redis 8 is AGPL, which is open source by any definition, and there is no licence emergency to respond to. Stay if you depend on the proprietary modules, because the forks do not reproduce them and rebuilding search or JSON support is a project. Stay for the ecosystem: two decades of client libraries, tutorials and operational knowledge, which is worth more than a small performance delta. And stay if you buy Redis Enterprise support, where the relationship is the product.

AlternativeLicenseSelf-hostPricingSovereignty
ValkeyBSD-3-ClauseYesFree and open source. Managed offerings from AWS, Google and others.96
MemcachedBSD-3-ClauseYesFree and open source.95
GarnetMITYesFree and open source.92
KeyDBBSD-3-ClauseYesFree and open source.89
DragonflyDBBusiness Source License 1.1 (source-available, converts to Apache-2.0 in time)YesFree to self-host within BSL terms. Dragonfly Cloud is paid.70
96
Macrostack's top pick

Valkey

The Linux Foundation fork — same Redis, governance that cannot be revoked.

Which one fits your situation?

There is no single best answer — it depends on what you are actually trying to do.

Just tell me the best Redis alternative

Valkey96

Our top pick — the highest Sovereignty Score at 96, and the one we would choose ourselves.

Valkey vs Memcached

I have no budget — is there a genuinely free one?

Memcached95

Open source under BSD-3-Clause. Free and open source.

Memcached vs Valkey

I want to self-host it and own the data

Garnet92

Self-hostable, so your data stays on your own server. Free and open source.

Garnet vs Valkey

It is just me — I do not want to run a server

DragonflyDB70

Offers a hosted option, so you can start without infrastructure. Free to self-host within BSL terms. Dragonfly Cloud is paid.

DragonflyDB vs Valkey

Every alternative, compared

#1★ TOP PICK

Valkey

The Linux Foundation fork — same Redis, governance that cannot be revoked.

96
OPEN SOURCEBSD-3-ClauseSELF-HOSTLOCAL-FIRST

Valkey is the community fork of Redis taken from the last BSD-licensed release, now under Linux Foundation stewardship with AWS, Google and Oracle contributing. It is the same codebase, so the protocol, commands and clients are identical and migration is a hostname change. BSD-3-Clause, around 27k stars. The argument for it is not technical — it is that no single company can relicense it, which is precisely the event that created it. Performance has since moved ahead of Redis in several published benchmarks through multi-threaded I/O work the fork prioritised.

Strengths

  • +Drop-in for Redis — same protocol, same clients, hostname change
  • +BSD-3-Clause under Linux Foundation governance; no vendor can relicense it
  • +Backed by AWS, Google and Oracle with real engineering behind it
  • +Faster than Redis on several published benchmarks after multi-threading work

Trade-offs

  • Does not include Redis Ltd's proprietary modules — no RedisJSON or RediSearch
  • Younger brand, so some managed providers still list only Redis
  • Documentation still catching up with Redis's two decades
  • Divergence from upstream Redis will grow over time
Free and open source. Managed offerings from AWS, Google and others.
#2

Memcached

The one that only caches — and does it without ceremony.

95
OPEN SOURCEBSD-3-ClauseSELF-HOSTLOCAL-FIRST

Memcached predates Redis and does one thing: a distributed in-memory key-value cache. No persistence, no data structures, no pub/sub, no clustering logic. BSD-3-Clause, and stable for so long that it is genuinely boring, which for infrastructure is a compliment. Listed because a great many Redis deployments are caching a string against a key and nothing more — and for that job Memcached uses less memory, has fewer failure modes, and gives you nothing to misconfigure. Ask what you are actually storing before you assume you need Redis.

Strengths

  • +BSD-3-Clause and completely uncontroversial for two decades
  • +Lower memory overhead than Redis for simple key-value caching
  • +Very few moving parts, so very few ways to break it
  • +Supported by every major managed cloud

Trade-offs

  • Caching only — no persistence, no data structures, no pub/sub
  • No replication or failover built in
  • Cannot serve as a queue, session store or message bus
  • Wrong tool the moment you need more than a cache
Free and open source.
#3

Garnet

Microsoft Research's cache — MIT, and unusually fast under contention.

92
OPEN SOURCEMITSELF-HOSTLOCAL-FIRST

Garnet is a Redis-protocol cache store out of Microsoft Research, written in C#, and its published throughput under high client concurrency is striking — the workload where Redis's single-threaded design shows most. MIT licensed, around 12k stars, used inside Microsoft before release. It is the most permissively licensed serious option here. The caution is ecosystem: a .NET server is an unusual dependency for teams that are not already there, and it is the newest of these by some distance.

Strengths

  • +MIT — the most permissive licence in this comparison
  • +Exceptional throughput under high concurrency
  • +Microsoft Research behind it, with real production use
  • +Redis protocol compatible, so clients work unchanged

Trade-offs

  • Newest option here with the shortest track record
  • A .NET runtime dependency many teams will not want
  • Smaller community than Valkey or DragonflyDB
  • Not all Redis commands and data types are implemented
Free and open source.
#4

KeyDB

The earlier fork — multithreaded Redis, BSD, now Snap-owned.

89
OPEN SOURCEBSD-3-ClauseSELF-HOSTLOCAL-FIRST

KeyDB forked Redis before any of this to add multithreading, and was acquired by Snap in 2022. It remains BSD-3-Clause with around 12.5k stars and full Redis protocol compatibility, including active replication where multiple nodes accept writes. It is the option with the longest track record of the forks here. The honest caveat is momentum: development has slowed considerably since the acquisition, and Valkey has absorbed most of the community energy that KeyDB once held.

Strengths

  • +BSD-3-Clause with a longer production history than Valkey
  • +Multithreaded well before Redis addressed it
  • +Active-active replication — multiple writable nodes
  • +Full Redis protocol compatibility

Trade-offs

  • Development pace has slowed markedly since Snap acquired it
  • Community energy has largely moved to Valkey
  • Corporate owner rather than foundation governance
  • Fewer managed hosting options
Free and open source.
#5

DragonflyDB

Redis-compatible, built for modern multi-core machines.

70
SOURCE-AVAILABLEBusiness Source License 1.1 (source-available, converts to Apache-2.0 in time)SELF-HOSTLOCAL-FIRST

DragonflyDB is a ground-up reimplementation of the Redis and Memcached protocols designed for the hardware people actually run now: it scales across all cores rather than being effectively single-threaded, and reports substantially higher throughput per machine with lower memory use. Around 31k stars. That means fewer, smaller instances for the same load, which is a real cost line rather than a benchmark. The licence is Business Source License 1.1 — source-available, converting to Apache-2.0 after a delay — so it is not open source today and should not be described as such.

Strengths

  • +Uses every core — far higher throughput per machine than Redis
  • +Lower memory footprint for the same dataset
  • +Speaks both Redis and Memcached protocols
  • +Fewer, smaller instances for the same workload

Trade-offs

  • Business Source License — not open source today, whatever lists say
  • Cannot be offered as a competing managed service
  • Younger codebase with a shorter production record
  • Some rarely used Redis commands are unimplemented
Free to self-host within BSL terms. Dragonfly Cloud is paid.

Questions people ask

Is Redis still open source?

Yes again, since May 2025. Redis Ltd relicensed to RSAL/SSPL in March 2024 — neither open source — and reversed in 2025 by adding AGPLv3 as an option from Redis 8. In between, the community forked the last BSD version as Valkey under the Linux Foundation. So Redis is open source today, on a different licence, after a fork already happened.

What is Valkey and should I switch?

Valkey is the Linux Foundation fork of Redis from the last BSD release, backed by AWS, Google and Oracle. It is the same codebase, so switching is a hostname change. For new projects it is the better default — BSD, foundation governance, no single company able to change the terms again. If Redis already works for you, there is no emergency.

Do I need Redis, or just a cache?

Worth asking. A great many Redis deployments store a string against a key and nothing else, and Memcached does exactly that with less memory and fewer failure modes. Redis earns its place when you use the data structures — sorted sets, streams, pub/sub — or need persistence. If you are not using those, you are running more software than the problem requires.

Compare them head-to-head

Related comparisons

Entry last verified 2026-08-05. Licenses and pricing change — spotted something out of date? That's a correction we want.

The Macrostack brief

New swaps, worth your inbox.

A short, occasional email when we add a high-intent alternative or ship a new head-to-head. No spam, no selling your address — unsubscribe in one click.