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

One-to-one communication microservice patterns

At an individual microservice level, the data management pattern is composed of a suite of small services, with its own local data store, communicating with a REST API or via publish/subscribe:

API Gateway is a single entry point for all clients, and tailored for them, allowing changes to be decoupled from the main microservice API, which is especially useful for external-facing services.

One-to-one request/response can be sync or async. If they are sync, they can have a response for each request. If the communication is async, they can have an async response or async notification. Async is generally preferred and much more scalable, as it does not hold an open connection (non-blocking), and makes better use of the central processing unit (CPU) and input/output (I/O) operations.

We will go into further detail on the data-management patterns later in the book, where we will be looking at how microservices integrate in a wider ecosystem.

主站蜘蛛池模板: 郑州市| 比如县| 霍州市| 当阳市| 泰安市| 玉山县| 塘沽区| 陇西县| 潢川县| 穆棱市| 昌吉市| 察隅县| 盐源县| 洞口县| 望都县| 金阳县| 桐城市| 邻水| 兰西县| 武胜县| 西畴县| 大城县| 永顺县| 大城县| 济阳县| 茌平县| 阳西县| 大英县| 蓝田县| 那坡县| 祁阳县| 岑巩县| 独山县| 夏津县| 休宁县| 铁岭县| 晋中市| 定边县| 辽阳市| 大名县| 大邑县|