Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] HTTP/3 Support For Triple Protocol Overview #14296

Open
2 of 11 tasks
oxsean opened this issue Jun 7, 2024 · 0 comments
Open
2 of 11 tasks

[Feature] HTTP/3 Support For Triple Protocol Overview #14296

oxsean opened this issue Jun 7, 2024 · 0 comments
Assignees
Labels
component/sdk Related with apache/dubbo

Comments

@oxsean
Copy link
Collaborator

oxsean commented Jun 7, 2024

Background

Apache Dubbo is a high-performance RPC framework dedicated to providing excellent service governance capabilities. With the introduction of HTTP/3, its features based on the QUIC protocol offer new possibilities for Dubbo microservices communication. HTTP/3, by reducing latency, increasing transmission speed, enhancing security, improving packet loss resistance, and supporting 0-RTT connections, provides significant performance and reliability improvements for Dubbo in cloud-native environments for microservices communication.

Technical Solution Summary

This proposal aims to integrate HTTP/3 into Apache Dubbo, supporting all core capabilities defined by the Triple protocol specification on HTTP/3. The construction of capabilities will revolve around the following core parts:

  1. Remoting Protocol Adaptation: Develop a new remoting module based on netty-incubator-codec-http3, and modify dubbo-rpc-triple to make the existing triple's dependency on remoting compatible with HTTP/3. It also needs to include support for Alt-Svc defined in RFC7838 to implement bootstrapping.
  2. RPC Protocol Adaptation: The adaptation of the RPC part includes both client and server. For the server, it mainly needs to support the initialization of HTTP/3 UDP Server, INPUT/OUTPUT adaptation, and the modification of TransportListener to support HTTP/3. The client part is mainly about supporting making call requests through HTTP/3, considering HTTP version negotiation, using HTTP/2 for servers that do not support HTTP/3, otherwise upgrading to HTTP/3.
  3. HTTP/3 Core Capabilities Support: Based on the features of HTTP/3, support backpressure and flow control, support setting and optimizing congestion control algorithms, support frame prioritization.
  4. Performance Testing: Conduct comprehensive performance testing, including comparison with HTTP/2 implementation and the original Dubbo protocol performance. The test report will cover key indicators such as machine load, response time, throughput under specific concurrency, latency, packet loss rate, and packet damage rate.

image

Supported capabilities

  1. Server part: Implemented server port sharing, adapted http3 frame to triple model, adapted control signaling, reused the existing HttpWriteQueue to improve performance
  2. Client part: Refactored NettyConnectionClient and ClientStream to support HTTP/2 and HTTP/3, reusing existing code as much as possible, including reconnection, QueuedCommand, and http3 frame adaptation
  3. RPC call methods: Covered the three triple call methods: UNARY, SERVER_STREAM, BI_STREAM
  4. Call protocol fully supports HTTP, REST, and gRPC
  5. Configurable to enable HTTP3 globally or enable for specific providers or consumers
  6. Server-side protocol negotiation based on Alt-Svc

Performance

image
image

Tasks

The following are the tasks that need to be completed for release

Planning

We want to support HTTP/3 in the 3.3 release. If you are interested in the HTTP/3 protocol and would like to collaborate, please contact me on DingTalk: oxsean

Related issues

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@oxsean oxsean added type/need-triage Need maintainers to triage component/need-triage Need maintainers to triage component/sdk Related with apache/dubbo and removed type/need-triage Need maintainers to triage component/need-triage Need maintainers to triage labels Jun 7, 2024
@oxsean oxsean self-assigned this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/sdk Related with apache/dubbo
Projects
Status: In Progress
Development

No branches or pull requests

1 participant