3 ms·
Sounds like there are a ton of compelling reasons to try it.
by mikeryan 16y ago
Sounds like there are a ton of compelling reasons to try it.
- jshen 16y agoAs someone who runs multiple sites and who doesn't have a major problem with apache, what here should compel me to try it? Ragel parser? Um, why should I care if I'm not going to dig into the code myself? because zedshaw is so fucking awesome? Not a compelling reason to try a web server to me, is it to you? sqlite configuration? Maybe, but that's not super compelling to me at the moment. despite my sarcasm, my question is sincere. I'm curious how mongrel2 could be an improvement over what is currently used, which for me is mostly apache Any other reasons?
- zedshaw 16y agoI'm a firm believer that if it ain't broke don't fix it. If you've got multiple sites working with Apache and you know how to keep that going smooth, then stick with that. Especially if you're doing small to medium sites in say PHP. PHP and Apache are kind of the king and queen of the realm. What Mongrel2 has over Apache is it's ability to run async jssockets, HTTP long poll style work, and regular HTTP at the same time. If you hit an application where you want to do some async socket type stuff, that's when you should look at Mongrel2. Of course, that's not all it does, but if you already love your Apache and it's crazy config file format and weirdo 1995 style syntax, then Mongrel2's only addition is the extra protocols.
- jshen 16y agothanks, that makes perfect sense. No, I don't love apache's crazy config file format, but I don't update the config often and it's mostly copy and paste when I need to add something new. It's rails with passenger which is pretty easy. I'll definitely check out the async stuff, that is compelling!
- alexgartrell 16y agoThe name of the game is flexibility. Configure your web server in any language you want (so long as it has sqlite bindings). Serve your web pages from any back-end you want (so long as it has zeromq). Has it turns out, zeromq and sqlite are low barriers to entry for any language. You're right though, in that you can do all of this with apache, if you're willing to write the right config generator and install (or create) mod_*. Mongrel2 just makes it easy. edit: Also, what zed said :)