How to fix the “connection pool timeout” error in Go Redis?
My project involved microservices architecture, each written in Golang. All of those microservices creates individual clients (in the beginning) of a common Redis hosted on a separate node in K8s. We use go-redis library for this purpose. Now, while creating the Redis client, we don’t specify any option except the host:port address and the pool size for each client in microservice is 10 (which is the default one).
Here’s the code for that: