T
Twenty4mo ago
Honza

Is the redis instance used just for caching?

I want to add persistant storage to my redis container. In case my server goes off. So the question is if the redis instance is used just for chache or is it handling some other tasks? Use case | Persist data? Pure cache (e.g. page caching) | ❌ No Queue, pub/sub, shared state | ✅ Yes Analytics / session storage | ✅ Usually Performance is #1 priority | ❌ No Fault-tolerant system | ✅ Yes I want to make my twenty fault tolerant. Because now it seems it's used just for cache?
yml

redis:
image: redis
restart: always
command: ["--maxmemory-policy", "noeviction"]
yml

redis:
image: redis
restart: always
command: ["--maxmemory-policy", "noeviction"]
1 Reply
ɃØĦɆᵾS
ɃØĦɆᵾS4mo ago
Twenty uses Redis as a cache but also for queueing different things like synchronized messages/calendars, workflows, webhooks, etc. (you can check it using keys * command in redis-cli), and it has persistence enabled (config get save) but not AOF persistence

Did you find this page helpful?