I am now designing Redis as one of the registration centers of the RPC framework I developed. Now I want to find some development ideas for the dynamic detecting online and offline node.
If I want to dynamically monitor the nodes online, can I set up a thread to retrieve the data from Redis every two seconds?
How can I ensure that each time I check the nodes, I know which ones are already online and which ones are newly online?