Re: Kafka and Binary Data

2011-12-01 Thread Jun Rao
; > Sent: Thursday, December 01, 2011 2:57 PM > > To: kafka-users@incubator.apache.org > > Subject: Re: Kafka and Binary Data > > > > Hi Casey, > > > > Yes, you can send messages as byte arrays. If you look at the constructor > > of the Message class,

Re: Kafka and Binary Data

2011-12-01 Thread Evan Chan
l.com] > Sent: Thursday, December 01, 2011 2:57 PM > To: kafka-users@incubator.apache.org > Subject: Re: Kafka and Binary Data > > Hi Casey, > > Yes, you can send messages as byte arrays. If you look at the constructor > of the Message class, you will see - > > def this

RE: Kafka and Binary Data

2011-12-01 Thread Sybrandy, Casey
Perfect, thanks! From: Neha Narkhede [neha.narkh...@gmail.com] Sent: Thursday, December 01, 2011 2:57 PM To: kafka-users@incubator.apache.org Subject: Re: Kafka and Binary Data Hi Casey, Yes, you can send messages as byte arrays. If you look at the

Re: Kafka and Binary Data

2011-12-01 Thread Neha Narkhede
Hi Casey, Yes, you can send messages as byte arrays. If you look at the constructor of the Message class, you will see - def this(bytes: Array[Byte]) Now, looking at the Producer send() API - def send(producerData: ProducerData[K,V]*) You can set V to be of type Message and K to what you want

Kafka and Binary Data

2011-12-01 Thread Sybrandy, Casey
All, Can one send byte arrays as messages to Kafka without having to encode them, such as using Base64? We're trying to be as space efficient as possible, however any gains made by using binary data formats, such as BSON, are lost when we Base64 encode the data. I tried once before, but got a