- Token Bucket Algorithm
- Per-client rate limiting
- Using tollbooth as middleware
- 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;