[erlang-questions] Any message queue model in Erlang when doing Comet chat?
Tue Jul 21 12:23:07 CEST 2009
For the moment I store all the messages in database with a timestamp, also I
store the timestamp that every polling connection last received messages.
Before every polling connection established I check the timestamp between
message and the polling connection so that I can know what messages that
haven't been sent yet.
It works well in most conditions but I want to find a reliable way to solve
this problem, like a message queue.
On Tue, Jul 21, 2009 at 5:11 AM, Peter Mechlenborg <
> I'm doing some comet stuff myself. Started from
> http://yoan.dosimple.ch/blog/2008/05/15/, it works great, thanks Yoan.
> I haven't seen any reliable communication protocol specific for comet, but
> for AMQP. I haven't tried it so I can't say how it works, but maybe it
> solves your needs.
> If you do find a good way to do reliable communication over comet, I would
> be interested in hearing about your experiences...
> Have fun,
> -- Peter Mechlenborg
> On Tue, Jul 21, 2009 at 10:12 AM, Zhuguo Shi <> 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
> > to solve this problem?
> > Any suggestion is of great appreciation~
> > Thanks
More information about the erlang-questions