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

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.

主站蜘蛛池模板: 双桥区| 海丰县| 改则县| 宜都市| 常宁市| 东莞市| 衡山县| 闻喜县| 潼关县| 饶平县| 漠河县| 紫金县| 迁安市| 安丘市| 延寿县| 聂拉木县| 黎城县| 龙泉市| 怀化市| 绍兴县| 石阡县| 三门峡市| 阿克陶县| 汨罗市| 三原县| 临江市| 垦利县| 马山县| 廉江市| 韶关市| 九龙城区| 富川| 怀集县| 彭山县| 扶风县| 泾源县| 万源市| 从化市| 昆山市| 栾城县| 察隅县|