go-redis / redis_rate

Rate limiting for go-redis
https://redis.uptrace.dev/guide/go-redis-rate-limiting.html
BSD 2-Clause "Simplified" License
824 stars 102 forks source link

Redis Pool Timeout over 1500 rps #60

Closed aj-aman closed 3 years ago

aj-aman commented 3 years ago

The library gives redis: connection pool timeout when rps crosses over 1500. The default value for PoolTimeout is ReadTimeout + 1 which is equal to 4 seconds in my case. For instance, if I hit a particular microservice with 1800 rps for 10 seconds (That makes a total of 18K requests). The library gave redis timeout for around 5K requests. Is there any solution for this ? Apart from increasing the timeout ?