Chapter 5. Service Discovery and Load Balancing Microservices

In this chapter, you will learn how to implement service discovery and load balancing in microservices using Zookeeper and Consul. We will cover the following recipes:

  • Setting up Zookeeper using Docker
  • Load-balancing microservices using Zookeeper
  • Setting up Consul using Docker
  • Implementing service discovery using Spring Cloud Consul
  • Load-balancing your microservice using Spring Cloud Consul
  • Load-balancing your microservices using Nginx and Consul
  • Load-balancing your microservice using Marathon LB

Introduction

When you break down your monolithic application to several focused microservices, you will have to find an efficient way to locate your services; moreover, services will have to communicate ...

Get Microservices Deployment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.