Redis - alphagov/notifications-manuals GitHub Wiki
We run Redis using Amazon Elasticache.
Redis is used predominantly as a caching layer. Our apps are able to query redis first for an item in the database, and only if it isn't there do they need to retrieve it from the database. If our apps do retrieve the item from the database, they will also add it to redis for future calls.
Not everything in our database is stored in Redis.
We also use Redis for rate limting.
You can purge data in Redis by connecting to redis and running the FLUSHALL [ASYNC | SYNC]
command.
Configuration
Our Redis instance is configured in our Terraform code.
Connecting to Redis
Logging
Logs are found in AWS Cloudwatch, in the /aws/elasticache/notify-redis/engine-log
and /aws/elasticache/notify-redis/slow-log
log groups.
Monitoring and alerting
Monitoring and alerting is done via cloudwatch
Redis users
We do not have any redis. We have a single access password.
Backups
No backups are available. Redis is purely used for caching.