# Research to avoid maximum memory of Redis Disable Redis Persistence: https://redis.io/topics/persistence#redis-persistence -> Redis' Pub/Sub has no persistence, and once a message has been published, it is sent only to the connected subscribed clients. Afterwards, the message is gone forever. (https://stackoverflow.com/questions/50246601/redis-pub-sub-persistence) Redis config: https://redis.io/topics/config Redis Node-Type Specific Parameters: The maxmemory parameter cannot be modified. it base on instance Redis Node-Type, for more detail [here](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html) price: https://aws.amazon.com/elasticache/pricing/ ## Summary: - Theo thiết kế hệ thống hiện tại thì mình cần disable all data persistence trong Redis. để trong quá trình chạy thì Redis sẽ không lưu lại thông tin new tutor hay new student. tránh trường hợp bị đây bộ nhớ. Hướng dẫn disable all data persistence trong Redis ở [here](https://stackoverflow.com/questions/28785383/how-to-disable-persistence-with-redis) ``` To disable all data persistence in Redis do the following: Disable AOF by setting the appendonly configuration directive to no (it is the default value) Disable RDB snapshotting by disabling (commenting out) all of the saveconfiguration directives (there are 3 that are defined by default) ``` - Maxmemory của mỗi Redis Node là tùy thuộc vào cầu hình mình mua con gì dùng. Tài liệu cấu hình các con redis [đây](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html) và giá ở [đây](https://aws.amazon.com/elasticache/pricing/) ![](https://i.imgur.com/tW9EriA.png)