Move blocking send operation to executor thread#251
Conversation
|
The |
|
@Ladicek Right, you know I was wondering the same.. :) The Vertx developers then clarified its use in their documentation:
https://vertx.io/docs/apidocs/io/vertx/rxjava/core/Context.html |
|
I believe the thing that matters here is : is the blocking operation for such time expected or not ? |
|
@vietj yes,
This is particularly evident when the Kafka cluster is down or unavailable |
|
so I think we should use this specific executor, however it should not be nested inside executeBlocking and use directly instead |
|
@vietj Should I try updating? |
|
yes you should
…On Wed, Jul 26, 2023 at 5:49 PM Arooba Shahoor ***@***.***> wrote:
@vietj <https://github.com/vietj> Should I try updating?
—
Reply to this email directly, view it on GitHub
<#251 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABXDCQTCHX7IG4AXAPKOPDXSE4AXANCNFSM6AAAAAA2XZAVPI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Apologies for the delayed response.. If I replace or should we return promise like this: |
|
it is not clear what is happening since we are already in an execute blocking block, what is the actual issue we are trying to fix ? does it mean we should avoid execute blocking with kafka ? |
Hi! :)
Thank you for this project..
This PR fixes a blocking call in the

sendmethod ofKafkaWriteStreamImplclass, which was detected with the help of BlockHound:We re-ran the test cases and also evaluated performance (in terms of sleep time latency of the SendThread) before and after the fix:
Before

After
