Skip to content

zgbgx/MicroserviceUseThriftAndZookeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

use kazoo thriftpy package and zookeeper to build a microservice demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published