News for hackers. Stuff that matters.
Re:Why we wrote our Kafka Client in Pony by royjacobs on Tuesday January 30, 2018 @08:40AM (#16265148)
What was the reason for not contributing a "reactive" API to the existing C client?

Especially because now you have a maintenance burden on your own client which, ironically, performs quite a lot slower than the C client although that was the major concern for not using it in the first place!

Re:Why we wrote our Kafka Client in Pony by hackmanytrades on Tuesday January 30, 2018 @08:57AM (#16265268)
That's a great question.

Yes, Pony Kafka is currently slower than the C client. But it is also almost completely untuned as of right now. We expect there is a lot of low hanging fruit on that front that will give us significant gains.

There is also the secondary concern regarding the thread pools internal to Pony and librdkafka. We've seen first hand how CPU cache invalidation can impact performance so we are very aware of the potential negatives if the Pony and librdkafka threads ever end up fighting with each other over the same CPU resources.

Re:Why we wrote our Kafka Client in Pony by royjacobs on Tuesday January 30, 2018 @09:08AM (#16265354)
Sorry, that was my question-- was there a way to avoid using librdkafka's threadpool and essentially use it as a 'dumb' client, moving all the async stuff to your Pony actor layer?
Re:Why we wrote our Kafka Client in Pony by hackmanytrades on Tuesday January 30, 2018 @09:22AM (#16265465)
From what I understand of librdkafka, there's no easy way to disable the internal thread pool it uses.

I'd imagine that the internal thread pool for sending/receiving data from Kafka is as core to librdkafka as the internal thread pool for running actors is to Pony and trying to remove or disable either of them would be a large undertaking.

Re:Why we wrote our Kafka Client in Pony by vbernat on Tuesday January 30, 2018 @12:01PM (#16266867)
The existing API already features ability to integrate into any event loop. See rd_kafka_queue_io_event_enable() to provide a file descriptor to be notified of incoming data.
Re:Why we wrote our Kafka Client in Pony by sidlls on Tuesday January 30, 2018 @09:01AM (#16265311)
They made a decision some time ago that they were a Pony shop. Adding something written in a different language would from their perspective (perhaps) be the additional maintenance burden.