logo       

Re: Rapid Ajax requests out of order: msg#00069

lang.ruby.rails.spinoffs

Subject: Re: Rapid Ajax requests out of order

That's a possibility, but that would require a delay on the server
side where I buffer X number of connections and make sure they are
ordered correctly before those messages are saved to the db, or sent
off to another user. So, if there has to be a buffer, where?

Joshua Sierles

On 11/12/05, Travis Reeder <treeder-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx>
wrote:
> You may want to try putting sequence numbers on each request so if one comes
> in that is out of order, you'll know.
>
> Travis
>
>
> On 11/11/05, Joshua Sierles
> <jsierles-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote:
> >
> > I'm trying to write an ajax chat. I'm noticing that when ajax requests
> > are fired off
> > in rapid succession, they often will arrive out of order to the
> > server. Has anyone
> > experienced this problem, and perhaps implemented some kind of queueing
> system?
> > Any other suggestions? Thanks!
> >
> > Thanks,
> > Joshua Sierles
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@xxxxxxxxxxxxxxxx
> >
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> >
>
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@xxxxxxxxxxxxxxxx
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise