Chapter 01 · Redis Foundations, Redis 8, Deployment Choices, CLI, and Lab Setup
Redis Open Source, Managed Services, and Deployment Topologies: Responsibility and Cost Boundaries
Compare Redis Open Source, managed services, deployment topologies, licensing, responsibility boundaries, and measurable cost drivers.
Learning outcomes
AtlasMart can run Redis itself, buy a managed Redis service, or adopt a commercial Redis platform. Those choices may expose similar commands while moving responsibility for patching, backups, failover, TLS, scaling, support, and cost to different parties. This lesson teaches a responsibility model rather than a vendor-price comparison that will become stale.
Distinguish Redis Open Source software from Redis Cloud, Redis Software, and third-party managed Redis-compatible services.
Compare standalone, replicated/Sentinel, clustered, and managed topologies without treating them as interchangeable.
Identify responsibility boundaries for patching, persistence, backup, failover, network security, capacity, and observability.
Explain Redis 8 licensing at a high level and know when legal/commercial review is required.
Build a deployment decision record based on workload SLOs and measurable cost drivers rather than feature-name matching.
Examples use Redis Open Source 8.10.1 and the Docker Official
Image redis:8.10.1, pinned on purpose. The lab
publishes Redis only on host loopback
(127.0.0.1:6379) and uses disposable AtlasMart
credentials. Never reuse these sample credentials or point the
commands at a production endpoint.
1. Start with responsibility, not with a logo
Redis Open Source is the Redis software distribution you can run yourself. A managed service operates some or most infrastructure/control-plane tasks on your behalf. Redis Cloud and Redis Software are commercial Redis Ltd. products with their own service/subscription terms; other cloud providers also offer Redis-compatible or Redis-derived services with version and command differences. “Managed” therefore describes an operational model, not a guarantee of identical Redis behavior.
| Decision | Self-managed Redis Open Source | Managed service |
|---|---|---|
| Binary/version selection | You choose, test, patch, and roll back. | Provider constrains versions and upgrade windows. |
| Host/container lifecycle | You own it. | Provider usually owns underlying hosts/control plane. |
| Backups/restore | You configure, protect, and drill. | Provider may automate capture; you still test restore and application reconciliation. |
| HA/failover | You design replication/Sentinel/Cluster and client behavior. | Provider may automate topology; client retry/discovery semantics still matter. |
| Network/TLS/ACL | You configure all layers. | Shared responsibility: provider exposes controls; you configure identities, reachability, and application secrets. |
| Capacity/cost | Host, memory, replicas, disk, network, people. | Service tier/capacity, replicas, transfer, backups, premium features, support. |
2. Topology is part of the product behavior
A standalone server is one Redis process with no Redis-level failover. replication adds one or more replicas and is asynchronous by default. Sentinel monitors a non-clustered primary/replica deployment and can coordinate automatic failover and service discovery. Redis Cluster partitions keys across hash slots and adds per-shard replicas/failover; it changes multi-key and logical-database constraints. A provider may hide some of these components while exposing equivalent service endpoints.
Sentinel is not sharding. Redis Cluster is not simply “Sentinel plus more nodes.” Cluster introduces hash-slot routing, redirections, cross-slot constraints, and database-0-only semantics. These appear later in Chapters 20 and 21.
3. Redis 8 licensing and product boundaries
Redis Open Source 8 and later is offered under a tri-license: RSALv2, SSPLv1, or AGPLv3. AGPLv3 is the OSI-approved open-source option; RSALv2 and SSPLv1 are source-available licenses with different obligations/restrictions. Redis Ltd. describes Redis Cloud and Redis Software as proprietary commercial products. This course can explain technical and licensing boundaries, but it is not legal advice.
For ordinary local learning, use the published Redis Open Source binary/container under an applicable license. If an organization plans to redistribute Redis, modify and distribute it, embed it in a product, or offer Redis functionality as a network service, record the exact version and chosen license and obtain appropriate legal review rather than relying on an old “Redis is BSD” assumption.
INFO serverHELLO 3MODULE LISTCOMMAND INFO FT.SEARCH JSON.GET VADD TS.ADD BF.ADD
A command being present proves that the running binary exposes it. It does not prove your managed-service plan enables the same limits, that your client understands it, or that your organization has satisfied every licensing/commercial obligation.
4. Cost awareness: measure the resources Redis actually consumes
Comparing only “price per GB” misses the main cost drivers. Redis is memory-centric, and production headroom may need to include dataset memory, indexes, allocator fragmentation, client buffers, replication buffers, fork/copy-on-write headroom for persistence, replicas, and failover capacity. Search/vector indexes can be materially larger than source records. Persistence adds storage and I/O. Cross-zone/region traffic and managed-service data transfer can add network cost. Operators and incident response are also real self-managed costs.
INFO memoryINFO keyspaceINFO clientsINFO replicationINFO persistenceCONFIG GET maxmemoryCONFIG GET maxmemory-policyDBSIZE
These are inputs, not a capacity model by themselves. Later chapters measure key size distribution, fragmentation, peak write buffers, fork behavior, query-index memory, and tail latency.
5. Deliberately wrong approach: “managed means Redis behavior is identical everywhere”
AtlasMart tests a command on Redis Open Source 8.10.1 locally, then assumes a managed endpoint exposes the same version, integrated Search/JSON/vector surface, persistence controls, CONFIG access, logical databases, backup semantics, and limits. Deployment succeeds but an unsupported command or blocked administrative operation fails at runtime.
The diagnosis is to separate Redis command semantics from service contract. Ask the provider for exact engine/version compatibility, supported command list, topology, persistence/backup options, maintenance policy, TLS/ACL behavior, quotas, network egress model, and recovery guarantees. Re-run compatibility tests against the actual service endpoint before cutover.
6. Hands-on lab: write a deployment responsibility matrix
Use the local Chapter 01 server as the self-managed reference. Record evidence, then create a hypothetical managed-service row without inventing provider guarantees. Unknown fields should remain “verify with provider,” which is better architecture work than filling them with assumptions.
Workload: cart/session acceleration + countersTarget p99 latency objective: define from application SLOData-loss tolerance (RPO): define per key familyRecovery-time objective (RTO): define per serviceSELF-MANAGED LABRedis version: observed with INFO serverTopology: standalone (Chapter 01 only)Persistence: observed with INFO persistence + CONFIG GETACL/TLS: observed, not assumedmaxmemory/eviction: observed with CONFIG GETBackup restore drill: not satisfied by replication alonePatching/upgrade owner: AtlasMartCapacity/alerting owner: AtlasMartMANAGED CANDIDATEExact Redis/version compatibility: VERIFYTopology/failover model: VERIFYBackup/restore/RPO/RTO: VERIFYCommand/admin restrictions: VERIFYSearch/JSON/vector availability: VERIFYTLS/ACL/network controls: VERIFYMaintenance/upgrade policy: VERIFYPricing dimensions and egress: VERIFY
Acceptance criteria: every guarantee has an owner, evidence source, and test. A provider feature page is useful documentation; only an application-level failover/restore drill proves your integration recovers as designed.
7. Production judgment
Self-management gives direct control but requires patching, operating-system/container security, topology design, backup, observability, and on-call skill. Managed services reduce parts of that burden but introduce provider limits, version cadence, control-plane dependencies, network architecture, and service-specific pricing. Neither is universally cheaper or safer.
Use workload SLOs, data criticality, required commands/features, geographic constraints, team skill, compliance, failure drills, and total operating cost to choose. Keep an exit plan: portable key schemas and client abstractions help, but cluster/topology behavior and managed extensions can still make migration non-trivial. Lesson 3 now builds a pinned local Redis 8.10.1 environment so these claims can be observed directly.
8. Summary and next step
Deployment choice moves responsibility; it does not erase it.
Redis Open Source, commercial Redis products, and third-party
managed offerings need explicit version, topology, licensing,
security, backup, feature, and cost checks. Next you will start
a pinned Redis 8.10.1 container, connect with
redis-cli, and prove the server/client metadata
instead of assuming it.
Check your understanding
- Why is “managed Redis” not a precise technical specification?
- What is the core difference between Sentinel and Cluster?
- What license options apply to Redis Open Source 8?
- Name four cost drivers beyond raw dataset bytes.
- What should you do when a managed-service behavior is unknown?
Review the answers
Because providers can differ in Redis version, topology, command support, persistence, quotas, administrative access, networking, and feature packaging.
Sentinel coordinates monitoring/failover for a non-sharded primary/replica deployment; Cluster partitions the keyspace into hash slots and introduces cluster-aware routing and constraints.
Redis Ltd. documents a choice among RSALv2, SSPLv1, and AGPLv3. AGPLv3 is the OSI-approved open-source option.
Examples: replicas, Search/vector index memory, allocator/fragmentation headroom, persistence/fork I/O, network transfer, backups, failover spare capacity, and operations/on-call labor.
Mark it as unverified, consult the provider’s current compatibility/contract documentation, and test the actual endpoint before relying on the behavior.
Authoritative references
- Redis licensing overview — Redis Open Source 8 tri-license and proprietary-product boundaries
- Redis Open Source 8.10 release notes — current 8.10 product/version baseline
- Redis replication — primary/replica semantics
- Redis Sentinel — monitoring and failover architecture
- Redis Cluster specification — hash-slot routing and cluster constraints