envoy
envoy copied to clipboard
Support for month, year ratelimit units
Title: Support for month, year ratelimit units
Description:
Rate limits such as 10K req/Month
, 1M req/year
are useful when the upstream has a business value (like a per month subscription) and is exposed the client via Envoy.
The existing implementation only supports the following units.
- SECOND
- MINUTE
- HOUR
- DAY
Maybe MONTH, YEAR units are not useful for local rate limiting but may useful for global rate limiting.
[optional Relevant Links:] https://github.com/envoyproxy/data-plane-api/blob/5ba669d8a54e7c4bbbba3a6445ebd1a09d9e9dc0/envoy/service/ratelimit/v3/rls.proto#L80-L95
It seems pretty ambitious to expect the same configuration to run for MONTHs or YEARs. So I'd imagine a global rate limiting will only issue shorter lived quota. cc @sergiitk @markdroth
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.