Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Simple demo of how consul service discovery works within Node and Docker.
  2.  
  3. In this example there are 3 containers: master and 2 workers.
  4. When master receives a request from a client, it leverages consul to find all workers in the cluster.
  5. 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