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

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.

主站蜘蛛池模板: 嵩明县| 平遥县| 武夷山市| 隆化县| 衡东县| 灌南县| 苍梧县| 正镶白旗| 焉耆| 类乌齐县| 克拉玛依市| 微山县| 正宁县| 吉隆县| 徐州市| 阜宁县| 延川县| 台州市| 漯河市| 大埔区| 普洱| 内丘县| 沈阳市| 贵德县| 越西县| 汶川县| 青冈县| 巴林左旗| 临清市| 陈巴尔虎旗| 绿春县| 绥化市| 原平市| 拉萨市| 老河口市| 新巴尔虎右旗| 尉氏县| 高雄市| 刚察县| 莱芜市| 大埔县|