gin-ratelimiter

command module
v0.0.0-...-5a5c698 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 5 Imported by: 0

README

Rate Limiting API in Golang for distributed sytems.

Given

You are given an external API endpoint which allows to check that given user-id does have the limit for the request on the given application or not.

Example HTTP calls

curl -X GET http://localhost:8888/rate
Request Headers:
1. user-id:<userid>
2. application-id:<application-id>

Task

Design a rate limiting application or API.

Requirements
  • The API must support multiple users and multiple application support.
  • If the HTTP status 200 means user is allowed to make call on respective application, http status should 429 when user exceeds the request for the given application.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
util

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL