Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement messaging-level rate limiting #19

Open
6 tasks
gnarea opened this issue Apr 6, 2020 · 0 comments
Open
6 tasks

Implement messaging-level rate limiting #19

gnarea opened this issue Apr 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@gnarea
Copy link
Member

gnarea commented Apr 6, 2020

To prevent abuse, we should rate-limit the operations from private gateways across underlying networks (i.e., regardless of whether the message was received via the Internet or couriers).

The following limits should be implemented, with the concrete parameters defined via configuration by the operator:

  • Number of parcels to or from any given private gateway.
    • X parcels per gateway per minute.
    • Y parcels per gateway per hour.
    • Z parcels per gateway per day.
  • Ingress and egress network bandwidth per private gateway.
    • X MiB per gateway per hour.
    • Y MiB per gateway per day.
    • Z MiB per gateway per week.

System and software stack

Use rate-limiter-flexible with a Redis backend.

Related issues

@gnarea gnarea added the enhancement New feature or request label Apr 6, 2020
@gnarea gnarea added this to the Production release milestone Apr 6, 2020
@gnarea gnarea changed the title Implement binding-level throttling to prevent abuse Implement binding-specific throttling to prevent abuse Apr 6, 2020
@gnarea gnarea changed the title Implement binding-specific throttling to prevent abuse Implement binding-level rate limiting to prevent abuse Jul 18, 2021
@gnarea gnarea changed the title Implement binding-level rate limiting to prevent abuse Implement messaging-level rate limiting to prevent abuse Jul 18, 2021
@gnarea gnarea changed the title Implement messaging-level rate limiting to prevent abuse Implement messaging-level rate limiting Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant