Replies: 1 comment 5 replies
-
@ndbs-tsb sorry for answering so late... Indeed, we missed that feature and didn't add it to public API. from faststream.kafka import KafkaBroker
broker = KafkaBroker()
async def main():
msg = await broker.publish(...)
await broker._producer._producer.flush() But, we should make it publish for sure. What do you think about |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am making some experiments in switching to FastStream instead of using aiokafka directly. In my application it is important that messages are delivered as quickly as possible, so the old implementation calls producer.flush() after every producer.send(). Is there a way to accomplish this using FastStream?
I realise this may be more of a Kafka-specific question than a FastStream question, and perhaps this is best solved by some configuration of the producer...
Beta Was this translation helpful? Give feedback.
All reactions