Tuesday, June 05, 2007 Vienna 1 Comments
When building Wimbomedia, I encountered the problem of managing multiple HTTPRequests. In order that a new HTTPRequest does not interrupt or kill the previous one, I needed some sort of queuing abstraction that will wait until the previous request was completed (or aborted) before moving on to the next one. FIFO is a computer acronym
for a concept called "First In First Out". It is a common principle in managing messages on operating systems because, lest we forget, even offline platforms have to deal with lag!
Imagine a hungry customer arrives at a counter in McDonalds to find a family of five in the throes of indecision.
The person serving at the counter would wait until the family has received their order or decided they fancy Berger King instead, before asking the hungery guy to place his order. Well that's FIFO right ther — "First come, first served"! And that's how I'll propose to solve the multiple Ajax request problem.
more »