All Projects → zgbgx → MicroserviceUseThriftAndZookeeper

zgbgx / MicroserviceUseThriftAndZookeeper

Licence: other
use kazoo thriftpy package and zookeeper to build a microservice demo

Programming Languages

python
139335 projects - #7 most used programming language
Thrift
134 projects

MicroserviceUseThriftAndZookeeper

use kazoo thriftpy package and zookeeper to build a microservice demo
this demo use thriftpy and kazoo to build microservice.
about thritfpy you can browse https://github.com/eleme/thriftpy
about kazoo you can browse https://github.com/python-zk/kazoo
you can use pip to install thriftpy kazoo package.
also you must install zookeeper in your machine

about code

when you start server,you will register a app in zookeeper(if the app doesn't exist),and then register a node under the app in zookeeper.
when you request server by client,you will get a random node under the app.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].