ABSTRACT

This chapter provides an overview of various architectural elements that constitute Microservices architecture (MSA), and introduces one of the most important architectural elements: communication models for MSA. It aims to understand how services interact with one another synchronously and asynchronously using standard architectures, protocols, and message brokers. The chapter presents an overview of the various architectural elements of MSA and design principles of microservices. It describes two major communication models, namely the synchronous communication model and the asynchronous communication model. In asynchronous communication, the sender and receiver are offline, and it is messaged based. Advanced Message Queuing Protocol is commonly used for message-oriented asynchronous communication. In synchronous communication, the sender and receiver should be connected with each other during communication. HTTP is a synchronous protocol in which a client sends a request and waits for a response from the server.