© Thomas Hunter II 2017

Thomas Hunter II, Advanced Microservices , 10.1007/978-1-4842-2887-6_4

4. Service Discovery

Thomas Hunter II

(1)San Francisco, California, USA

Service discovery is the process of taking the name of a service as an input and getting a network location of an instance of that service as an output. Discovery is the backbone of any organization practicing highly available microservices.

To achieve high availability, you need to run many instances of each microservice. Ideally, you scale the number of services as load increases, and you’re always running a few spares in case an instance fails or there’s an unanticipated spike in traffic. Instances need to be able to find and communicate with other instances, and managing all these ...

Get Advanced Microservices: A Hands-on Approach to Microservice Infrastructure and Tooling 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.