Redis
Redis for caches, sessions and queues.
Choose one node, one writer with read copies, or a cluster that splits your data across nodes. Only your own services can reach it.
- 3
- Modes
- Up to 10
- Replicas
- Private
- Not on the internet
- 1s
- Billing unit
Three ways to run it
Pick the mode that fits.
You choose the mode when you create the service. Standalone is the cheapest and is enough for a cache.
Standalone
One node. Good for caching and for development.
Replication
One node takes writes and the others hold read copies. For read-heavy work that has to survive a node failing.
Cluster
Your data is split across several nodes, each with a follower. For data too large for one node.
Connection details in the console
The address and password are in the service's Settings tab once it is running.
Private by default
Redis is only reachable from services in the same environment, over the private network.
Sized to your data
Redis keeps data in memory. Give it enough memory for the data you use most, or it will start removing keys.
How it works
Add Redis to a project.
Create it
Pick a mode, and for replication or cluster, how many replicas.
Apply
Review the change and deploy it. The connection details appear once it is running.
Connect
Use any Redis client with the address and password from the Settings tab.
$ edge service create --name cache --type redis \
--storage 10 --mode standalone
✓ Created service cache
$ edge deploy up cache
✓ Deployment started
Pricing
Billed on vCPU and memory.
Every node is billed at the same rates as a container. In cluster mode each node has a follower, so a 3-node cluster is 6 nodes on your bill.
- vCPU₦0.0096 / vCPU / secondPer node
- Memory₦0.0048 / GB / secondPer node
Example
1 node · 1 vCPU · 1 GB
₦37,843 / month
Before VAT, running all month. Change it in the estimator.
Estimate your costQuestions
Common questions
- Which mode should I start with?
- Standalone, unless losing the cache for a moment would cause a real problem. You can create a new service in another mode later.
- Can I reach it from my laptop?
- Not directly. Redis is only reachable from inside your environment, which keeps it off the internet.
- What happens when memory is full?
- Redis starts removing keys to make room. Give it more memory if that happens more than you want.
- Why does a cluster cost more than its node count?
- Each node in a cluster has a follower that takes over if it fails. Both are running, so both are billed.
Works well with