Purpose of Redis
Redis is an in-memory data structure store, and is used as a database, cache, and message broker. Redis functions as an in-memory cache for Cherwell Server Farms.
By connecting every web server to the same Redis, the applications can share state and collaborate. When a server performs an operation, it saves the state of the current User or application to Redis. In a scenario where a User is bounced from one server to the another, each server can pick up from where the previous server left off by retrieving the latest state from Redis.
- When the request starts, in order to retrieve session from Redis.
- When the request ends, in order to save session to Redis.