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

Light weight communication

In monolithic systems, many projects fail to be successful in the move to microservices architecture just because of problems in the communication layer. Of course, when we talk about containers, distributed applications, and business domain partitioning, some terms may amaze you—these terms are latency and data translation.

Communication in a monolithic application is made up of internal components, such as methods, functions, attributes, and parameters. In this ecosystem, latency and data translation are irrelevant. In the world of microservices, they are topics that must be thoroughly analyzed.

There are two methods of communication between microservices:

  • Synchronous
  • Asynchronous

It is important to understand how each of these forms works. Let's see how:

Have a look at the preceding table; the type of communication adopted will vary according to the need of the domain. For direct and sequential systems, a synchronous communication approach may be more appropriate. In the case of tasks that do not need an immediate response, the asynchronous approach can be the most appropriate.

主站蜘蛛池模板: 怀宁县| 怀仁县| 遂宁市| 会宁县| 元朗区| 阿勒泰市| 洛南县| 石棉县| 上林县| 德庆县| 郸城县| 保山市| 温州市| 上饶市| 平度市| 孙吴县| 黄大仙区| 贵定县| 吉隆县| 永安市| 临漳县| 固原市| 平安县| 新昌县| 双鸭山市| 常州市| 安平县| 台东县| 长宁区| 望都县| 绥芬河市| 武义县| 县级市| 罗山县| 陆河县| 广元市| 虹口区| 文登市| 玛曲县| 太和县| 独山县|