I made a script that is used to update many clients. The script should be able to be ran in multiple instances.
At first Redis will retrieve all client's IDs. Then, each instances of the script will RPOPLPUSH-ing all the clients (update a client and put in the back of the list).
The script should be able to detect if new client is registered (querying to database) and need to have its ID to be put into the list/set. Hence, I need to have the set to be unique, no repeating ID.
Sorted set seems to be the solution here, but it does not have RPOPLPUSH functionality. What are my options?