Redis subscribe while scaling microservices. How to make only one of it process the request?

I have API server as microservice with 3 replicas. I’m using redis subscribe in my api server. On message received, all the replicas are processing the published message. How can i stop three of them from processing the message, and make only one of the replicas process the message.

Thanks in advance.

Source: Docker Questions