Optimize Rack::Attack Redis calls

DRI: @jacobvosmaer-gitlab

As discussed in https://gitlab.com/gitlab-com/gl-infra/capacity-planning/-/issues/562, the way we have configured Rack::Attack in GitLab to talk to Redis is complicated and inefficient.

This issue tracks an attempt to make our use of Rack::Attack more efficient.

Status 2023-03-14

We have prepared the feature flag removal MR: gitlab-com/gl-infra/k8s-workloads/gitlab-com!2609 (merged). Once that is merged we can close this issue.

image

Edited by Jacob Vosmaer