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

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.

主站蜘蛛池模板: 成都市| 大余县| 武平县| 随州市| 潜江市| 南华县| 双牌县| 汝州市| 高雄县| 施秉县| 揭西县| 建瓯市| 藁城市| 林周县| 厦门市| 古蔺县| 藁城市| 北票市| 安顺市| 徐州市| 营山县| 门源| 阳曲县| 信丰县| 兴仁县| 盐津县| 科技| 读书| 甘泉县| 中山市| 威海市| 泾阳县| 尼勒克县| 阿克| 东明县| 宾川县| 墨江| 德州市| 榕江县| 青海省| 福海县|