- Mastering Spring Boot 2.0
- Dinesh Rajput
- 418字
- 2021-06-25 21:29:22
Microservices architecture
Microservices is not a new word, the term was coined in 2005 by Dr Peter Rodgers. It was first called micro web services and based on SOAP. The term microservice is meant to convert large software into a number of pieces. Each piece focuses on a particular point of business. It is just like a little service with a microscopic scope for a specific target, compared to existing monolithic applications where the scope is very broad.
So, it pides the monolithic application into smaller microservices and manages and deploys these services as a single business goal; communication across these distributed services is a difficult task for developers. Use Spring Cloud to simplify integration between these distributed services.
Nowadays, industries are working on new functionality implementations and innovations every day or every week, constantly growing the application to a large size. A lot of complexity and coupling between various systems makes it difficult to change anything in the application. So various modules' teams must take care regarding impact on various parts of the application, either for large changes or the tiniest changes.
Let's look at the following diagram of a monolithic application without the microservices architecture:

As you can see, the preceding diagram shows, the Banking Application using a monolithic architecture without microservices. It's an all-in-one application, which means all modules, such as AccountService, CustomerService, and Notification Service, are in a single application.
Suppose you change CustomerService, you have to ensure the functionality of other modules' notification and account services is not impacted by the style of the architecture.
Let's pide this monolithic application into separate pieces according to the modules, and create with the microservice architecture. See the following diagram:

As you can see, we've now created the Banking Application with the microservices-based architecture. Here, the main application has been pided in a set of sub-applications, called microservices.
As core Spring concepts are applied to application architecture, Spring enables a separation of concerns between the application components, such as loose coupling, which means the effect of the change is isolated, and tight cohesion, which means the code performs a single, well-defined task. Similarly, microservices exhibit the same strengths, that is, loose coupling between the collaborating services of the application, and you can change these services independently. Another strength is tight cohesion, which means an application service that deals with a single view of data; it also known as Bounded Contexts or Domain-driven design (DDD).
Let's look at the following benefits of the microservice architecture.
- 高效能辦公必修課:Excel數(shù)據(jù)處理
- Word Excel PPT 2019 商務(wù)辦公全能一本通(全彩版)
- Word/Excel/PPT 2010辦公應(yīng)用從入門到精通
- Excel 2010使用詳解
- Word/Excel 2010辦公應(yīng)用從入門到精通
- Office 2013輕松辦公:Word/Excel/PowerPoint三合一超級應(yīng)用大全(實(shí)戰(zhàn)案例版)
- Excel 2010高效辦公:市場與銷售管理
- Word Excel PPT2016 高效辦公一本通
- Minecraft創(chuàng)客制作:用樂高、3D打印、Arduino等創(chuàng)建Minecraft真實(shí)世界
- 文秘辦公自動(dòng)化培訓(xùn)教程
- PPT2013制作超級應(yīng)用大全(實(shí)戰(zhàn)案例版)
- Unity 3D\2D手機(jī)游戲開發(fā):從學(xué)習(xí)到產(chǎn)品(第3版)
- 新編Office 2007公司辦公入門與提高(修訂版)
- WOW!電腦辦公可以這樣簡單
- 新編Word/Excel/PPT 2013從入門到精通