Alibaba cloud Q & A 2022-02-13 06:12:41 阅读数:814
be based on Zookeeper How to realize data publishing / subscribe ？
· data storage ： Put the data （ Configuration information ） Store in Zookeeper A data node on
· Data acquisition ： The application starts the initialization node from Zookeeper Data nodes read data , And register a data change on this node Watcher
· Data changes ： When changing data , to update Zookeeper Corresponding node data ,Zookeeper Data change notification will be sent to each client , After receiving the notice, the client can read the changed data again .
copyright：author[Alibaba cloud Q & A]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130612390503.html