Chapter 3

Interprocess Communication

In monolithic architectures, the communication within the components happens via function, method, or module calls and is very straightforward in most cases. When building microservices architecture, designing and implementing interprocess communication is more complex. Although there are proven techniques for managing interprocess communication in a microservices architecture, and it is not a key subject of this book, in this chapter we review some of the best practices.

Types of Interactions

Microservices typically expose their functionalities through APIs or web services. To consume the web services over the network, there are fundamentally two types of communication/interaction patterns.

Synchronous ...

Get Microservices and Containers, First edition 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.