go-pattern-examples/resiliency/07_rate_limiting/rate_limiting_test.go
2020-05-11 18:05:20 +08:00

19 lines
313 B
Go

package ratelimit
import (
"testing"
)
/*
Rate limiting is an very important mechanism
With limiting you can controll resource utilization and maintain quality of service.
Go supports rate limiting by using goroutines, channels, and tickers.
*/
func TestRateLimiting(t *testing.T) {
rateLimiting(5, 3)
}