Run a highly available Redis session store for an ecommerce checkout
Keep checkout sessions alive through a node loss with a primary, replicas in other zones and write rules that refuse unsafe writes. Valkey and Redis let a primary accept writes only if at least N replicas have lag below M seconds, using min-replicas-to-write and min-replicas-max-lag (Valkey docs, read 23 Nov 2026). A second rule catches teams out: with replication, a primary that restarts with an empty dataset wipes its replicas, so either persistence is on or automatic restart is off (Valkey admin docs, read 23 Nov 2026). OSStend engineers run the cluster in OSStend's cloud, set both rules, rehearse failover and watch replica lag around sale events. The decision between Sentinel and cluster mode is made in the design and explained in the Redis high availability guide.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓Redis
- ✓Run
- ✓Ecommerce
- Topology
- Primary and replicas across zones
- Write rule
- min-replicas-to-write with a lag limit
- Persistence
- On, or auto-restart off
- Failover
- Rehearsed under load
- Where it runs
- OSStend's cloud
Typical situation
Trigger. A node loss during a sale logged out customers and emptied carts.
Versions. Valkey or Redis 8 and later in OSStend's cloud.
- Sessions must survive a primary loss.
- A short loss of the last writes is acceptable; an empty store is not.
- Sale events multiply the write rate.
A typical situation, not a named customer.
A checkout session store needs replicas in separate zones, a write rule such as min-replicas-to-write, and persistence or no auto-restart so an empty primary cannot wipe replicas. OSStend sets these, rehearses failover and runs the cluster 24/7.
Customers
Partners
- PostgreSQL
- MySQL
- MongoDB
- Redis
Valkey
- OpenSearch
- Kafka
- RabbitMQ
- AWS
- Google Cloud
- Azure
- Kubernetes
- OpenShift
- Prometheus
- Grafana
- Datadog
- Dynatrace
- Splunk
What OSStend runs and what you keep
OSStend designs, runs and rehearses the HA setup. You own the application's session logic and the client retry behaviour.
| Area | OSStend | You |
|---|---|---|
| Topology | Places primary and replicas across zones. | Provides the availability target. |
| Write rules | Sets min-replicas-to-write and the lag limit. | Accepts the trade-off: writes are refused when replicas lag. |
| Persistence | Chooses RDB, AOF or none with restart rules. | Decides the tolerable data loss. |
| Failover | Configures and rehearses promotion. | Tests client reconnects. |
| Memory | Sizes for the sale peak and fork headroom. | Shares peak session counts. |
| Sale readiness | Reviews load ahead of events. | Gives event dates. |
| On call | Named engineers 24/7. | Application incidents. |
Where it can run
Valkey and Redis 8 and later can run in OSStend's cloud. A pinned older version runs in your own account.
| Option | When it fits | Licence and source |
|---|---|---|
| Our cloud | The default for this case: a dedicated cluster in OSStend's cloud. | Valkey BSD 3-clause (COPYING, read 23 Nov 2026); Redis 8 and later under the AGPLv3 option. |
| Your cloud account | Sessions that must stay in your account. | Adds Redis 7.4 to 7.x (RSALv2 or SSPLv1 only). |
| Your data center | Stores near on-premises order systems. | Same as your cloud account. |
How we run it
A session store is quick to stand up. Most of the time goes into the failover rehearsal.
Session profile (3 to 5 days)
Measure session size, TTLs and peak concurrent sessions.
Design (1 week)
Pick topology, write rules, persistence and memory with fork headroom.
Build (3 to 5 days)
Build the cluster and wire monitoring.
Failover rehearsal (3 to 5 days)
Kill the primary under load; record promotion time and client behaviour.
Run
Engineers on call, with a sale-readiness review before each event.
Cost basis
Session memory is small per session and large in total. The example below combines an illustrative session budget with a dated list price for a comparable managed node.
| Illustrative sizing | Value | Result |
|---|---|---|
| Peak concurrent sessions | 2,000,000 | |
| Average session payload | 2 KB | About 4 GB of values |
| Overhead allowance | 50% | About 6 GB in memory |
| Nodes: primary and two replicas, cache.r7g.large | $0.1752 an hour each | $383.69 a month for three nodes |
Sizing is an assumption, not a measurement. Price source: AWS Price List file for ElastiCache, US East, publication date 18 Nov 2026, read 23 Nov 2026. Arithmetic: 3 x $0.1752 x 730. OSStend's price is quoted per design.
The managed node price is a reference point, not OSStend's price. Drivers for OSStend's fee are on pricing.
What we watch on call
Session stores fail at the edges of replication. These are the signals we alert on.
- Replica lag.
- The write rule refuses writes when replicas fall behind. Signal: lag seconds against min-replicas-max-lag.
- Empty restart.
- A restarted primary with no data. Signal: keyspace size drop and uptime resets.
- Expiry on replicas.
- Replicas wait for the primary to delete expired keys (docs, read 23 Nov 2026). Signal: expired key counts per node.
- Full resync after a blip.
- A small backlog forces full sync. Signal: sync full count and backlog size.
- Sale spike.
- Write rate multiplies. Signal: commands per second against load-test limits.
When OSStend is not the right fit
A dedicated HA store suits revenue-critical sessions. A simple cache does not need it.
Contact us if
- ✓Losing sessions during a sale costs revenue.
- ✓You want failover rehearsed, not assumed.
- ✓You want a named team on call for sale events.
Not a fit if
- ✕Sessions rebuild cheaply from a database.
- ✕A single small cache node.
- ✕You need a free tier.
Questions buyers ask
These are the questions ecommerce teams ask about Redis HA.
What does min-replicas-to-write do?
It makes the primary accept writes only if at least N replicas have lag no greater than M seconds (Valkey docs, read 23 Nov 2026). It trades availability for safety.
Do I need persistence for a session store?
Either persistence on the primary or no automatic restart after a crash. Otherwise an empty primary can wipe its replicas (Valkey admin docs, read 23 Nov 2026).
Sentinel or cluster?
See the Redis high availability guide. The design picks one for your workload.
How does this differ from ElastiCache?
The comparison is on Amazon ElastiCache alternatives.
Related pages
- PricingDatabase as a service pricing: dedicated, tailoredDatabase as a service pricing from OSStend: dedicated, tailored clusters priced by engine, size, SLA tier and location. Enterprise only, with no free tier.
- GuideRedis high availability: replicas, Sentinel, clusterRedis high availability compared: replicas, Sentinel and cluster mode, the write-loss window, WAIT, quorum and ElastiCache Multi-AZ, from docs read 19 Nov 2026.
- AlternativeElastiCache pricing and alternatives in 2027Amazon ElastiCache pricing is only part of the picture: admin commands are restricted and it runs on AWS only. See fully configurable Redis or Valkey.
Rehearse failover before your next sale
45 minutes: session profile, write rules and failover test.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





