Redis usage
In the application Redis database is currently used for the following purposes:
- As a storage for Sidekiq
- As backend storage for feature flags with Flipper
- As a storage for session data
- 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:
Database | Usage |
---|---|
0 | Sidekiq |
2 | Flipper |
3 | Session Storage |
4 | Rate Limiter |
You can find connection details by searching for REDIS_URL
env variable in the project or looking at file config/initializers/redis.rb
.