-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can we use a connection pool for the multiple Producers across topics #43
Comments
At work right now but two off the cuff thoughts:
Or maybe I miss your point entirely because I'm trying to wrangle an init.d script while answering this ticket. What's your use case? |
@elee one of our boxes is opening 400 sockets to We used to send all messages to one topic but that became far too CPU intensive to consume, we are now partitioning our messages by topic so that other parts of the system can consume a subset of the messages from kafka without consuming a lot of CPU. There may be a better way of doing this. Basically the issue is that we don't see a good reason for our workers to open 10 TCP sockets to kafka for writing. The problem currently lies here: |
@Raynos I see your issue and that's a valid concern. Right now I think I can channel @cainus and say we can't implement this feature in any timely fashion because we're not working on this driver as actively as we would like. We will label this issue as a Enhancement for now. EDIT: err, 'Enhancement' in the Github issues parlance |
@elee we can make a PR on |
@Raynos I'm sure this goes without saying, but if you're going to tackle this, it'd be nice if you can do it in a backward compatible fashion, if possible. Thanks in advance if you get this working though! Give us a shout if you want to talk about specifics before you get to a full blown PR too. |
See #46 instead. |
Closing as this was just fixed in 0.7.1. |
nice. :) |
We want to use many small topics and the current implementation of one TCP socket per topic doesn't scale for our usage.
Is there a technical kafka related issue that stops us from implementing a Producer that uses a connection pool ?
The text was updated successfully, but these errors were encountered: