1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/website/docs/reference
Christopher Kolstad b06613d1b0
feat: Adds rate limiting to metric POST endpoints (#5075)
### What
The heaviest requests we serve are the register and metrics POSTs from
our SDKs/clients.
This PR adds ratelimiting to /api/client/register, /api/client/metrics,
/api/frontend/register and /api/frontend/metrics with a default set to
6000 requests per minute (or 100 rps) for each of the endpoints.

It will be overrideable by the environment variables documented.

### Points of discussion
@kwasniew already suggested using featuretoggles with variants to
control the rate per clientId. I struggled to see if we could
dynamically update the middleware after initialisation, so this attempt
will need a restart of the pod to update the request limit.
2023-10-18 13:00:44 +02:00
..
api/legacy/unleash
deploy feat: Adds rate limiting to metric POST endpoints (#5075) 2023-10-18 13:00:44 +02:00
integrations
sdks
activation-strategies.md
api-tokens-and-client-keys.mdx
archived-toggles.md
change-requests.md
custom-activation-strategies.md
dependent-features.md docs: dependent features (#5058) 2023-10-18 08:57:04 +02:00
environments.md
event-log.md
event-types.mdx
feature-flag-naming-patterns.mdx
feature-toggle-types.md
feature-toggle-variants.md
feature-toggles.mdx
front-end-api.md
impression-data.md
login-history.md docs: add feature availability troubleshooting guide (#4989) 2023-10-10 11:17:06 -05:00
maintenance-mode.mdx
network-view.mdx
notifications.md
playground.mdx docs/video embed, academy video embed fixes (#5005) 2023-10-11 14:20:16 -05:00
project-collaboration-mode.md
projects.md
public-signup.mdx
rbac.md
segments.mdx
service-accounts.md docs: add feature availability troubleshooting guide (#4989) 2023-10-10 11:17:06 -05:00
sso.md
stickiness.md
strategy-constraints.md docs/video embed, academy video embed fixes (#5005) 2023-10-11 14:20:16 -05:00
strategy-variants.md
tags.md
technical-debt.md
unleash-context.md
whats-new-v4.md