1👍
✅
You can use nd_service_registry for that, you get the list of values once, and nd_service_registry will take care of updating this list (that is in memory) whenever the values in zookeeper are updated.
So you will gaurantee that the list is always up-to-date
https://github.com/Nextdoor/ndserviceregistry
Installation and instantiation is explained in the github repo ^
Source:stackexchange.com