Skip to content

Kafka Async Producer #110

@herriojr

Description

@herriojr

Ok, so I'm trying to integrate with LinkedIn's Camus project and was using kafka-python as the python frontend to talk to Kafka. For Camus, it is expected that there is a single message format per topic (all done in Avro, but that's just a detail). The problem I see with the current API here is if I want to run a Producer in Async mode, I have to have a single producer per topic, and if I run multiple python server processes on a single box to take advantage of all the cores, I'm going to have Process * Topic Producer Daemons per machine and given python doesn't fully respect copy-on-write, that can end up being a lot of memory being used.

It would be much more useful if either the interface allowed processes to share a pipe for writing as well as use a single producer for multiple topics. If I get a little bit of free time, I'll see about adding this in myself. I just wanted to report it as a feature request.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions