5 Interservice communication

This chapter covers

  • Understanding the internals of gRPC client-server connection strategies
  • How to depend on a client module to access a specific service
  • Tips and tricks for client configuration of a particular service
  • Handling errors

In the previous chapter, we implemented a gRPC service for the Order service. In this chapter, we will implement a gRPC client for that service to show how underlying communication works in microservice architecture. You can see the high-level picture of interservice communication in figure 5.1.

Figure 5.1 The Order service uses a Payment service gRPC stub.

In previous chapters, we ...

Get gRPC Microservices in Go 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.