The evolution of service architecture with SpringCloud

CSDN Topic Challenge Phase 2
Participation Topic: Study Notes

The road to learning is a long one. The process of writing study notes is the process of telling yourself the knowledge. In this process, we record the thinking process, which is convenient for future review and sorting out our thoughts. The joy of learning, the joy of learning alone, is not as good as the joy of the crowd. Telling the knowledge to more people, why not do it?

Please add image description
Personal business card:

blogger: Alcoholics ᝰ.
Personal profile: Indulge in wine, and strive for a future with a drink.
This article is inspirational: As a real programmer, you should first respect programming and love the programs you write. He is your partner, not a tool.

Please add image description
This project is based on the dark horse programmer of station B Java "SpringCloud Microservice Technology Stack", SpringCloud+RabbitMQ+Docker+Redis+search+distributed

[SpringCloud+RabbitMQ+Docker+Redis+search+distributed, system detailed springcloud microservice technology stack course|dark horse programmer Java microservice] Click to watch

1. Evolution process

Monolithic - Distributed - Microservices

1. Monolithic Architecture

Monolithic architecture : All functions of the business are developed in one project and deployed as a package.
Advantages :
simple architecture
and low deployment cost
Disadvantages :
high coupling

2. Distributed Architecture

Distributed architecture : The system is split according to business functions, and each business module is developed as an independent project, called a service.
Advantages:
Reducing service coupling
, which is conducive to service upgrade and expansion .
Disadvantages :
The architecture is complex and difficult.

3. Microservices

Microservice is a well-designed distributed architecture solution. Microservice architecture features:
Single responsibility: Microservice splitting granularity is smaller, each service corresponds to a unique business capability, achieves a single responsibility, and avoids repeated business development
Service-oriented: Microservices expose business interfaces to the outside world Autonomy :
independent teams, technologies, data, and deployments
Strong isolation: isolation, fault tolerance, and degradation of service calls to avoid cascading problems More independent and less coupled Disadvantages : The architecture is very complex, and the difficulty of operation and maintenance, monitoring, and deployment increases



2. Comparison

image.png

Dubbo's features are only part of the Spring cloud system. As a product in the SOA era, Dubbo focuses on service calling, traffic distribution, traffic monitoring and insurance. Spring Cloud was born in the era of micro-service system. It involves various aspects. Coupled with the support of Spring and Spring Boot, the starting points of these two frameworks are different. Dubbo positioning service governance and Spring Cloud are an ecosystem.
SpringCloud uses the http protocol, so there will be more bandwidth, and the http protocol usually uses JSON packets, which will consume more resources.
dubbo is a distributed service architecture for improving RPC remote service calling mechanism and providing SOA service management. SpringCloud is an ordered set of frameworks.

3. Spring Cloud

SpringCloud is currently the most widely used microservice framework in China.
Official website address : https://spring.io/projects/spring-cloud.
SpringCloud integrates various microservice functional components and implements automatic assembly of these components based on SpringBoot, thus providing a good out-of-the-box experience
insert image description here

Guess you like

Origin blog.csdn.net/m0_65144570/article/details/127022152