Feature: Confluent message consuming refactoring #1904
Labels
Confluent
Issues related to `faststream.confluent` module
enhancement
New feature or request
help wanted
Extra attention is needed
Current ConfluentConsumer implementation is pretty dirty - https://github.com/airtai/faststream/blob/main/faststream/confluent/client.py#L219
It uses
sync_to_async
everywhere, that can leads to race conditions and segmentation faults in C code.We should refactor it to use separated thread as synchronous consumer flow and requeue messages from in-memory to asynchronous code. I can suggest use something like that
The text was updated successfully, but these errors were encountered: