sclasen / akka-kafka

185 stars 62 forks source link

Batch consumer priority #42

Closed haritsE closed 8 years ago

haritsE commented 9 years ago

Hello,

Currently, I have several batch consumer running in my application. But some messages in certain batch consumer must be processed before messages in other batch consumer. Is it possible to specify the priority of a batch consumer over the other? (e.g. process all message in this topic before other batch consumer process theirs)

sclasen commented 8 years ago

@haritsE thats not part of this library, but I assume that simply using a priorty mailbox on your reciever actor would do what you want? http://doc.akka.io/docs/akka/2.4.1/scala/mailboxes.html#PriorityMailbox

haritsE commented 8 years ago

Ah great, thanks @sclasen!