Skip to main content

Redis usage

In the application Redis database is currently used for the following purposes:

  1. As a storage for Sidekiq
  2. As backend storage for feature flags with Flipper
  3. As a storage for session data
  4. As a token bucket rate limiter using ratelimit gem

Current database assignment

In order to avoid key clash between different usages, we use the following database assignment:

DatabaseUsage
0Sidekiq
2Flipper
3Session Storage
4Rate Limiter

You can find connection details by searching for REDIS_URL env variable in the project or looking at file config/initializers/redis.rb.