Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async sender with kafka #107

Draft
wants to merge 1 commit into
base: sum12-only-async
Choose a base branch
from
Draft

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