All know that Redis has a REDIS-CLI implementation of the subscription publishing function, similar to this, if the master server data is modified, how real-time (in milliseconds) to notify each subordinate server change data? For example, 12306 of the ticket, Beijing, Guangzhou, the server in Shanghai, real-time real-time display of the main server of the remaining votes, once the ticket is completed, how can each server be notified in real-time change status? Small white one, hope enlighten
Reply content:
All know that Redis has a REDIS-CLI implementation of the subscription publishing function, similar to this, if the master server data is modified, how real-time (in milliseconds) to notify each subordinate server change data? For example, 12306 of the ticket, Beijing, Guangzhou, the server in Shanghai, real-time real-time display of the main server of the remaining votes, once the ticket is completed, how can each server be notified in real-time change status? Small white one, hope enlighten
Since you have made the master-slave configuration, the data modification of the primary server will be automatically synchronized from the server.