Skip to content

async sender with kafka#107

Draft
sjamgade wants to merge 1 commit intosum12-only-asyncfrom
sum12-async-kafka1
Draft

async sender with kafka#107
sjamgade wants to merge 1 commit intosum12-only-asyncfrom
sum12-async-kafka1

Conversation

@sjamgade
Copy link
Contributor

This PR adds another sender. AsyncKafkaSender.

The main motivation for this sender is not speed, From some test run in comparison to the ThreadedKafkaSender there was no real change. But this prepares for an async senders to be usable within the same event loop.

The sender is not feature complete as compared to the threaded, as aiokafka is not yet released with admin client. It is merged already. (since this is one time execution at the start of the pump, it seems acceptable to rely on non-async client)

The way this works is we start the loop in an independent thread, and loop gets shared between all implementors of AsynLogSenders. So they all share the event loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant