-
Website
http://bret.appspot.com/ -
Original page
http://bret.appspot.com/entry/tornado-web-server -
Subscribe
All Comments -
Community
-
Top Commenters
-
eas
3 comments · 4 points
-
mndoci
5 comments · 2 points
-
Jud Valeski
3 comments · 1 points
-
sospartan
2 comments · 1 points
-
Aviv Shaham
2 comments · 3 points
-
-
Popular Threads
-
OAuth WRAP support in FriendFeed for feedback - Bret Taylor's blog
1 day ago · 4 comments
-
OAuth WRAP support in FriendFeed for feedback - Bret Taylor's blog
I've been a big fan of the FF API, esp the realtime stuff.
I have a feeling this will plug nicely into rssCloud.
:-)
Given all those factors, it didn't seem to provide a lot of value. Our core I/O loop is actually pretty small and simple, and I think resulted in fewer bugs than would have come up if we had used Twisted.
It seems like a gratuitous comment. Most protocols implemented in Twisted are the most achieved implementations available in Python. Coming from a project where we can't see any single unittests, I'm a bit skeptical.
The complexity in Twisted core loop also comes from the support of multiple platforms. I can also see the ideas that were picked from the Twisted implementation in your loop code :) I'd like to see what would Tornado loop looks like if it supported OS X and Windows (in an efficient way, select doesn't really count).
Also, did you consider edge-triggered epoll? It would be a really interesting test that could make a real difference from Twisted.
The bigger issue is that there are places where tornado could be used today to do great good if it were built on twisted (things like buildbot really need a web framework).
Of course, I don't mean to sound like I don't appreciate the work you guys did and gave away. I was very excited to see it. I just can't use it for anything right now. :(
http://www.apparatusproject.org/blog/2009/09/tw...
Since Twisted has extensive unit tests and a hard policy of not changing code without accompanying unit tests, there is a lot of functionality in it that I'm sure is not buggy. However, this might not be the same functionality that you were trying to use. A bug report would give us insight into that.
http://github.com/dustin/tornado
10 files changed, 92 insertions(+), 1389 deletions(-)
I also saw that someone filed an issue against tornado about running async system commands and displaying their output. If you go about three minutes into this video: http://www.vimeo.com/5998733 you'll see Matt Ingenthron demonstrating a twisted-based web server I wrote that runs system commands and streams replicates of the output (processed through a python filter) to whomever happens to be looking.
This is why Tornado is both interesting and mildly frustrating. I've got a handful of little frameworks like the above that are doing useful realtime web stuff that could all use an easy to use web framework that doesn't block. Hopefully by porting tornado to twisted, I can get some more web attention directed at these projects.
I really like this project, but Django and this aren't really comparable and suit totally different projects. Are you using Django for something overly simple that wouldn't require most of it's functionality and are getting stuck on something ?
I am assuming Tornado could easily run on google app engine?
Keep up the great work, what I like the most and I really hope you will keep while tornando evolves is the KISS approach, no orm, and (as you said) "à la carte" additional features.
If so do you think we will be able to maintain the connections? http://groups.google.com/group/google-appengine...
I don't get it. The more I think about it, the more I dislike it. What a colossal wasted opportunity. It would have been so much less effort to have thrown your weight behind using Twisted core and helping twisted.web, and you would have ended up with a better result to boot. It's a bit late to be all community friendly. I don't blame you for doing things your own way, it's just the scale of the missed chance that really gets to me. Why didn't you bother to show up in the Twisted community, ask a few questions, ask for help, suggest some directions, air your grievances with Twisted.web etc? I did all that, and the reaction from the Twisted folk was always superb. No, you had to go off and try to re-invent the whole friggin thing. Jeez.
http://www.bagoscomp.com
When you say CherryPy was running "standalone" do you mean it was tested running its built-in web server? I'm not being defensive, critical or sceptical, merely interested :)
If MS where the biggest search engine then he may have charge us for searching or shown a popup ads in between .
After exploring Tornado and trying it out, I am growing incredibly fond of it, especially it's ease of use (and Python is not looking to difficult from here, lots of similarities to Ruby).
Thank you!
Eiso
So I would like to recommend one of my client who provides solutions in both PHP and .Net technologies.
http://www.redalkemi.com
class LoginHandler(tornado.web.RequestHandler):
def post(self):
# Process login username and password
self.set_secure_cookie("user_id", user["id"])
self.redirect("/home")
throws the following exception ...
Exception: Cannot redirect after headers have been written
Am I missing something ?