Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> Re: kafka internals -- and example client code

Copy link to this message
Re: kafka internals -- and example client code
Yes -- thanks for this post.

I am new to Kafka, and I'd like clarification on one point. The
classes referenced by this post:


are the canonical Scala classes for writing Producer and Consumer
clients, correct? I am comparing these docs to the example clients
(particularly the Python and C++ examples). It seems the example
clients simply hard-code values such as "Partition ID", whereas these
docs show the complete way to access such information.

By the way, it seems that if one has to hit Zookeeper every time
before sending a message to Kafka, throughput will take a hit. If one
wants a high-performance system, clients must "use [a] local copy of
the list of brokers and their number of partitions". Is this also



Philip O'Toole
Senior Developer
Loggly, Inc.
San Francisco, CA

On Wed, Aug 29, 2012 at 6:12 PM, Pankaj Gupta <[EMAIL PROTECTED]> wrote:
> Hey Ming,
> Thanks for blogging. Kafka documentation is really good but it is always good to see it  from another perspective.
> Pankaj
> On Aug 29, 2012, at 3:57 PM, Ming Han wrote:
>> I wrote a blog post about some of Kafka internals, if anyone is interested:
>> http://hanworks.blogspot.com/2012/08/down-rabbit-hole-with-kafka.html
>> Thanks,
>> Ming Han