Skip to content

Cache Flipper feature flags in L1 and L2 caches

Stan Hu requested to merge sh-cache-flipper-checks-in-memory into master

In gitlab-com/gl-infra/production#928 (closed), we saw a significant amount of network traffic and CPU usage due to Redis checking feature flags via Flipper. Since these flags are hit with every request, the overhead becomes significant. To alleviate Redis overhead, we now cache the data in the following way:

  • L1: A thread-local memory store for 1 minute
  • L2: Redis for 1 hour
Edited by Stan Hu

Merge request reports