-
Hi team, I'm looking at the The method uses I'm curious to understand the reasoning behind this design choice. Are there specific reasons why awaiting Some potential benefits of using
Of course, there might be valid reasons for the current implementation. Understanding the context behind the design choice would be helpful. Thanks for your time and insights! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I would suspect that the reason is that we have not historically bubbled async operations on producers up, as they are uncommon. For example although the Kafka transport supports an async/away compatible Produce, it is better to use the "sync" produce which buffers all produce requests. SQS is a little bit of an exception as it is an HTTP call. As we are working on V10, we can review and see if it makes sense to expose async/await compatible operations on our producers. |
Beta Was this translation helpful? Give feedback.
I would suspect that the reason is that we have not historically bubbled async operations on producers up, as they are uncommon. For example although the Kafka transport supports an async/away compatible Produce, it is better to use the "sync" produce which buffers all produce requests. SQS is a little bit of an exception as it is an HTTP call.
As we are working on V10, we can review and see if it makes sense to expose async/await compatible operations on our producers.