Python based microservice using Zookeeper for service discovery
1.7K
This is a very rudimentary microservice image based on python's bottle.py, using zookeeper for service discovery.
docker build -t rshriram/pymicro .
Start the microservices specifying zookeeper location and the service name. The names of services can be found in service_dict in the server.py file
docker run -d -e SERVICE_NAME=serviceA -e ZOOKEEPER=host:2181 rshriram/pymicro
Testing
curl -o - http://127.0.0.1:9080/bottle/all/view
You should receive a collated response from master, that contains responses from services A, B and C and their sub-services
Content type
Image
Digest
sha256:9277b12f1…
Size
160.6 MB
Last updated
about 11 years ago
docker pull rshriram/pymicro