Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E031F606 for ; Wed, 3 Apr 2013 00:29:49 +0000 (UTC) Received: (qmail 31752 invoked by uid 500); 3 Apr 2013 00:29:49 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 31708 invoked by uid 500); 3 Apr 2013 00:29:48 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 31695 invoked by uid 99); 3 Apr 2013 00:29:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 00:29:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jjkoshy.w@gmail.com designates 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 00:29:44 +0000 Received: by mail-oa0-f52.google.com with SMTP id k14so944054oag.39 for ; Tue, 02 Apr 2013 17:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=LDaqam5g5VM+azvrtyAR1y3wrtMY5UE0qyDaC4vVJKM=; b=X/+GR7ZyMNhJydrcckJ3tRWljvpKLmUYfjjikM1PyJy8vNiVtJTRNhJLjZYMQBTVfO SQR5nNj6h3bONmTqpF0toF9VkRmFkpB0K2MzSIk8xmNb3WrWQt8SKAp5J3OkJpPQJQzt 6hKp7keJ60+lRpKrnvn768VQ/mDrYipkpO+M8UQniolkvAhUlpvuBLqlEU1I0WXZ7zJk iWJW+mhFfeGCPDMAmeGfbj8wARHtXaNPpYafdInpOYZD9czkYq5vxVtDDlDyV2P9Txq8 yWtRhjdGi0F46/znAVJlYvaH5JAnGo5wEDVDhXUr4wYh7EitZXYdK5zXb2DUJwwKe97M 0WGA== MIME-Version: 1.0 X-Received: by 10.60.98.209 with SMTP id ek17mr6205851oeb.132.1364948964244; Tue, 02 Apr 2013 17:29:24 -0700 (PDT) Received: by 10.76.130.4 with HTTP; Tue, 2 Apr 2013 17:29:24 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 Apr 2013 17:29:24 -0700 Message-ID: Subject: Re: C/C++ Client From: Joel Koshy To: "users@kafka.apache.org" , dev@kafka.apache.org Content-Type: multipart/alternative; boundary=089e0115fac62680ef04d969f261 X-Virus-Checked: Checked by ClamAV on apache.org --089e0115fac62680ef04d969f261 Content-Type: text/plain; charset=ISO-8859-1 Yes - we would be interested in doing that. I have been spending most of my time over the past couple weeks on the C++ library (currently, only for the producer). It is reasonably stable, although it has not been tried and tested in production. I can start with publishing a wiki describing the design/implementation and list out future work that others can contribute to if there is interest, but I'll quickly summarize some of its goals here: - Use non-blocking I/O for sending requests/receiving responses. This mitigates the request-response RTT latency that the 0.8 protocol introduces (if acks != 0). - C-compliant API, so that other languages e.g., Ruby/Python can wrap the library. I understand there are people working on 0.8 clients in those languages so this is just an alternative approach. - Non-blocking variants for all operations in the API: there are some use-cases where blocking in the user-thread is unacceptable. - Keep third-party libraries to a minimum to make porting to other platforms easier. There are two options in pursuing this: 1 - Contribute it as part of the Kafka project. i.e., re-introduce the clients directory. We removed it because none of the committers were original authors of any of the non-Java clients and did not have the bandwidth/background to review patches for those clients. 2 - Maintain it externally. I was going to also suggest "sub-project" as a third option, but I heard from Jakob that it is no longer encouraged by the board and a client by itself would not be a substantial sub-project. If we want to do (1), we would obviously go through the standard contribution process: i.e., create a jira for it and provide a patch that people can review; and other implementations will also be considered if contributors provide patches. (2) is also fine, although one benefit with (1) is that it would be reasonable to use the existing infrastructure (mailing lists, issue tracking) for the Kafka project. Any preferences/thoughts? Thanks, Joel On Mon, Apr 1, 2013 at 8:22 AM, mrevilgnome wrote: > Any interest in open sourcing it now and picking up contributors? > > > On Mon, Apr 1, 2013 at 7:54 AM, Jun Rao wrote: > > > At LinkedIn, we are also building a native C producer client for 0.8. It > > uses non-blocking socket I/O to improve the producer throughput. We plan > to > > open source it when it's fully tested, hopefully in a couple of months. > > > > Thanks, > > > > Jun > > > > On Wed, Mar 27, 2013 at 8:48 PM, Matthew Stump > >wrote: > > > > > Howdy, > > > > > > I'm considering the use of Kafka in the rewrite of a big legacy > product. > > A > > > good chunk of the back end code is going to be written in C++ (large in > > > memory data-structures). The two possible options available to me for > > > clients appear to be: > > > > > > https://github.com/edenhill/librdkafka > > > > > > and > > > > > > https://github.com/quipo/kafka-cpp > > > > > > The problem is that librdkafka currently only works on Linux due to the > > use > > > of the AF_NETLINK API, and thread local storage. There may be other > > issues, > > > but I just started playing with it today and that's what I've > discovered > > > thus far. > > > > > > kafka-cpp is incomplete (no consumer) and it looks unused. > > > > > > For either I would need to hop in and do some significant work. Is > there > > > any client I'm missing that can shorten my path? > > > > > > If I adopt one of these projects (lets say kafka-cpp) am I better off > > > implementing the 0.8 protocol? I'de like to have something running in > > > staging a couple months from now. How far out is 0.8? > > > > > > Thanks, > > > Matt Stump > > > > > > --089e0115fac62680ef04d969f261--