cnzakii opened a new pull request, #53:
URL: https://github.com/apache/dubbo-python/pull/53

   ## 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.
   
   ## Features
   
   - **Protocols**
     - Triple over HTTP/2, interoperable with gRPC. It supports:
       - unary, server-streaming, client-streaming and bidirectional calls;
       - deadlines, rich error details and compression;
       - the gRPC health and reflection services;
       - the wrapped mode for Java interfaces.
     - The Dubbo protocol with Hessian 2.
     - TLS on both protocols.
   - **Services and calls**
     - Service definitions and stubs generated by `protoc-gen-python-dubbo`.
     - A mapping of Java types, and generic calls.
     - Attachments and a call context that propagate across calls.
   - **Service discovery**
     - Application-level and interface-level registration on ZooKeeper and 
Nacos.
     - MetadataService V2 and metadata reports.
     - Configuration centers on ZooKeeper and Nacos.
   - **Traffic management**
     - Clusters: failover, failfast, failsafe, failback, forking, broadcast, 
available and zone-aware.
     - Load balancers: random, round-robin, least-active and consistent-hash.
     - Condition and tag routers, and dynamic configurators.
     - Filters for access logs, active-call and concurrency limits, TPS limits, 
tokens and deprecated methods.
   - **Application**
     - Configuration from code, from JSON, YAML and properties files, and from 
environment variables.
     - Extension points loaded through entry points.
     - Lifetimes that are opened and closed as a whole, and graceful shutdown 
within a time budget.
   - **Packaging**
     - Optional dependencies as extras: `tri`, `hessian2`, `zookeeper`, 
`nacos`, `yaml`, `properties`, `protoc`, `uvloop` and `all`.
   
   ## Performance
   
   The numbers are medians of three runs on an Apple M4 over loopback. The 
client and the server each run as one process of the same implementation, and 
calls are 100-byte unary calls with 16 in flight unless noted.
   
   | Scenario | This PR, asyncio | grpcio aio, asyncio |
   |---|---|---|
   | Triple unary | 38.1k calls/s, p99 477 µs | 12.6k calls/s, p99 1438 µs |
   | Triple unary over TLS | 34.4k calls/s, p99 546 µs | 12.4k calls/s, p99 
1548 µs |
   | Server streaming, 4 calls in flight | 560k messages/s | 118k messages/s |
   | Bidirectional round trips | 77k/s, p99 230 µs | 76k/s, p99 322 µs |
   | 1 MiB unary, 4 calls in flight | 1684 calls/s | 2522 calls/s |
   
   - **Dubbo protocol:** 54.9k calls/s for the same unary calls.
   - **uvloop:** with uvloop, Triple reaches 46.4k calls/s and the Dubbo 
protocol 71.9k calls/s.
   - **Long runs:** in an 8-minute run at 16 calls in flight, throughput stays 
flat and resident memory stays under 50 MB.
   
   ## Compatibility
   
   - **Public API:** the API is new, so code written for earlier releases needs 
to be ported.
   - **Wire formats and interoperability:** wire formats and registry entries 
follow Dubbo Java and dubbo-go. Interoperability is exercised against Dubbo 
Java 3.3 over the Dubbo protocol, and against grpc-go over Triple.
   
   ## Testing
   
   - **Tests:** about 1,460 unit and integration tests, with 95% line and 
branch coverage. The ZooKeeper and Nacos tests run against servers in Docker.
   - **CI:**
     - Ruff, ty and the license header check.
     - Tests on Linux, macOS and Windows with Python 3.11 to 3.14.
     - Fresh installs with only the core, with only `tri` and with only 
`hessian2`.
     - Integration tests against ZooKeeper 3.8 and 3.9 and Nacos 2.4 and 2.5.
     - A package build check.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to