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

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.

主站蜘蛛池模板: 延长县| 临西县| 滨海县| 新竹县| 缙云县| 临沂市| 衡东县| 淮阳县| 寻乌县| 年辖:市辖区| 房山区| 镇康县| 丁青县| 驻马店市| 理塘县| 余干县| 香河县| 白山市| 布尔津县| 广昌县| 丰原市| 平原县| 武定县| 和顺县| 灵川县| 天祝| 乳山市| 惠水县| 阿荣旗| 柳江县| 贡觉县| 湟中县| 屯昌县| 比如县| 板桥市| 石屏县| 拉孜县| 忻城县| 屏边| 赤城县| 扬中市|