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

Direct communication alerts

Direct communication between microservices may result in a problem known as Death Star. The Death Star is an anti-pattern where there is communication between the recursion microservices, and making progress becomes extremely complicated or expensive for a product.

With the communication tools we saw previously, it is very easy to establish conversations between microservices with low latency. The common anti-pattern is to allow microservices to exchange messages with each other freely, if they have no information to process a specific task.

This is where we have an alert. If a microservice always needs to communicate with another to complete a task, it is a high coupling signal and we have failed in our DDD process. This engagement results in a Death Star. For clarity, consider the following scenario.

Imagine that we have four microservices. The microservices are A, B, C, and D. A request was made asking for information about A, but it does not have all the information content. This content is in B and C, but C does not have all of the information, so it asks D. B is not able to complete the task assigned to him and asks for data from C. However, D needs the data in A. The following is a diagrammatic representation of this process:

In the end, a simple request generates a very complex flow, where any failure is difficult to monitor. Apparently, it may seem natural, but over time and with the creation of new microservices, it makes this ecosystem unsustainable.

The microservices must be sufficiently well defined in their respective responsibilities for this type of messaging to be minimized.

No matter how fast the communication and serialization information is, if the product is not humanly intelligible and understandable, it will be very difficult to maintain the ecosystem of microservices, especially with regards to error control.

主站蜘蛛池模板: 黄平县| 乐至县| 昌吉市| 金秀| 南江县| 壤塘县| 平江县| 岳阳县| 陆河县| 高要市| 麻城市| 平塘县| 南阳市| 天台县| 万年县| 登封市| 安多县| 陇川县| 彭泽县| 阜康市| 浦北县| 江都市| 新和县| 仁怀市| 宜春市| 新河县| 保山市| 诸城市| 唐山市| 奉新县| 普宁市| 长乐市| 雷波县| 华蓥市| 广南县| 蓝田县| 隆德县| 太保市| 云和县| 依安县| 上饶县|