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

An introduction to microservices

By definition, microservices, also known as the Microservice Architecture (MSA), is an architectural style and design pattern which says that an application should consist of a collection of loosely-coupled services. This architecture decomposes business domain models into smaller, consistent pieces implemented by services. In other words, each of the services will have its own responsibilities, independent of others, each one of them will provide a specific functionality.

These services should be isolated and autonomous. Yet, they of course need to communicate to provide some piece of business functionality. They usually communicate using REST exposures or by publishing and subscribing events in the publish/subscribe way.

The best way of explaining the reasoning behind the idea of microservices is to compare them with an old, traditional approach for building large applications, the monolithic design.

Take a look at the following diagram presenting the monolithic application and distributed application consisting of microservices:

As you can see on the previous diagram, the monolithic application differs totally from an application created using the microservices architecture. Let's compare the two approaches and point out their advantages and flaws.

主站蜘蛛池模板: 巴林左旗| 华池县| 同仁县| 宝应县| 五寨县| 合阳县| 洪湖市| 虎林市| 探索| 胶州市| 荃湾区| 宜都市| 鹤庆县| 莲花县| 共和县| 浦江县| 托克逊县| 开阳县| 武山县| 鲁山县| 永新县| 青海省| 右玉县| 柳林县| 洛宁县| 沅陵县| 迭部县| 大丰市| 开封市| 绥中县| 手机| 武功县| 东阳市| 承德县| 阿克| 钟山县| 马鞍山市| 永城市| 固阳县| 巴塘县| 巴中市|