The main reasons why we chose it over other alternatives are:
- It supports clustering, allowing to distribute data accross nodes, granting horizontal autoscaling capabilities.
- It complies with several certifications from ISO and CSA. Many of these certifications are focused on granting that the entity follows best practices regarding secure cloud-based environments and information security.
- It can exist within the same VPC as AWS-hosted applications like our ASM.
- As it exists within the same VPC as our ASM, cached data only has to travel within the local network, increasing overrall application performance.
- It supports complex data types, which considerably simplifies mapping data from applications to it.
- It supports local deployments, allowing us to run Redis on local machines. This is especially useful for ephemeral environments.
- It can be fully managed as code using Terraform.
- It supports a wide range of cache node sizes, which come preconfigured and are very easy to set.
- It supports VPC security groups, allowing to specify networking inbound and outbound rules for IP addresses, ports and other security groups.
- It quickly adds support to the newest Redis versions.
- Redis cluster performance can be monitored via CloudWatch.
- AWS DynamoDB Accelerator (DAX): It is a cache that sits between DynamoDB and the application, allowing to cache data without having to maintain an extra layer of complexity in your application. It does not support local deployments, its query cache is not granular, generating inconsistencies when data changes via granular operations, it has a poorly maintained client.
- AWS DynamoDB (No cache): We are considering removing the entire extra layer of complexity that cache brings with it and only using DynamoDB, as it already provides very good performance. This could considerably simplify our ASM architecture by slightly reducing its performance.
We use Redis for:
- You can access the Redis console after authenticating on AWS.
- Any changes to Redis infrastructure must be done via Merge Requests by modifying its Terraform module.
- To learn how to test and apply infrastructure via Terraform, visit the Terraform Guidelines.
- Please adhere to our current design when modifying the Redis logic, that way we can keep a consistent architecture.
- When working on our ASM,
sometimes you will need
to invalidate Redis cache,
you can do this
by using the
invalidateCachemutation. Please visit our API Documentation section for more information.