-
|
Hi! Thanks for this amazing framework. We’re actively using FastStream with the aiokafka broker and are trying to understand how to improve subscriber throughput using concurrent processing. In subscribers I see a few options:
Could you please clarify how offset commits / acknowledgements work in each case, especially with Concrete questions:
Thanks in advance — a short explanation of the commit/ack strategy (and failure behavior) for these modes would really help us tune performance safely. P.S. Sorry, if these questinos are already answered somewhere, but I couldn't find :( |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Found issue where max_workers where added #2017 So max_workers>1 enables concurrent-between-partitions kafka subscriber, meaning concurrency limited to the number of partitions. |
Beta Was this translation helpful? Give feedback.
-
|
And another question is how batch size is defined? There are several arguments, max_records, max_poll_records and there is no info in docs https://faststream.ag2.ai/latest/kafka/Subscriber/batch_subscriber/ |
Beta Was this translation helpful? Give feedback.
-
|
Wrote with my team package https://github.com/modern-python/faststream-concurrent-aiokafka
Now trying it in production |
Beta Was this translation helpful? Give feedback.
Wrote with my team package https://github.com/modern-python/faststream-concurrent-aiokafka
Now trying it in production