[erlang-questions] Any message queue model in Erlang when doing Comet chat?
Tue Jul 21 12:40:59 CEST 2009
On Tue, Jul 21, 2009 at 10:12, Zhuguo Shi<blueflycn@REDACTED> wrote:
> Hi there,
> I am doing Comet chat with Erlang. But when I send message using "Pid !
> Msg", some of messages will lost, especially in a high sending frequency. So
> I wonder if there is any message queue model or data structure, or any way
> to solve this problem?
> Any suggestion is of great appreciation~
According to my experience this should not happen. To back this up -
Erlang Reference Manual  states that:
"Message sending is asynchronous and safe, the message is guaranteed
to eventually reach the recipient, provided that the recipient
Basically if process model in your application is properly constructed
and maintained (i.e. you never send a message to non-existing process)
you should not experience message loss.
More information about the erlang-questions