Chapter 9 Discover Servers and Load Balance from the Client

Distributed Services with Go — by Travis Jeffery (61 / 84)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 What You Learned | TOC | Three Load-Balancing Strategies 👉

We’ve gone through the belly of a whale and built a distributed service with discovery and consensus — a real distributed service! So far we’ve focused on the servers and haven’t changed the clients beyond what gRPC gives us for free. In this chapter, we’ll work on three client features that will improve our service’s availability, scalability, and user experience. We’ll enable our client to automatically:

  • Discover servers in the cluster,
  • Direct append calls to leaders and consume calls to followers, and
  • Balance consume calls across followers.

After we’ve made these improvements, we’ll be ready to deploy!

👈 What You Learned | TOC | Three Load-Balancing Strategies 👉

Distributed Services with Go by Travis Jeffery can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.