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

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.

主站蜘蛛池模板: 二手房| 锡林浩特市| 景洪市| 绥江县| 交口县| 肃南| 五大连池市| 永平县| 嘉定区| 山阴县| 新平| 四川省| 五峰| 英德市| 涞水县| 南充市| 会泽县| 合肥市| 九江市| 湘潭县| 桂平市| 大足县| 长寿区| 湄潭县| 顺昌县| 大田县| 神池县| 福海县| 德阳市| 邢台市| 丹凤县| 郴州市| 高安市| 柯坪县| 闻喜县| 东海县| 华容县| 博白县| 晋州市| 特克斯县| 岳西县|