문제

I was wondering if someone could point me to an example of using kazoo within a Django application. My use case is to use kazoo to retrieve a list of values, and process them, within a request cycle.

Any pointers would be much appreciated.

도움이 되었습니까?

해결책

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 ^

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top