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

Understanding the aspect

The first step is to understand the functioning of the microservice to know what kind of communication best applies. Take, for example, the microservice recommendations. It is a microservice that has no direct communication with the customer, but traces a user's profile. No other application point expects an immediate response arising from this microservice. Thus, the communication model for this microservice is asynchronous.

Very well! We saw that RecommendationService is not a synchronous case; then what is?

The answer is UserService. When a user enters a given API that communicates with UserService, this user sees the change immediately. When a microservice requests some information on the requested UserService, we want the most current information possible and immediately. Yes, UserService is a service where synchronous communication can be applied.

But how can we create a good layer of synchronous communication between microservices? The answer is right in the next section.

主站蜘蛛池模板: 金湖县| 湖南省| 张掖市| 镇远县| 昌乐县| 江山市| 望奎县| 金昌市| 阿荣旗| 鄂温| 吉林省| 尼勒克县| 玉林市| 大港区| 阳江市| 通道| 香港 | 岑溪市| 漳州市| 揭西县| 老河口市| 克什克腾旗| 镇雄县| 曲松县| 茶陵县| 阿拉尔市| 定安县| 平和县| 山阳县| 望城县| 临漳县| 贵溪市| 柘城县| 眉山市| 永善县| 张家界市| 莎车县| 山阴县| 定远县| 长葛市| 呼和浩特市|