Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Simple demo of how consul service discovery works within Node and Docker.
- In this example there are 3 containers: master and 2 workers.
- When master receives a request from a client, it leverages consul to find all workers in the cluster.
- After that it performs GET request to a random worker and pipes it's response to client.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement