Nacos Released version 0.6, supports Dubbo and Docker
Alibaba Microservices Open Source ProjectDubbo Nacosreleased this week v0.6 version, which mainly supports Dubbo's service registration and discovery and configuration management, supports docker deployment, provides an official docker image, optimizes the international framework of Nacos console, and optimizes Nacos's integration testing efficiency.
Thousands of calls come out, Dubbo's registration center and configuration center
Nacos Starting with the v0.6 version, the Dubbo registration center and configuration center are supported. Also, as Alibaba's open source weight-level product, the two products are inextricably linked within the internal Alibaba Group.
Dubbo Service Framework
As the rpc service framework, on the one hand, it pays attention to the extremely short delay rt, which ensures that the overall call is efficient, and on the other hand, guarantees a good user experience, ensuring user comfort and good scalability. Dubbo is very good in both aspects, and is widely used in the industry because of its good expansion. The popularity and popularity of Dubbo is evident through the 2w+ github warehouse star attention.
Nacos and Dubbo are the same genes
But there is such an efficient rpc service framework under Alibaba's technology system, but what is supporting Alibaba's huge service cluster? It is well known that Alibaba Group has a terrible cluster size. Every year, Alibaba Group's Tmall Double 11 Global Shopping Carnival will have a rid of the chin trading scale. In 2018, the Double 11 will carry 213.5 billion in sales. But as a technician, the biggest concern is the peak. If careful practitioners should see an indicator, in 2018 Tmall carried a peak of transaction creation of 491,000 pens per second. For example, Beijing Bird's Nest Stadium has a maximum carrying capacity of 91,000 people, and 49.1w transactions per second, which means that the full audience of the five Bird's Nest stadiums pushes the shopping cart and simultaneously clears the settlement of Tmall Taobao in one second. Taiwan, this pressure can be imagined. But behind the hosting of such a large-scale service cluster, and Alibaba Dubbo's internal use framework HSF, corresponding to ConfigServer, and this is one of Nacos' predecessors. The 0.6 version released by Nacos is the perfect integration with Dubbo. It also announces that Alibaba's experience in large-scale clusters will be shared with Nacos, Dubbo, Sentinel and other contributions to the open source community.
Dubbo Fusion Nacos
Nacos is an important registry infrastructure in the Dubbo ecosystem, with dubbo-registry-nacos being the bridge for Dubbo's Fusion Nacos registry, based on Dubbo Powerful Registry SPI and Nacos Naming services provide real-time service registration and discovery. Currently dubbo-registry-nacos is in the preview stage, the latest release is
0.0.2, the latest Dubbo and Dubbo OPS have been tested, recommended Developers use the latest Dubbo
2.6.5 and Nacos
0.6.1 to ensure the best experience. If you are currently using ZooKeeper or Redis as your registry, the migration to Nacos is also very simple, with Zookeeper as an example:
- Scene 1: Externalization configuration
## Zookeeper registry address = zookeeper://127.0.0.1:2181
## Nacos registry address = nacos://127.0.0.1:8848
- Scenario 2: XML configuration driver
<!-- Use Zookeeper Registration Center --> <dubbo:registry address="zookeeper://127.0.0.1:2181" />
<!-- Use Nacos Registration Center --> <dubbo:registry address="nacos://127.0.0.1:8848" />
Once the adjustment is complete, make sure the Nacos Server is up and restart your Dubbo app, then you will see the registration information in the Nacos console Service List:
If you are interested in integrating Dubbo and Nacos, you may wish to visit the project homepage for more details at:
- Dubbo Nacos Registry: https://github.com/dubbo/dubbo-registry-nacos
- Apache Dubbo: https://github.com/apache/incubator-dubbo
If you encounter any problems and have any suggestions during the process, please visit [https://github.com/dubbo/dubbo-registry-nacos/issues](https://github.com/dubbo/dubbo -registry-nacos/issues) for discussion.
Containers are popular, Nacos supports Docker containerization
Today, when containers are popular, support for containerization has become a necessity, and Docker has chosen as the container for most people. Nacos announced in v0.6. Support for Docker deployments, and provide an official image, and will support k8s deployment in the next few releases.
How to deploy via Docker
Local needs to make sure that Docker has been followed. If it is not installed, please refer to https://docs.docker.com/install/. After installation, you can quickly pull the image from the remote and pick up a stand-alone version of Nacos to experience it. Simple and rude, run the following command:
Docker run --name nacos-standalone -e MODE=standalone -p 8848:8848 nacos/nacos-server:latest
The operation test is as follows:
Another application, docker-compose orchestration, you can refer to the following command:
- git clone the project and go to the project root directory
Git clone https://github.com/nacos-group/nacos-docker.git Cd nacos-docker
- Stand-alone start
Docker-compose -f example/standalone.yaml up
- Cluster boot
Docker-compose -f example/cluster-hostname.yaml up
At this point your Nacos is up and you can experience the Nacos feature by visiting http://localhost:8848/nacos/index.html.
Configuration Management Function Experience
Service Discovery Feature Experience
The booming Nacos community
DISS is cheap, show me your hand More important than the spit is to take the handle and participate in the community to develop Nacos
- Follow the user as a user and join the Nacos community
The Nacos community is booming. As of the date of publication, Nacos has five WeChat groups in just a few months, four of which are full, one QQ group, one nail group, and nearly 3,000 people who care about Nacos. In the Nacos group, we will learn from the "Tao (base) friends", exchange experiences, recruit friends, grab red envelopes... and enjoy it.
To join the Nacos WeChat community, you can use the WeChat QR code of “超哥” below to let “超哥” help you pull in “Nacos Community WeChat Exchange Group”
- Join the Nacos community as a code contributor
From the development of Nacos users to contributors, and the Nacos development team is indeed growing, from the beginning of only four code contributions to the current 24, with Alibaba other team members such as @小马哥, 虎牙直播__@张波__ @周健 Team et al, [nacos-docker-k8s](https://github.com/nacos-group /nacos-docker) Contributors @张龙, the main contributors to the front end are hungry @王彦民, the founder of Spring Cloud Chinese community @许进 etc. The power of the Nacos community will grow stronger in the future.
The community is also planning to add a team introduction page to Nacos's official website nacos.io at the right time, and everyone will be officially announced. Welcome everyone to join the Nacos community and contribute to the community. . In the words of Apache, "Community is higher than the code"!
Newcomer Moments - "What is Nacos?"
I don't know what Nacos is? It doesn't matter, star on the github and say hello to the program brothers!!
Nacos is Alibaba's new open source project in July. Nacos's main vision is to provide easy-to-use
Dynamic Service Discovery,
Service Configuration Management, The infrastructure of "Service Sharing and Management" helps users better build, deliver and manage their own microservices platforms in the cloud's native era.
Github project address is here