Re: Re: why kafka producer api use cpu so high?

2014-05-11 Thread Eric Sammer
If a process is CPU bound (which this producer almost certainly will be), it's going to consume as much CPU as it can to do what what it does. The test is flawed. Because there's no end state, the while loop is just going to burn CPU and, because it's singly threaded, it will take a single core. A

New consumer APIs

2014-05-11 Thread Eric Sammer
All: I've been going over the new consumer APIs and it seems like we're squishing a lot of different concerns together into a single class. The scope of the new Consumer is kind of all over the place. Managing the lifecycle - and especially the thread safety - seems challenging. Specifically, Cons

Re: New consumer APIs

2014-05-16 Thread Eric Sammer
commit()? In general, before proposing any > changes, I'd like to understand what you are hoping to achieve with the > consumer APIs. > > Thanks, > Neha > > > On Fri, May 9, 2014 at 1:19 PM, Eric Sammer > wrote: > > > All: > > > > I've been