Introduction to MicroServices and Springcloud
What is micro-service
微服务的核心是将传统的一站式应用,根据业务拆分成一个一个的服务,彻底去耦合,每个微服务提供单个业务功能的服务,一个服务做一件事情,从技术角度看就是一种小而独立的处理过程,类似进程概念,能够进行单独启动和销毁,可以拥有独立的数据库。
The difference between microservices and micro-service architectures
- MicroServices: It emphasizes the size of the service, it focuses on a certain point, is a service application that specifically solves a particular problem/provides landing correspondence service
- MicroServices Architecture: It is an architectural model that divides a single application into a small set of services that coordinate with each other to provide the ultimate value to the service. Each service runs in its own separate process, and the services work together with a lightweight communication mechanism.
Advantages and disadvantages of micro-services
- Advantages
- Each service is sufficiently cohesive to be small enough to be easily understood by the code, focusing on a specific business requirement or function.
- Code loose coupling, both in the development phase and in the deployment phase are independent
- Can be developed in different languages
- Easy integration with third parties
- MicroServices are just code for business logic and do not mix with html\css or other interface components
- Each micro-service has its own storage capacity, can have its own database, can also have a unified database
- Disadvantages
- Compared with monomer application, the overall technical difficulty has increased.
- Increased workload for operations personnel
- Increased inter-service communication costs
- Complex performance monitoring
- Wait a minute
What are the micro-service technology stacks?
- Service development
- Service Configuration and Management
- Service Registration and Discovery
- Service invocation
- Service Fuse
- Load Balancing
- Service Interface Invocation
- Message Queuing
- Service Configuration Center Management
- Service Routing
- Service Monitoring
- Full Link Tracking
- Service Deployment
- Data Flow Operations Development Package
- Event message Bus
What is Springcloud?
- Overview: It is a distributed micro-service architecture of a one-stop solution, is the various micro-service architecture landing Technology collection, commonly known as micro-service family barrels.
- Detailed Description:
Springcloud based on Springboot provides a suite of microservices solutions, including service registration and discovery, Configuration center, full link monitoring, service gateways, load balancing, fuses and other components, in addition to high-abstraction packages based on Netflix's open source components, There are also some neutral-type components.
Springcloud simplifies the development of distributed system infrastructures with the development convenience of Springboot, Springcloud provides developers with tools to quickly build distributed systems, including: Configuration management, service discovery, circuit breakers, routing, micro-proxies, event bus , global locks, decision campaigns, distributed sessions, and so on, all of which can be started and deployed using Springboot's development style
Springcloud did not repeat the wheel, it is only a relatively mature, the company has developed a proven service framework, through the springboot style of re-encapsulation, shielding out of the complex configuration and implementation of the principle, finally to the developers to leave a set of easy to understand, Easy-to-deploy and maintainable Distributed system Development Kit.
What's the relationship between Springcloud and Springboot?
- Springboot focuses on the rapid and convenient development of individual micro-services.
- Springcloud focuses on the global microservices Orchestration Governance Framework, which manages the micro services developed by Springboot to provide services between the various microservices.
Comparison of Springcloud and Dubbo
Dubbo在2012年被阿里停止更新和维护,期间SpringCloud却在飞速发展,2017年Dubbo由阿里宣布重新更新和维护。由可以看出两者的差距。剔除dubbo功能支持不完善来说,二者最大的区别是服务调用方式不同,Dubbo采用RPC通信,SpringCloud采用基于HTTP的REST方式通信。REST牺牲了性能,但却更灵活,在快速演化的微服务环境下更加适用。以下是阿里刘军,Dubbo重启维护的负责人对二者的比较
Introduction to MicroServices and Springcloud