News for hackers. Stuff that matters.
Re:Nginx module to turn it into a long-polling message queui... by mrshoe on Friday October 16, 2009 @11:24AM (#885522)
If I'm reading the docs correctly, you'd have to make a server-side HTTP request from your synchronous app to nginx for each message you want to push to each client. I'm pretty sure that will be prohibitively slow.

It would be much nicer if you could make one server-side request for each event, and have nginx track which clients are interested in that type of event and even queue that event for a while for clients that are yet to connect.

Re:Nginx module to turn it into a long-polling message queui... by labria on Friday October 16, 2009 @11:30AM (#885535)
No. You just set the "push_listener_concurrency" setting to "broadcast", and have as many listeners on one channel as you like.
Re:Nginx module to turn it into a long-polling message queui... by danielrhodes on Friday October 16, 2009 @01:49PM (#885822)
HTTP prohibitively slow? You don't say! :-)

If this does become an issue, it is a tradeoff between speed and memory usage and ease of implementation.