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

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.

主站蜘蛛池模板: 蒙自县| 剑阁县| 离岛区| 保康县| 贵州省| 耿马| 阳城县| 车险| 灵寿县| 吕梁市| 琼中| 平陆县| 永靖县| 宾阳县| 齐河县| 青冈县| 迁西县| 盐亭县| 五家渠市| 察哈| 蕉岭县| 兴化市| 同心县| 田林县| 余姚市| 陇南市| 上高县| 紫阳县| 梁山县| 卓尼县| 罗源县| 巩留县| 集安市| 额尔古纳市| 三都| 铁力市| 鹤山市| 中山市| 云林县| 永和县| 庆安县|