News for hackers. Stuff that matters.
Re:Starbucks Does Not Use Two-Phase Commit by lukatmyshu on Wednesday July 28, 2010 @01:39PM (#1554997)
This is generically how long-polling usually works (you have one fast channel for sending messages, then a persistent HTTP connect (either using longpolling or http streaming) to send back responses/results.

However it doesn't seem like you would need that type of architecture unless you need to push data from the server to the client (like email updates or instant messages). There's no real harm in having the first connection open while the server is processing the request.

Re:Starbucks Does Not Use Two-Phase Commit by Twisol on Wednesday July 28, 2010 @02:07PM (#1555101)
Well, yeah. That's precisely what I'm doing. :)