O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Project structure

As per the previous diagram, we have designed our application to consist of one instance of Goophr Concierge and three instances of Goophr Librarian. In order to keep our code manageable, we will split the source code into two main entities and a docker-compose file at the root level:

  • Concierge
  • Librarian
  • docker-compose.yaml

In Chapter 1, Developer Environment for Go, we discussed how to create and run docker images. The docker run ... works great for single images, but it might get complicated when we want to create a network of docker images that interact with one another. In order to keep the setup simple, we will make use of docker-compose (https://docs.docker.com/compose/overview/). In a nutshell, docker-compose requires ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required