Hello Bjorn,
Thank you a lot for your reply.
I'd like to implement generic infrastructure Event Bus (Pub/Sub) utility lib for our customer.
Actually, we prefer that our customer will not mess with actors but only with our infrastructure/service.
We would like to develop above infrastructure for many divisions that use our service.
We have used AKKA Event Bus for our Pub/Sub requirement and the AKKA Listener package for our broadcast requirement.
One of our requirement is queue data structure, one application on JVM put message in the queue, other application on the same JVM start and takes this message from queue (i.e the producer at first time put the message and then the consumer consumes the message).
So for the queue implementation (i.e. first publisher then producer) I'd like to use akka also, but i have some dilemma about the implementation.
Your insight/directions would be appreciated.
Erwin
On Saturday, April 28, 2012 9:03:57 AM UTC+3, Björn Antonsson wrote:
On Friday, 27 April 2012 at 15:51, Erwin k wrote:
Hello All,
What is the best way to implementing message QUEUE with akka.
Producer insert message in queue, when the consumer will start it'd consume the message.
IMHO, one way is to manage map in producer with id and when the consumer start it will provide the last id that it consumed to the producer and the producer return all messages produced after that id.
Hi Erwin,
I'm note really sure what you are trying to implement? If you have a consumer that is an actor, then the producer can just send messages to the consumer and they are enqueued in that actors MailBox, which is backed by a MessageQueue .
The other way is to use akka.dispatch.MessageQueue.
The trait akka.dispatch.MessageQueue is not something you can use directly, you need a class that implements it. I don't know why you would use that yourself though, since it is used internally by the actor anyway.
B/
--
Björn Antonsson
Typesafe - The software stack for applications that scale
On Saturday, April 28, 2012 9:03:57 AM UTC+3, Björn Antonsson wrote:
On Friday, 27 April 2012 at 15:51, Erwin k wrote:
Hello All,
What is the best way to implementing message QUEUE with akka.
Producer insert message in queue, when the consumer will start it'd consume the message.
IMHO, one way is to manage map in producer with id and when the consumer start it will provide the last id that it consumed to the producer and the producer return all messages produced after that id.
Hi Erwin,
I'm note really sure what you are trying to implement? If you have a consumer that is an actor, then the producer can just send messages to the consumer and they are enqueued in that actors MailBox, which is backed by a MessageQueue .
The other way is to use akka.dispatch.MessageQueue.
The trait akka.dispatch.MessageQueue is not something you can use directly, you need a class that implements it. I don't know why you would use that yourself though, since it is used internally by the actor anyway.
B/
--
Björn Antonsson
Typesafe - The software stack for applications that scale
On Saturday, April 28, 2012 9:03:57 AM UTC+3, Björn Antonsson wrote:
On Friday, 27 April 2012 at 15:51, Erwin k wrote:
Hello All,
What is the best way to implementing message QUEUE with akka.
Producer insert message in queue, when the consumer will start it'd consume the message.
IMHO, one way is to manage map in producer with id and when the consumer start it will provide the last id that it consumed to the producer and the producer return all messages produced after that id.
Hi Erwin,
I'm note really sure what you are trying to implement? If you have a consumer that is an actor, then the producer can just send messages to the consumer and they are enqueued in that actors MailBox, which is backed by a MessageQueue .
The other way is to use akka.dispatch.MessageQueue.
The trait akka.dispatch.MessageQueue is not something you can use directly, you need a class that implements it. I don't know why you would use that yourself though, since it is used internally by the actor anyway.
B/
--
Björn Antonsson
Typesafe - The software stack for applications that scale
On Saturday, April 28, 2012 9:03:57 AM UTC+3, Björn Antonsson wrote:
On Friday, 27 April 2012 at 15:51, Erwin k wrote:
Hello All,
What is the best way to implementing message QUEUE with akka.
Producer insert message in queue, when the consumer will start it'd consume the message.
IMHO, one way is to manage map in producer with id and when the consumer start it will provide the last id that it consumed to the producer and the producer return all messages produced after that id.
Hi Erwin,
I'm note really sure what you are trying to implement? If you have a consumer that is an actor, then the producer can just send messages to the consumer and they are enqueued in that actors MailBox, which is backed by a MessageQueue .
The other way is to use akka.dispatch.MessageQueue.
The trait akka.dispatch.MessageQueue is not something you can use directly, you need a class that implements it. I don't know why you would use that yourself though, since it is used internally by the actor anyway.
B/