145 points · by ryan-allen · 16y ago · 76 comments
make all install PREFIX=$HOME/opt/mongrel2
http://github.com/bnoordhuis/mongrel2From your commit log:
> Disable target install-py for now, it requires sudo.
Agreed: re: disabling app that needs root unnecessarily. I don't want anything fucking with my OS python.
Have you considered having it simply call pip instead, so it installs to the current virtualenv?
Any ideas on it other than disabling?
I'm not sure I understand the motivation for putting the code on github unless changes can flow both ways.
But, I really should just follow this so I can get the changes as an email.
Based on anecdotal evidence only, it seems the rate at which articles move up and down the HN frontpage pretty much ensures you'll see everything that hits the front page per day if you check HN twice - once in the morning and once in the late afternoon or evening.
I don't think that's too much HN browsing to prevent you from being uber productive, as long as you're not also browsing tons of other sites on the net too.
Perhaps some examples of its benefits right in the introduction?
I haven't tried it yet. But it's certainly interesting.
There's no way I can use it for anything remotely close to production but I have some hobby ideas baking...
In fact, there's been discussions on the httpbis list to downplay or remove HTTP pipelining since it's ambiguous and causes performance headaches.
"In Mongrel2 we use a parser that rejects invalid requests from first basic principles using technology that's 30 years old and backed by solid mathematics."
The mind boggles... (Unless he's just being satirical here).
Personally, my advice to anyone thinking of using mongrel2 would be to write your own webserver. You'll learn far more than you ever dreamt. If a webserver isn't that important to your success/failure, use a battle-worn webserver - apache etc
IMHO a webserver is one of the things you want to be relaxed, laid back, and basically not care if the client gets things wrong. Just serve up what they look like they wanted.
EDIT: I see now that it's "language agnostic" based on using ZeroMQ to shuttle request/responses between Mongrel2 and a language with a ZeroMQ library. Sounds cool, but also makes me wonder exactly how that's different from someone writing, say, mod_zeromq for Apache, and attaching handlers to ZeroMQ in the same way Mongrel2 does? Am I missing something?
In Mongrel2 it's kind of like every thing's long poll or an async socket. That let's you do a ton of very cool things you can't do easily in Apache or other web servers. Sure you could hack them in, but it's a nightmare.
Want to write a backend in PHP for a real-time chat? That is very difficult with Apache and mod_php. With Mongrel2 and ZeroMQ, it is almost trivial.
Mongrel2's asynchronous pub/sub networking paradigm opens up possibilities for real-time communication to browsers. When websockets get real, Mongrel2 may very well be the way we all start using them.
Where Mongrel2 has some ground to cover is handling traditional server-generated pages. Want to run an existing PHP application with a framework like CodeIgniter? You can't do it from Mongrel2 without proxying to nginx or apache (yet). Hopefully this is something that will come along in Mongrel2 v2.0.
I have written several HTTP servers myself, and I know it's doable, but the world does not need another webserver that only has this distinguishing feature.
My question is if all of this can be done with Mongrel2?
http://mongrel2.org/doc/tip/docs/manual/book.wiki#x1-40001
The features sound cool and significantly evolved past current webservers. And the documentation is extensive and so far, an enjoyable read - now that's impressive. :)
Mongrel was written by Zed in Ruby. Mongrel2 is a new project.
/this note is me sharing what I've learned from zed's tweets, I've not played with the software yet, please correct if wrong.
Also, "does seem like a sensible choice"?
Apart from that, it's completely written in C and uses language-agnostic ZeroMQ to pass "requests" back to the handler than can be written in any language with a ZeroMQ library (pretty much all of them).