Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the running process of the Dubbo framework

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how the Dubbo framework works". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Introduction to Dubbo

Dubbo is a high-performance and excellent service framework open source by Alibaba Company, which enables applications to realize the output and input functions of services through high-performance RPC, and can be seamlessly integrated with Spring framework.

Dubbo is a high-performance, lightweight open source Java RPC framework that provides three core competencies:

Interface-oriented remote method invocation: NIO framework that encapsulates persistent connections, such as Netty, Mina, etc.

Intelligent fault tolerance and load balancing

Automatic registration and discovery of services; integration of Zookeeper components of Apache for user registration and discovery

The running process of the Dubbo framework is as follows:

The service provider registers into the service registry

Service consumers subscribe to services

Service consumer discovery service

Service consumers find service providers to consume services through remote scheduling.

Service consumers and service providers regularly send heartbeat data to the service monitoring center to record the number and time of calls.

Advantages of Dubbo:

Connectivity: service registries, service providers, service consumers, and service monitoring centers are all long connections

Robustness: the downtime of the monitoring center will not affect the normal operation of other services. If the server cluster is configured, the downtime of any service will not affect the overall operation of the service.

Scalability: you can dynamically increase or decrease the number of instances of registries and services

Upgrade: server cluster upgrade without putting pressure on the existing architecture

Spring Cloud and Dubbo Service concern Spring CloudDubbo configuration Management config No Service Discovery Eureka, Consul, ZookeeperZookeeper load Balancer Ribbon built-in Gateway Zuul No distributed tracking Spring Cloud Sleuth No Fault-tolerant Hystrix imperfect communication mode HTTP, MessageRPC, NIO security module Spring Cloud Security no other aspects:

Update frequency

Spring Cloud maintains a very high frequency of updates and high community activity, which is a very good thing for an architecture, at least Spring Cloud is developing rapidly.

On the other hand, Dubbo has suspended updates since March 2013, and there has been no technical update iteration for the next five years, and it was not updated until September 2017.

Development style

Spring Cloud tends to be agile development using annotations + JavaBean configuration.

Dubbo tends to use Spring XML configuration.

Communication mode

Most of Spring Cloud uses HTTP Restful-based style, which is completely unrelated and decoupled between services.

Dubbo is a remote invocation mode based on RPC, which is strongly dependent on platform, interface and language. It is difficult to invoke services across platforms, and additional middleware is needed.

This is the end of the content of "how the Dubbo framework works". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report