In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the relationship between dubbo and zookeeper, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Dubbo is an animal... Zookeeper is a zoo keeper!
As far as I understand it, you can think of dubbo service as a student in the school, and for a student number, zookeeper is imagined as an educational network management system. We can find the corresponding students through the educational administration network management system. First of all, we bind the student to the student number by registering.
For example, the project is a distributed project, the web layer and the service layer are separated and deployed in different tomcat. I need to call the interface of the service layer in the web layer, but the two services running under different tomcat can not directly adjust the interface, so it can be implemented through zookeeper and dubbo. We set up the ItemService service through dubbo, register with zookeeper, and fill in the IP and port number of the corresponding zookeeper service. [according to my above analogy, students register for enrollment (the interface is the student number, and the students themselves are implemented by impl), and fill in the website of the school's educational administration network (that is, zookeeper)]
Or
To put it simply, dubbo is a zoo animal, and zookeeper is a zoo. If tourists want to see animals, then go to the zoo. For example, if you want to see a tiger, you can only see it in the zoo. In other words, we put a lot of different dubbo (animals) in the zookeeper (zoo) for us tourists to watch. There are three keys in this process: place, supplier and consumer.
In addition, in a distributed project, the server (consumption) layer and the service (supply) layer are separated and deployed in different tomcat. I need to call the interface of the service layer in the server layer, but the two services running under different tomcat can not directly modulate the interface, so it can be implemented through zookeeper and dubbo. It's like putting the animals in the zoo. If we want to see them, we can just go to the zoo. Instead of going directly to the place where the animals live, there will be worries about the safety of their lives (for example, you go to see the tiger).
We set up the service service through dubbo, register with zookeeper, and fill in the IP and port number of the corresponding zookeeper service.
The above is the relationship between dubbo and zookeeper. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.