Skip to content

[Question] SqsMessageProducer: Why is PublishAsync not awaited? #3054

Answered by iancooper
tulior asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tulior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants