Book Image

Distributed Computing with Go

By : V.N. Nikhil Anurag
Book Image

Distributed Computing with Go

By: V.N. Nikhil Anurag

Overview of this book

Distributed Computing with Go gives developers with a good idea how basic Go development works the tools to fulfill the true potential of Golang development in a world of concurrent web and cloud applications. Nikhil starts out by setting up a professional Go development environment. Then you’ll learn the basic concepts and practices of Golang concurrent and parallel development. You’ll find out in the new few chapters how to balance resources and data with REST and standard web approaches while keeping concurrency in mind. Most Go applications these days will run in a data center or on the cloud, which is a condition upon which the next chapter depends. There, you’ll expand your skills considerably by writing a distributed document indexing system during the next two chapters. This system has to balance a large corpus of documents with considerable analytical demands. Another use case is the way in which a web application written in Go can be consciously redesigned to take distributed features into account. The chapter is rather interesting for Go developers who have to migrate existing Go applications to computationally and memory-intensive environments. The final chapter relates to the rather onerous task of testing parallel and distributed applications, something that is not usually taught in standard computer science curricula.
Table of Contents (11 chapters)

Running Goophr with docker-compose

Now that we have everything in place, let's start the complete application:

$ docker-compose up --build 
Building a_m_librarian 
Successfully built 31e0b1a7d3fc 
Building n_z_librarian 
Successfully built 31e0b1a7d3fc 
Building others_librarian 
Successfully built 31e0cdb1a7d3fc 
Building file_server 
Successfully built 244831d4b86a 
Building concierge 
Successfully built ba1167718d29 
Starting goophr_a_m_librarian_1 ... 
Starting goophr_file_server_1 ... 
Starting goophr_a_m_librarian_1 
Starting goophr_n_z_librarian_1 ... 
Starting goophr_others_librarian_1 ... 
Starting goophr_file_server_1 
Starting goophr_n_z_librarian_1 
Starting goophr_others_librarian_1 ... done 
Starting goophr_concierge_1 ... 
Starting goophr_concierge_1 ... done 
Attaching to goophr_a_m_librarian_1, goophr_n_z_librarian_1, goophr_file_server_1...