- Docker and Kubernetes for Java Developers
- Jaroslaw Krochmalski
- 186字
- 2021-07-02 18:44:55
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.
- Embedded Linux Projects Using Yocto Project Cookbook
- JavaScript從入門到精通(微視頻精編版)
- LabVIEW 2018 虛擬儀器程序設計
- Java程序設計實戰教程
- 軟件界面交互設計基礎
- OpenNI Cookbook
- Bootstrap Essentials
- Building an RPG with Unity 2018
- Python時間序列預測
- Flowable流程引擎實戰
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- PHP與MySQL權威指南
- 接口自動化測試持續集成:Postman+Newman+Git+Jenkins+釘釘
- Python游戲編程項目開發實戰
- Python程序設計教程