[erlang-questions] Any message queue model in Erlang when doing Comet chat?

Zhuguo Shi blueflycn@REDACTED
Wed Jul 22 03:12:21 CEST 2009

Hi Peter,

I did the checking by sending messages in a high frequency, like you enter
some letters and press the "send" button quickly. My comet chat is like
Facebook's and the polling connection is automatically disconnect and
reconnect in 10 senconds (Facebook is about 50 seconds). So I doubt if you
send a message to a user that just disconnected and have not connected, the
message will lost.

The test result is not good before I added the database sync mechanism. I am
not sure if there is any problem in my code or test. I did this comet chat
prototype just according to Richard's series (

Any suggestions?

On Tue, Jul 21, 2009 at 6:27 AM, Joel Reymont <joelr1@REDACTED> wrote:

> On Jul 21, 2009, at 11:23 AM, Zhuguo Shi wrote:
>  It works well in most conditions but I want to find a reliable way to
>> solve
>> this problem, like a message queue.
> Are you sure that messages are being lost with Pid ! Msg?
> How are you checking?
>        Thanks, Joel
> ---
> Mac hacker with a performance bent
> http://www.linkedin.com/in/joelreymont

More information about the erlang-questions mailing list