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

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.

主站蜘蛛池模板: 威信县| 大邑县| 芦溪县| 昌图县| 甘德县| 昌黎县| 安宁市| 高淳县| 宣武区| 东丰县| 株洲市| 公安县| 安达市| 普安县| 大关县| 翁源县| 休宁县| 吴旗县| 乾安县| 习水县| 临颍县| 大同市| 西峡县| 延川县| 塔城市| 和田市| 罗田县| 文水县| 梁河县| 嵊州市| 明溪县| 克什克腾旗| 宜春市| 江陵县| 申扎县| 吴川市| 唐河县| 东乡| 天津市| 茌平县| 轮台县|