Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Node.js, redis, and resque (via) Paul Gross has been experimenting with Node.js proxies for allowing web applications to be upgraded without missing any requests. Here he places all incoming HTTP requests in a redis queue, then has his backend Rails servers consume requests from the queue and push the responses back on to a queue for Node to deliver. When the backend application is upgraded, requests remain in the queue and users see a few seconds of delay before their request is handled. It’s not production ready yet (POST requests aren’t handled, for example) but it’s a very interesting approach.

Tagged , , , , , ,

1 comment

  1. This is basically what Apache does right now, I believe. It has an internal queue of requests, and workers pull from that queue. If a worker goes down (e.g. for restart), then it doesn't pull from that queue. It's not necessarily exposed in an obvious way, but used the right way Apache basically does this.

    Ian Bicking - 28th February 2010 23:07 - #

Sign in with OpenID

Auto-HTML: Line breaks are preserved; URLs will be converted in to links.

Manual XHTML: Enter your own, valid XHTML. Allowed tags are a, p, blockquote, ul, ol, li, dl, dt, dd, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, sub, sup, br, pre

A django site