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

Separation of concerns

First of all, each microservice can be developed independently by a separate team. For instance, building a reservation service can be a full project on its own. The team in charge can make it in whatever programming language and database, as long as it has a well-documented HTTP API.

That also means the evolution of the app is more under control than with monoliths. For example, if the payment system changes its underlying interactions with the bank, the impact is localized inside that service, and the rest of the application stays stable and is probably unaffected.

This loose coupling improves the overall project velocity a lot, as we apply, at the service level, a philosophy similar to the single responsibility principle.

The single responsibility principle was defined by Robert Martin to explain that a class should have only one reason to change; in other words, each class should provide a single, well-defined feature. Applied to microservices, it means that we want to make sure that each microservice focuses on a single role.

主站蜘蛛池模板: 普安县| 黑山县| 武汉市| 南阳市| 阿鲁科尔沁旗| 青龙| 原阳县| 达州市| 高陵县| 玉田县| 涟源市| 策勒县| 岳池县| 泰顺县| 通辽市| 荣成市| 兰西县| 图木舒克市| 佛冈县| 邛崃市| 张掖市| 临湘市| 龙海市| 淄博市| 梨树县| 台安县| 平昌县| 洱源县| 开鲁县| 增城市| 江山市| 丰台区| 衡南县| 山阴县| 金华市| 大竹县| 乌拉特后旗| 长春市| 双城市| 灵武市| 木兰县|