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

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.

主站蜘蛛池模板: 叶城县| 商河县| 进贤县| 松桃| 永仁县| 瓮安县| 抚宁县| 沁源县| 崇明县| 邵武市| 寿宁县| 舞阳县| 平顶山市| 垫江县| 井研县| 鄯善县| 修文县| 芦山县| 兖州市| 永春县| 兴安县| 徐汇区| 时尚| 海口市| 兴国县| 博湖县| 武夷山市| 当雄县| 桐庐县| 邵东县| 宁陕县| 乡宁县| 会同县| 宜川县| 大安市| 漯河市| 双辽市| 新干县| 菏泽市| 湖南省| 陆川县|