ShauryaChauhan1411 commented on issue #17268:
URL: https://github.com/apache/iotdb/issues/17268#issuecomment-4044049826

   Hi @anusha975, I've shared my PR (#17287) as a solution for this issue. I 
have used a ThreadPoolExecutor with an ArrayBlockingQueue and specifically a 
CallerRunsPolicy.
   Using CallerRunsPolicy is crucial here because it provides backpressure—it 
makes the caller thread execute the task when the queue is full, preventing the 
application from being overwhelmed.


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

Reply via email to