Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson
Author:Ovais Mehboob Ahmed Khan, Nabil Siddiqui and Timothy Oleson
Language: eng
Format: epub
Publisher: Packt Publishing Pvt ltd
Published: 2021-09-23T00:00:00+00:00
Sharing dependencies using older techniques
In the n-tier architecture, each layer has a direct reference to the other layer, which makes it tightly coupled and dependent. With microservices, this is one of the anti-patterns. There are cases where one service needs to call another service to complete a transaction. In this case, the service is dependent on the other service. To overcome this challenge, you can build self-contained services.
Building self-contained services
Self-contained services help you collaborate with other services using patterns such as Saga and CQRS. Instead of making direct HTTP calls, the source service communicates with the other service over a message broker. The source service publishes a message, and the other service reads the message and responds. One approach is to keep two queues for requests and responses. That way, both services can communicate asynchronously over this channel.
The following diagram shows the collaboration between services over an asynchronous communication channel:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
AI & Machine Learning | Bioinformatics |
Computer Simulation | Cybernetics |
Human-Computer Interaction | Information Theory |
Robotics | Systems Analysis & Design |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8253)
Test-Driven Development with Java by Alan Mellor(6373)
Data Augmentation with Python by Duc Haba(6270)
Principles of Data Fabric by Sonia Mezzetta(6044)
Hadoop in Practice by Alex Holmes(5933)
Learn Blender Simulations the Right Way by Stephen Pearson(5902)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(5798)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5779)
RPA Solution Architect's Handbook by Sachin Sahgal(5194)
Big Data Analysis with Python by Ivan Marin(5167)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5097)
The Infinite Retina by Robert Scoble Irena Cronin(4881)
Pretrain Vision and Large Language Models in Python by Emily Webber(4144)
Functional Programming in JavaScript by Mantyla Dan(4014)
The Age of Surveillance Capitalism by Shoshana Zuboff(3907)
Infrastructure as Code for Beginners by Russ McKendrick(3902)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3607)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3415)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3391)
