官术网_书友最值得收藏!

Messaging and contracts

In monolithic applications, messaging between components is mostly achieved using function calls, whereas for microservices, it is achieved using lightweight messaging systems, often HTTP(S). Using a lightweight messaging system is one of the most promising features of microservices and makes it easier to adopt and scale, as compared to service-oriented architecture (SOA) that uses a complex messaging system with multiple protocols. Microservices are more about keeping the endpoints smart and the communication channels as simple as possible.

In a microservices architecture, often multiple microservices need to interact with each other to achieve a particular task. These interactions can be either direct, via request-response-based (https://en.wikipedia.org/wiki/Request-response) communication, or through a lightweight message-oriented middleware (MOM) (https://en.wikipedia.org/wiki/Message-oriented_middleware). Direct messaging is synchronous, that is, the requester waits for the response to be returned, whereas a message-oriented middleware is primarily used for asynchronous communication.

主站蜘蛛池模板: 平昌县| 石阡县| 平远县| 花莲市| 门头沟区| 突泉县| 乐都县| 汕尾市| 任丘市| 潞西市| 上虞市| 卢氏县| 正安县| 庆城县| 辽阳市| 商城县| 雅安市| 徐水县| 山西省| 乐平市| 蒙阴县| 进贤县| 紫云| 大名县| 丰宁| 黄梅县| 隆安县| 桓台县| 宝山区| 滦南县| 庆阳市| 抚顺县| 灵武市| 郧西县| 湟源县| 大庆市| 当涂县| 比如县| 甘德县| 昆明市| 历史|