Introduction to MicroServices and Springcloud

Source: Internet
Author: User

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

    1. 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
    1. 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?

    1. Service development
    2. Service Configuration and Management
    3. Service Registration and Discovery
    4. Service invocation
    5. Service Fuse
    6. Load Balancing
    7. Service Interface Invocation
    8. Message Queuing
    9. Service Configuration Center Management
    10. Service Routing
    11. Service Monitoring
    12. Full Link Tracking
    13. Service Deployment
    14. Data Flow Operations Development Package
    15. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.