For Redis
Redis or Valkey on dedicated RAM, with root access
Free to sign up. No egress fees on any product.
Why Redis on Edge
One small VM does a cache node's job
Real RAM, real CPU
Redis gets dedicated vCPUs and memory, not a share of a noisy host. Predictable latency without the managed-cache premium.AOF locally, RDB to S3
AOF on local NVMe for durability, plus scheduled RDB snapshots in Edge Storage for disaster recovery.Replicas and Sentinel
Replicas on separate VMs over a private network, with Sentinel handling failover. Standard Redis HA, nothing proprietary.Cluster mode when you need it
Shard a large keyspace across several VMs with Redis Cluster. Most workloads never outgrow one primary.Redis or Valkey
The library script installs Redis 7. Valkey is a drop-in swap if the licence matters to you; same clients, same commands.Private by default
Password auth from the script, bound to the private interface, and 6379 open only to your network range.
Reference architecture
Primary and replica, watched by three sentinels
app VMs
sessions, cache, rate limits
queue workers
Sidekiq, BullMQ, Celery, Horizon
redis-server :6379
cache-1, Redis 7 with AOF
cache-2 replica
async copy, promoted on failover
sentinel :26379
three sentinels, quorum of two
redis-snapshots
daily dump.rdb, 30 days kept
- Compute
Runs Redis (or Valkey) on a VM with dedicated RAM, plus a Sentinel process.
- Compute
Optional replicas on further VMs, kept in sync over the private network.
- Storage
Holds RDB snapshots for disaster recovery and point-in-time restores.
- DNS
A cache. record for the primary's private address, if you'd rather not hard-code IPs.
Deploy
A replicated Redis from the library script
- 01
Create the primary with the Redis script
Leave redis_password out and one is generated. Attach the VM to your app's private network afterwards.
shell$ edge compute create --name cache-1 --size s-2vcpu-4gb \ --image ubuntu-24 --region london --script redis \ --script-param redis_password="$(openssl rand -hex 24)" - 02
Bind it to the private network
Use noeviction instead of allkeys-lru if Redis also holds queues: an error is better than a silently dropped job.
/etc/redis/redis.confbind 127.0.0.1 10.185.0.4 protected-mode yes requirepass <password> appendonly yes appendfsync everysec maxmemory 3gb maxmemory-policy allkeys-lru - 03
Add a replica and Sentinel
Create cache-2 the same way. Run a sentinel on cache-1, cache-2 and one app VM so any two can agree on a failover.
redis.conf, sentinel.conf# cache-2: /etc/redis/redis.conf replicaof 10.185.0.4 6379 masterauth <password> # sentinel.conf on three VMs sentinel monitor cache 10.185.0.4 6379 2 sentinel auth-pass cache <password> sentinel down-after-milliseconds cache 5000 - 04
Snapshot RDB to Edge Storage
Run it from cron and point it at the replica: redis-cli --rdb pulls a fresh snapshot over the network, so the primary never forks for a backup.
shell$ redis-cli -h 10.185.0.6 -a "$PW" --rdb /tmp/dump.rdb $ aws s3 cp /tmp/dump.rdb \ s3://redis-snapshots/$(date +%F).rdb \ --endpoint-url https://storage.edge.network
Prefer to hand it off? Give the job to your AI agent or have our engineers do it.
What it costs
Primary, replica and Sentinel for under $40
- No per-hour cache node premium
- Replication traffic on the private network is free
- Redis or Valkey at the same price
- Billed hourly from a prepaid balance
Estimated monthly bill on Edge
Cache and queue with a ~3 GB working set, run as primary, replica and Sentinel
- Primary VM$19.24Standard: 2 vCPU, 4 GiB, 80 GB NVMe
- Replica VM$19.24Standard: 2 vCPU, 4 GiB, 80 GB NVMe
- Sentinel$0.00Three processes on VMs you already run
- Storage$0.9065 GB of daily RDB snapshots: first 5 GB free, then 60 GB × $0.015
- Egress$0.00
FAQ
Redis on Edge, answered
How does this compare to ElastiCache or Memorystore?
Should I use Redis or Valkey?
How should I handle persistence?
How do I scale beyond one VM?
How do my apps connect?
Drop-in services
Add these without touching the stack
- Edge ShieldBot protection
POST /siteverify → score: 94Invisible bot protection for the logins and signups your sessions and rate limits sit behind: a 1–100 humanity score, no puzzle.
Free for most sites. No puzzles, no widget to style.Explore - Edge AssistAI answers
<script src="…/assist.js">An AI answer box for your app's help pages, grounded in your own content. One script tag on any page.
Free tier: 250 answered questions a monthExplore
Replace your ElastiCache node
Start free. Migrate from ElastiCache or stand up a fresh cache in a couple of minutes.
Free tiers hard-cap. Nothing bills until you add a card.