Author: Dubbo Community

Apache Dubbo 3.1.0, as an important milestone version in Dubbo's planning, marks that Dubbo fully embraces the working mode of Service Mesh on the data plane, and natively supports access to the Service Mesh system. On August 22, Dubbo version 3.1.0 was officially released through community voting.

Dubbo 3.1.0 mainly includes the following new features:

  1. Service Mesh data plane capability support
  2. Error Code Troubleshooting Documentation Guide
  3. Fastjson2 support
  4. Single-port multi-protocol support
  5. Dubbo Reactive stream support

Service Mesh

 title=

The deployment architecture of the data plane under Dubbo Mesh

In version 3.1.0 of Dubbo, the Thin SDK and Proxyless are used to connect to the Service Mesh architecture, and the Proxy-based Sidecar mode is natively supported; it also supports direct connection to the control plane, and the Proxyless mode is realized by issuing management and control rules through the xDS protocol.

In the "Getting Started Documentation -> Example Practice -> Mesh Deployment Scheme" section of the official documentation, you can get documentation for quick practice Mesh deployment.

 title=

Dubbo Mesh Deployment Architecture

In the next step, Dubbo will start from the control plane and the data plane, and provide a complete set of service control platform through Dubbo Mesh. In this architecture, the data plane is lighter and more focused, and the control plane is more cohesive and powerful. It is only necessary to deploy a set of control planes to use production-level service governance capabilities. More descriptions of Dubbo Mesh can be obtained from the article " Dubbo Mesh - From Service Framework to Unified Service Control Platform " and the Apache Dubbo official account.

Error Code Troubleshooting Documentation Guide

 title=

The Logger abstraction layer that Dubbo relies on provides log output capabilities, but most of the exception logs do not have troubleshooting instructions, which makes it impossible for users to deal with exceptions after seeing them.

To solve this problem, the error code mechanism has been introduced since Dubbo 3.1.0 version. It connects the error code FAQ in the official documentation with the logging framework. When the log abstracts output abnormality, it also outputs the corresponding official website document link to guide users to conduct independent investigation.

In the future, most of the error reports will be directly linked to Dubbo's official documents. Through these documents, developers and operation and maintenance personnel can timely and efficiently understand the cause of the problem, better locate and solve the problem, and improve online stability.

Fastjson 2

 title=

FASTJSON v2 is an important upgrade to the FASTJSON project, with the goal of providing a high-performance JSON library for the next decade. Through the same set of APIs, it supports both JSON / JSONB protocols, Graal Native-Image, JDK 17, etc.

Dubbo's current default serialization protocol is the Hessian protocol, which is unmaintained for a long time and cannot guarantee future security and compatibility. Dubbo access to FASTJSON v2 can get higher performance experience than Hessian, native JDK 17 and other support. In Dubbo 3.1.0, this feature can be manually enabled by specifying serialization as fastjson2, and we will provide a smooth migration from Hessian to FASTJSON v2 in the future.

Upgrade Compatibility

Precautions:

If you are using the Nacos registry, please check whether the registry has been configured with the group attribute. If it has been configured, you need to check whether the groups of the server and the consumer are consistent. If they are inconsistent, please modify them to be consistent. There are specific instructions in the official document "SDK Manual -> Java -> Upgrade and Compatibility -> 3.0 to 3.1 Operation Guide".

Dubbo 3.1.0 and 3.0.0 are fully compatible in overall design. Dubbo 3.1.0 includes all the capabilities of the 3.0 branch. In addition to the above considerations, Dubbo supports a smooth upgrade from version 3.0.0 to version 3.1.0.

For more news about Apache Dubbo, you can follow the official public account of the Apache Dubbo community (ApacheDubbo) to get the latest news in time.

Click here to go directly to Dubbo's official website!


阿里云云原生
1k 声望302 粉丝