Public Repository

Last pushed: 2 years ago
Short Description
Python based microservice using Zookeeper for service discovery
Full Description

This is a very rudimentary microservice image based on python's bottle.py, using zookeeper for service discovery.

Building from source

docker build -t rshriram/pymicro .

Deploying the setup

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

Docker Pull Command
Owner
rshriram

Comments (0)