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

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.

主站蜘蛛池模板: 巴林左旗| 佳木斯市| 建昌县| 蕲春县| 北辰区| 绥江县| 余干县| 拜城县| 舒城县| 波密县| 故城县| 鄱阳县| 兴义市| 会理县| 河东区| 太仆寺旗| 缙云县| 临清市| 桓台县| 三门峡市| 清丰县| 肥东县| 盖州市| 花莲县| 芒康县| 仪征市| 辉南县| 南汇区| 满城县| 通河县| 河北省| 沙坪坝区| 余干县| 托里县| 富顺县| 孝义市| 桃源县| 奉化市| 富宁县| 宝清县| 万盛区|