Skip to content

thegeorgenikhil/ratelimit-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Rate Limit Methods

  • Token Bucket Algorithm
  • Per-client rate limiting
  • Using tollbooth as middleware

Useful Links

To Run

  • cd into the project directory
  • run go run main.go
  • in another terminal, run
curl -i https://localhost:8080/ping;
curl -i https://localhost:8080/ping;
curl -i https://localhost:8080/ping;
curl -i https://localhost:8080/ping;
curl -i https://localhost:8080/ping;
curl -i https://localhost:8080/ping;

About

Ways to rate limit go applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages