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

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.

主站蜘蛛池模板: 庆阳市| 金川县| 田阳县| 卢龙县| 北京市| 荣成市| 怀来县| 澳门| 临澧县| 台东县| 永吉县| 苏尼特右旗| 湖南省| 汝州市| 长宁区| 大化| 三穗县| 五寨县| 陆河县| 灌云县| 仪陇县| 衡南县| 河北区| 宜州市| 水富县| 霍邱县| 修文县| 凉城县| 团风县| 环江| 仙游县| 湄潭县| 婺源县| 申扎县| 宜都市| 清涧县| 红桥区| 阜新| 南和县| 额尔古纳市| 恩平市|