Hacker News new | ask | show | jobs
by lukatmyshu 5799 days ago
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.

1 comments

Well, yeah. That's precisely what I'm doing. :)