Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement

CK CK 3788 
Created at
Updated at  
105 0 0

Most recently, my server was migrated to AlmaLinux 10 from CentOS 7, and it was found that there is no Redis available, but ValKey is available instead. It felt strange that Redis was replaced by Valkey, and I had to use it.

Valkey is an open-source, high-performance in-memory data store designed to act as a direct alternative to Redis. It supports data structures such as strings, hashes, lists, sets, sorted sets, bitmaps, and hyperloglogs, making it suitable for caching, message brokering, and primary database use cases.

  • Origin: Created in March 2024 as an open-source fork of Redis 7.2.4.
  • Governance: Hosted by the Linux Foundation, ensuring neutral, community-driven development.
  • Key Backers: Industry leaders including Amazon Web Services (AWS), Google Cloud, Oracle, Ericsson, Snap Inc., and Aiven.
  • License: BSD 3-Clause License, which guarantees it remains fully open source and free for commercial use.


Why Redis Changed Its Open-Source Policy

For over a decade, Redis operated under the flexible, open-source BSD license. However, in March 2024, Redis Ltd. announced a major licensing shift away from open source.

 

1. The License Shift

Redis moved from the BSD license to a dual-licensing model:

  • RSALv2 (Redis Source Available License v2)
  • SSPLv1 (Server Side Public License v1)

Under these licenses, Redis is no longer considered "open source" according to the Open Source Initiative (OSI). It is now classified as source-available.

 

2. Reasons Behind the Change

  • Commercial Exploitation by Cloud Providers: Redis Ltd. argued that major cloud hyperscalers (such as AWS, GCP, and Azure) were offering managed Redis services and generating massive revenue without contributing proportionately back to the open-source code base.
  • Monetization Pressures: Redis Ltd. sought to force major cloud providers to enter commercial licensing agreements to use the software as a service, thereby protecting their own revenue stream.

 

3. Impact on the Community

  • Cloud providers and third-party vendors can no longer host the latest versions of Redis for free without purchasing a license or open-sourcing their own management infrastructure.
  • Developers and organizations faced vendor lock-in risks, legal uncertainties, and potential cost increases for running Redis managed services.


 

Advantages of Valkey Over Redis

Valkey was created to preserve the original vision of Redis while introducing significant architectural and governance improvements.

 

1. Truly Open Source & Permissive

  • No Vendor Lock-In: Governed by the Linux Foundation, Valkey cannot be arbitrarily re-licensed by a single commercial entity.
  • Free Commercial Use: The BSD 3-Clause license allows businesses to modify, host, and integrate Valkey without paying licensing fees.

 

2. Backed by a Massive Industry Alliance

  • Major tech companies (AWS, Google, Oracle) are actively pooling engineering resources into Valkey, accelerating bug fixes, security patches, and feature additions far faster than a single vendor could manage.

 

3. Architectural & Performance Enhancements

While maintaining backward compatibility, Valkey 8.0 introduced core improvements:

  • Multithreading Improvements: Enhancements to I/O processing reduce latency under heavy read/write workloads compared to traditional Redis.
  • Memory Efficiency: Optimized data layout and reduced memory fragmentation, yielding lower RAM consumption.
  • Faster Failovers & Cluster Scaling: Improved cluster state management and faster slot migrations during scaling operations.

 

Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement

How to Use Valkey as a Drop-In Replacement for Redis

Valkey is engineered to be 100% backward compatible with Redis 7.2. You can switch from Redis to Valkey with minimal configuration changes.

 

1. Executables and Commands Mapping

Valkey renames the Redis binaries, but maintains identical command syntax and protocol (RESP):

ActionRedis CommandValkey Equivalent
Serverredis-servervalkey-server
CLIredis-clivalkey-cli
Benchmarkredis-benchmarkvalkey-benchmark
Port63796379 (Default remains identical)

 

2. Installation & Quick Start

Using Docker:

# Pull and run the official Valkey container
docker run --name my-valkey -p 6379:6379 -d valkey/valkey:latest

# Connect via CLI
docker exec -it my-valkey valkey-cli

Using native binaries (Ubuntu/Debian example):

# Start Valkey service
sudo systemctl start valkey

# Connect using valkey-cli or redis-cli (both work with Valkey server)
valkey-cli ping
# Output: PONG

 

3. Client Libraries Compatibility

You do not need to rewrite your application code. Existing Redis drivers in virtually all programming languages (e.g., redis-py, Jedis, go-redis, ioredis) work seamlessly with Valkey out of the box because Valkey uses the RESP2/RESP3 protocol.

 

Example using Python redis library connected to a Valkey server:

import redis

# Connects to Valkey running on default port 6379
client = redis.Redis(host='localhost', port=6379, db=0)

client.set('key', 'Hello from Valkey!')
print(client.get('key').decode('utf-8')) 
# Output: Hello from Valkey!

 

4. Migration Steps from Redis to Valkey

  1. Backup Data: Trigger a save on your existing Redis instance to generate an dump.rdb file (redis-cli SAVE).
  2. Install Valkey: Set up valkey-server on your target environment.
  3. Move RDB File: Copy the dump.rdb file to the Valkey working directory.
  4. Start Valkey: Launch valkey-server. It will automatically parse the existing Redis RDB snapshot and load the dataset into memory without data corruption or loss.
Tags AlmaLinux In Memory Database Open Source Database Open Source Fork Redis Redis Alternative Redis License Change Redis Replacement ValKey Valkey Database Valkey Migration Valkey Setup Valkey Vs Redis 발키 Facebook X
Comments 0
Similar posts
  1. Why SPF and DKIM Are Essential for Linux Email Servers?
    51
  2. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    263
  3. Redis vs Memcached: Why Enterprise Tech Giants Choose Redis
    261
  4. Upgrading PHP 7.4 to PHP 8.1 in CentOS 7
    653
  5. The Ultimate Data Engineering Roadmap
    1,084
  6. Using Queue Algorithm with Redis - RPUSH and LPOP
    776
  7. Large-Scale Concurrency Control: Solving the DB Bottleneck from a Flood of “Likes”
    276
  1. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    273
  2. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    170
  3. System Requirements and Architecture: Intelligent Priority-Based Scheduler
    176
  4. Messaging Platform with Limited TPS based on the vendor
    204
  5. ETL vs ELT what makes the differeence? Why MLOps leverage ELT?
    202
  6. Arm Kernel DNNs: Powering Efficient AI at the Edge
    230
  7. Cloud-Native Capital Markets: Architecture, Compliance, and Innovation
    218
  8. Add New Address to gmail without SMTP (forwarding-only-address)
    1,701
  9. Registering an App on the Google Play Store
    1,481
  10. AGENT.md: AI's Blueprint for Robust Software and Vibe Coding
    563
  11. Tailscale: Zero-Config Remote Access to Your Home PC, Firewall-Free
    539
  12. Markdown's Visual Revolution: Meet Mermaid.js
    417
  13. Viewing Git Graph in ASCII
    600
  14. Vibe Coding: Harmonizing Intent with AI Productivity
    505
  15. How do I change the theme for code block in Confluence Cloud?
    1,397
  16. FIPS - Federal Information Processing Standards
    1,406
Recently updated
  1. Google OAuth Token Expiration: Causes and Solutions
    31
  2. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    57
  3. How do I create animated background for Google Meet?
    23,255
  4. Array of arguments passed to script in PHP
    99
  5. Invalid Auction Storms in Ad Tech
    108
  6. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    209
  7. The Two Clocks of Ad Server Architecture
    78
  8. Frequency Cap Architecture Overview
    527
  9. Collecting Proof-of-Play from 100,000 Screens
    153
  10. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    303
  11. What is RedisVL?
    117
  12. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    247
  13. TPU & GPU Cluster Management Tools
    258
  14. The Concept of Scaffolding in AI Agents
    245
  15. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    598
  16. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    269
  17. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    355
  18. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    207
  19. Machine Learning: Training vs. Ranking
    230
  20. The Continuous Learning Machine: Designing a Loop That Actually Turns
    229
  21. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    204
  22. Designing a Data Curation System Around a Vector Database
    230
  23. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    674
  24. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    201
  25. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    233
  26. Understanding Data Lineage
    272
  27. GPU & LLM Cluster Infrastructure & Task Scheduling Architecture
    255
  28. Java Variant Type
    213
  29. When Do You Need Real-Time Model Registry Versioning Powered by Autonomous Agents?
    242
  30. From SDI to MXL: Inside the Cloud-Native Infrastructure Powering Next-Gen Live Broadcast
    582