Repository navigation
Conversation
cnzakii
force-pushed
the
python-native-rebuild
branch
9 times, most recently
from
November 16, 2026 12:37
a20307e to
1121c12
Compare
cnzakii
force-pushed
the
python-native-rebuild
branch
12 times, most recently
from
November 20, 2026 11:53
60b148b to
6510188
Compare
cnzakii
marked this pull request as ready for review
November 20, 2026 12:12
4 tasks done
cnzakii
marked this pull request as draft
November 22, 2026 15:19
cnzakii
force-pushed
the
python-native-rebuild
branch
11 times, most recently
from
November 28, 2026 09:05
49ff2c8 to
a160bcc
Compare
cnzakii
marked this pull request as ready for review
November 29, 2026 05:04
cnzakii
force-pushed
the
python-native-rebuild
branch
5 times, most recently
from
November 29, 2026 21:39
5cf9b9e to
f2b7fe4
Compare
cnzakii
force-pushed
the
python-native-rebuild
branch
10 times, most recently
from
November 30, 2026 14:38
07bee89 to
556ef9f
Compare
Replace the previous implementation with a new one built on asyncio and AnyIO, with uvloop optional, for Python 3.11 to 3.14: - the Triple protocol over HTTP/2, interoperable with gRPC, and over HTTP/3 with the http3 extra, and the Dubbo protocol with Hessian 2, both in the default installation; - one port that serves HTTP/1.1, HTTP/2 and HTTP/3, where methods also answer plain HTTP calls with JSON, at default or declared routes, with CORS and an OpenAPI document; - application-level and interface-level service discovery on ZooKeeper and Nacos, with metadata services and reports, and configuration centers; - clusters, load balancers, condition and tag routers, configurators and filters, as extension points loaded by entry points; - configuration from code, files and environment variables; - the protoc plugin that generates service stubs; - samples, from a first call to a small shop of services behind FastAPI, an agent of Pydantic AI whose tools are services, and calls to and from Dubbo Java and Dubbo Go, each with a README and run by the tests; - end-to-end benchmarks of servers on one core and on eight, beside Dubbo Java, Dubbo Go and the gRPC libraries of Python, and of a Dubbo Python consumer; - unit and integration tests on a virtual clock, CI on GitHub Actions, and release candidates for the release manager to sign. Extras add the ZooKeeper and Nacos clients, the properties configuration format, uvloop, protoc, and HTTP/3.
cnzakii
force-pushed
the
python-native-rebuild
branch
from
December 1, 2026 09:37
556ef9f to
a614334
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes apache/dubbo#16595
Summary
This PR replaces the previous implementation with a new Python-native framework for Apache Dubbo. It runs on asyncio, with AnyIO for structured concurrency and uvloop as an option, and supports Python 3.11 to 3.14 on Linux, macOS and Windows.
It talks to Dubbo Java and Dubbo Go over both the Triple and Dubbo protocols, can serve its unary methods to plain HTTP clients, finds and registers services through ZooKeeper and Nacos as they do, and brings the governance of the other Dubbo languages to Python.
Highlights
grpcurl, health checks and reflection work with it. It also runs over HTTP/3 once a provider announces it.curl, browsers and web frontends call services without a stub.typing.Protocolwith type hints, calls areasync, and an application runs insideasync with, in any asyncio program. Each method of a reference has the name, signature, type annotations and docstring of its contract, so that tools that read them, such as AI agent frameworks, can take it as a function.Features
http3extra: a consumer moves a provider's calls to HTTP/3 once the provider announces it withAlt-Svcand a QUIC handshake succeeds in the background. A call never waits for a handshake: while HTTP/3 is not connected, as after its idle timeout, it goes over HTTP/2, and a failed handshake leaves HTTP/3 for 5 minutes, doubling up to two days, as browsers do. A consumer stops starting calls on an HTTP/3 connection whose path stops acknowledging packets, without waiting for its idle timeout. HTTP/3 always runs over TLS.triple.rest.enabledserves the unary methods of Triple. A method without a route answers at/{interface}/{method};dubbo.get,dubbo.postand the other verbs declare routes with path templates, anddubbo.Path,Query,Header,Cookie,BodyandFormsay where each parameter comes from.google.api.httpoptions of their.protofiles, whichprotoc-gen-python-dubboreads.detail; CORS, and an OpenAPI 3.1 document with Swagger UI and ReDoc, when the settings enable them.typing.Protocol, or generated from.protofiles byprotoc-gen-python-dubbo.zookeeper,nacos,properties,uvloop,protocandhttp3.Samples
samples/holds 24 samples, each with a README. The tests run them as their READMEs say. CI skips the logging, extensions, TLS, HTTP/3, FastAPI and Pydantic AI samples, whose packages it does not install.google.api.http, and HTTP/3.Performance
benchmark/measures each server with the same echo service, Protobuf over Triple on HTTP/2 and Hessian 2 over Dubbo, under the same load: on Linux with a 32-core Xeon, the server pinned to its cores withtasksetand the load on the others, the median of three rounds. None of the 81 million calls failed.Calls per second, with 128-byte / 16 KiB payloads:
Tests at scale
Besides CI, the framework went through several rounds of tests at scale on Linux hosts, with providers and consumers in containers beside Dubbo Java, Dubbo Go, ZooKeeper and Nacos:
Compatibility
Testing