<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I would love something like #2 (below).<div>What about an ESI nginx module?</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><a href="http://www.akamai.com/html/support/esi.html">http://www.akamai.com/html/support/esi.html</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;">I just learned about ESI at RailsConf and it sounds and looks amazing. Everything I read about it makes me say "YES!".&nbsp;</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;">I would think nginx would be a great platform to build ESI caching on top of, but I'd could also be totally wrong.</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;">BJ Clark</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;">Inigral</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-size: 14px;">inigral.com</span></font></div></div><div><br><div><div><div>On Jun 7, 2008, at 3:00 PM, Evan Miller wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>MichaƂ Jaszczyk &lt;jasiu85@...> writes:<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi guys,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I did a little research on how Nginx supports Ruby/Rails and if I'm<br></blockquote><blockquote type="cite">right, you can only do proxy or FastCGI to make it working. So I<br></blockquote><blockquote type="cite">thought... There's this mod_wsgi module for Python apps which I have<br></blockquote><blockquote type="cite">recently used and I find it really great. Why not do the same for<br></blockquote><blockquote type="cite">Ruby/Rails? I'm a CS student, I'm looking for a subject for my masters<br></blockquote><blockquote type="cite">thesis and I thought that maybe I could create such module. I have<br></blockquote><blockquote type="cite">some questions:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1) Do you think that making mod_ruby/mod_rack/mod_rails is a good idea?<br></blockquote><blockquote type="cite">2) Do you know if someone is already working on something like that?<br></blockquote><blockquote type="cite">3) Do you think it would be useful?<br></blockquote><blockquote type="cite">4) Would you/your friends/collegues be happy if you had such a module<br></blockquote><blockquote type="cite">for Nginx? :)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Mike<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>Such a module would be useful as a Mongrel replacement. At one point Zed Shaw <br>(author of Mongrel) was considering rewriting Mongrel as an Nginx module. So <br>it's not an inherently bad idea.<br><br>Performance-conscious setups would use a front-end Nginx process that proxied <br>to multiple Nginx/mod_ruby processes.<br><br>The question I would ask is: Why is Mongrel insufficient?<br><br>If you're looking for an big Nginx-related project, here are a couple other <br>ideas:<br><br>1. Embed a scripting language for configuration, and make it use non-blocking <br>IO (e.g. for LDAP authentication). This has been batted about in various forms <br>for some time.<br><br>2. Make Nginx work as an HTTP proxy server (not just a reverse proxy). Bonus <br>points for caching. HTTP was designed with caching proxies in mind, but very <br>few have been written. There's Squid, but I bet Nginx could beat its pants off <br>in terms of performance. This project would entail a number of useful sub-<br>projects, e.g. async DNS and HTTP/1.1 upstreams, that will benefit many Nginx <br>users.<br><br>Evan<br><br><br></div></blockquote></div><br></div></div></body></html>