In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, the editor will bring you about how to manage native micro-service applications more efficiently. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.
EDAS, a distributed application service, has recently released a new version that supports native Dubbo and Spring Cloud application functionality, which is supported in a non-intrusive manner and requires almost no code modification. Here we experienced how to deploy native Dubbo and Spring Cloud applications on EDAS.
Native Dubbo application
Since Ali restarted Dubbo maintenance, its popularity has skyrocketed rapidly, and the number of stars on Github has reached as many as 22000, which can be described as a star product in China's open source software industry. However, as its own commercial output, EDAS products can only support closed-source HSF micro-service framework, which is a pity for users. Although Dubbo applications can be supported in the past, they are implemented in disguise with a so-called Dubbo over HSF, and are not really non-intrusive native applications. Now that concern is finally gone, EDAS has officially begun the process of commercializing support for Dubbo.
Let's first build a simple Dubbo application and deploy it to EDAS. According to the method introduced in this document, let's implement a simple Echo application. The ability of this application is that the client gets a string message through the HTTP interface, and then sends the message to the server. After the server receives the message, it sends it back to the client intact. Finally, the client prints out the echo information, and the program ends.
This article is not a tutorial article, so it will not describe in detail how to write such an application, just focus on some key content. First of all, in addition to relying on the Dubbo library, you also need to rely on edas-dubbo-extension, an extension library provided by EDAS. This extension library is the key to EDAS's support for native Dubbo applications.
Cdn.com/3e2273e0afb955438e6284497e3f5559716988bb.png ">
Graph 1.edas-dubbo-extension dependency
In addition, we need to set the registry parameter in the Dubbo configuration file to the address of the lightweight configuration center.
After such a modification, our application can be deployed to EDAS intact.
The actual deployment process is no different from that of ordinary applications, and EDAS will automatically determine whether the application is native Dubbo and treat it differently, so users who are familiar with EDAS will not encounter any problems at this point. After the deployment is completed, you can see the following contents in the service list of Provider and Consumer applications, respectively, indicating that the service starts normally.
Figure 2. Published servic
Native Spring Cloud application
This article describes in great detail how native Spring Cloud applications integrate with EDAS, so I won't repeat them here. In the same way as supporting native Dubbo, it is very convenient to introduce additional ANS components when building Spring Cloud applications that adapt to the EDAS environment, which makes the applications debugged in the local lightweight configuration center environment can be directly deployed to the EDAS environment without any changes.
Comparison between commercial version and open source version
As a commercial product, it still has many differences compared with the open source version, and greatly improves the user's work efficiency and reduces the manpower investment.
First of all, the EDAS version of native Dubbo and Spring Cloud applications support shared service registration and discovery components, saving system overhead and operation and maintenance costs compared to the Zookeeper, Redis or Consul required to deploy the open source version.
Second, the open source version of Dubbo does not naturally support configuration management capabilities. Spring Cloud has Git-based configuration management capabilities, which are also available out of the box on EDAS and support configuration push capabilities.
In addition, like previous HSF applications, native Dubbo and Spring Cloud applications also support monitoring and alarm capabilities, eliminating the need to deploy related open source components.
The above is what the editor shares with you about how to manage native microservice applications more efficiently. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to 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.