AWS Elasticache
Elasticache is a managed caching service offered by Amazon Web Services (AWS), and it can be a good option when using BullMQ within the AWS infrastructure.
Here are some points to consider when using Elasticache with BullMQ within AWS:
- Use the standard cache-nodes setup (i.e. not the serverless version, as serverless for the moment uses an incompatible maxmemory-policy)
- In order to access your Elasticache instance you will need to create a security group that allows the instance to be accessible to the services running BullMQ instances.

1. Go to Elasticache > Parameter Groups and click on Create.
2. Fill name, description, and Family, at the time of writing redis7 is the newest and the recommended one.
<figure><img src="../../.gitbook/assets/image (1).png" alt=""><figcaption></figcaption></figure>
- Click on "Create". Then find the parameter group in the list. Click on Edit parameter values and then search for maxmemory-policy:
%20(1).CbK1yiV2.png)
- Change the value to "noeviction":
.CjglkbiL.png)
- Save changes. Now you can go to your elasticache cluster and change the parameter group to your custom group. Just find your instance, click on modify and go to cluster settings where you can change the parameter group:
.CtbDlTn-.png)
- Preview changes and Modify. After this your cluster is ready to be used with BullMQ.