AntiTopQuark opened a new issue, #68224:
URL: https://github.com/apache/doris/issues/68224

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   Introduce optional RPC micro-batching for point queries to reduce FE-to-BE 
RPC overhead under high concurrency, especially when data is already cached.
   
     The FE combines concurrent requests targeting the same BE into one RPC. A 
batch is flushed when its size limit or a short waiting window is reached, with 
a cap on total request bytes. The BE
     processes each lookup and returns individual results.
   
     Batching requires no application or SQL changes and preserves per-query 
results, errors, timeout budgets, and cancellation behavior. It is disabled by 
default, with configurable batch limits
     and waiting time to balance throughput against latency.
   
     Evaluate performance using throughput, CPU consumption, RPCs per query, 
and P99 latency across different concurrency levels, including the waiting 
overhead under light load.
   
   ### Use case
   
     - User-profile reads: Many concurrent requests fetch small user records by 
primary key, making RPC overhead a significant part of query cost.
     - Order-status checks: Independent client connections repeatedly look up 
individual orders, creating opportunities to batch requests targeting the same 
BE.
     - Real-time lookup services: Applications issue individual point queries 
and benefit from reduced RPC overhead without implementing application-side 
batching.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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