In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what is Dubbo". In daily operation, I believe many people have doubts about what is Dubbo. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what is Dubbo?" Next, please follow the editor to study!
What is Dubbo?
Apache Dubbo is a high-performance, lightweight open source Java RPC framework that provides three core capabilities: interface-oriented remote method invocation, intelligent fault tolerance and load balancing, and automatic service registration and discovery. Dubbo is a distributed services framework dedicated to providing high-performance and transparent RPC remote service invocation solutions, as well as SOA service governance solutions.
What is RPC? RPC principle? What is RPC?
RPC (Remote Procedure Call) remote procedure call. It is a protocol that requests services from remote computer programs over the network without knowing the underlying network technology. Two different services An and B are deployed on two different machines, so if Service A wants to invoke a method in Service B, it is OK to use HTTP request, but it will be slow and some optimizations will not be done well and are not secure. The emergence of RPC is to solve this problem.
RPC principle?
Third, with HTTP, why use Dubbo?
Answer from the following two points:
Definition of Dubbo
Advantages of RPC over HTTP
SOA Service oriented Architecture (Service Oriented Architecture), that is, divides the project into two projects: the service layer and the presentation layer according to the business logic. The service layer contains business logic and only needs to provide services to the outside world. The presentation layer only needs to deal with the interaction with the page, and the business logic is implemented by invoking the services of the service layer. There are two main roles in the SOA architecture: service provider (Provider) and service consumer (Consumer).
Four features of Dubbo:
Load balancing: which machine should be called when the same service is deployed on different machines
Service invocation link generation: with the development of the system, there are more and more services, and the dependencies between services are so complex that it is difficult to tell which application should be launched before which application. The architect can not fully describe the architectural relationship of the application. Dubbo can help us figure out how services invoke each other.
Service access pressure and duration statistics, resource scheduling and governance: real-time management of cluster capacity based on access pressure to improve cluster access rate.
Service degradation: a standby service is called after a service has been hung up.
4. What is distributed? Why is it distributed? What is distributed?
The important thing of SOA distribution is service-oriented. To put it simply, the whole system is divided into different services, and these services are placed on different servers to reduce the pressure of single services and improve concurrency and performance. For example, the e-commerce system can simply split the process order system, commodity system, login system and so on, and deploy it on different machines. If the visit volume of a service is relatively large, the service can be deployed on multiple machines at the same time.
Why is it distributed?
From a development point of view, the code of a single application is centralized, while the code of a distributed system is split according to the business. Each team is responsible for the development of a service, which improves the efficiency of development. In addition, the code is easy to maintain and expand after it is split according to the business.
Splitting the system into distributed not only facilitates the maintenance and expansion of the system, but also improves the performance of the whole system. Does splitting the entire system into different services and then deploying each service on a separate server greatly improve performance?
At this point, the study of "what is Dubbo" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.