Answer the question
In order to leave comments, you need to log in
How to get redis client id in node-redis?
I want to implement messaging between node clients only using redis, that is, clients do not communicate with each other and only know about redis in which messages will be stored. In order to prevent the race condition, I want to make a list of clients on redis, so that if the server of the generating message fails, the client following it in the list could take over this task, but stumbled over the fact that I can’t get the client id using node-redis) He needed to identify the current role of the client in the list.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question