Skip to content

Add API request rate limiting #20

@dosco

Description

@dosco

What would you like to be added:

Add support to configure either a local or centralized rate limiting for the query endpoint. Rate limits should be at the IP, User ID and maybe at a higher global level. This change will require new config options and mostly be limited to the serv package.

Possible options
https://godoc.org/golang.org/x/time/rate
https://github.com/uber-go/ratelimit

Why is this needed:

APIs need rate limiting to prevent a single client from overloading the DB and help protect against any sort of distributed resource consumption attack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions