Project architecture microservices

In recent years, the project of micro-services architecture has become a hot topic of the current Internet, then what is micro-services? Microservices, the full name of microservices architecture, is a new technology for deploying applications and services in the cloud, and it is a new type of architecture model. What it advocates is to split a single project architecture into multiple monolithic modules, each module can run independently in its own program, and expose interfaces to the outside, and provide services to the outside; lightweight communication between services and services Mechanism (usually RESTfulAPI based on HTTP protocol) for communication; according to different business modules, different service mechanisms are called to fulfill user needs; microservices mainly have the following characteristics:
(1) Traditional componentization through services
The components in the project architecture run in the process together with the application. The realization of componentization means that the single architecture is split into multiple services to run in different processes; service responsibilities are separated, and business changes only affect individual modules, not Provision of other services.
(2) Independent deployment methods.
Each service is independent. Although there may be dependencies on services, the deployment between them is independent of each other. The successful deployment of one service will not affect the deployment of another service. .
(3) Different processes.
Because each service is deployed independently, the startup and operation of services are also independent of each other. In other words, each service has its own process, although lightweight The high-level communication mechanism increases the complexity of communication, but the errors or exceptions between services are also isolated from each other, which makes it possible to find out which service is misplaced.
(4) After the decentralized integrated
project adopts microservices, for different businesses, different developers can use the language or technology they are good at or like for business iteration; avoiding the use of a unified technology or platform to solve all development problems ; Greatly increase the scalability of the project, can be targeted to solve specific business technical problems.

Guess you like

Origin blog.csdn.net/qq_42918433/article/details/113941358