July 2019
Intermediate to advanced
502 pages
14h
English
In Chapter 2, Getting Started with Microservices, we discussed the client library principle of microservices. A microservice that talks to another microservice ideally utilizes a client library that's exposed through an interface. Go kit provides excellent support and guidelines for writing such client libraries. The using microservice simply receives an interface. It is actually totally agnostic to the fact it is talking to another service. For (almost) all intents and purposes, the remote service could be running in the same process. This is excellent for testing or for refactoring services and breaking a slightly too large service into two separate services.
Go kit has client endpoints that are similar to service ...