redoom opened a new pull request, #1272:
URL: https://github.com/apache/dubbo-samples/pull/1272

   ## Summary
   
     Add a sample project demonstrating **AsyncRpcResult**
   
   ## Features
   
   ### Four AsyncRpcResult Patterns in Provider Filters
   
     1. **AsyncShortCircuitFilter**
        - Create `AsyncRpcResult` without invoking service
        - Use case: Cache, circuit breaker, rate limiting
   
     2. **DecorateResultFilter** 
        - Decorate results using `getResponseFuture().thenApply()`
        - Use case: Response wrapping, logging
   
     3. **AttachAndDecorateFilter** 
        - Add attachments for distributed tracing
        - Use case: trace-id, span-id propagation
   
     4. **EventDrivenFilter**
        - Integrate external async services
        - Use case: Async HTTP, MQ, reactive DB
   
   ### Two Consumer Async Patterns
   
     - **Method 1**: `CompletableFuture<T>` in method signature
     - **Method 2**: `@DubboReference(async=true)` + 
`RpcContext.getCompletableFuture()
   
   ## Module Structure
   
     - **interface**: Service definitions
     - **provider**: Implementation + 4 async Filters
     - **consumer**: Demonstrates both async invocation methods
     
   [https://github.com/apache/dubbo/issues/15567](url)


-- 
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