[erlang-questions] Any message queue model in Erlang when doing Comet chat?
Zhuguo Shi
blueflycn@REDACTED
Tue Jul 21 12:23:07 CEST 2009
Hi Perter,
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 <
peter.mechlenborg@REDACTED> wrote:
> Hi
> 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
> if you google for: 'amqp javascript', it seems there is a javascript client
> 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 <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~
> >
> > Thanks
> >
>
More information about the erlang-questions
mailing list