4 ms·
This was the feedback from the twisted community when it launched. There were lots of issues they found in a cursory glance. My complaint (and I heard the sam
by dlsspy 16y ago
This was the feedback from the twisted community when it launched. There were lots of issues they found in a cursory glance.
My complaint (and I heard the same complaint from a developer as recently as yesterday) was that they tossed away all compatibility with everything that existed in order to solve one specific problem. Then people tried to use it as a general solution.
I spent an hour or two soon after tornado was released figuring out how to take the good parts of tornado and the good parts of twisted and put them together for this reason: http://dustin.github.com/2009/09/12/tornado.html http://dustin.github.com/2009/09/12/tornado.html The result (without any attempt to optimize it) was a reducing in raw performance, but the ability to actually do ridiculous numbers of things you can't do in tornado even today.
- BarkMore 16y agoTornado solves the specific problem of building web applications. What compatibility was tossed in accomplishing this goal? As far as I can tell, Tornado is compatible with HTTP, HTML and other related web standards. What are some of the things that you can do with your version of Tornado that I cannot do with regular Tornado?
- dlsspy 16y ago* Use relational databases (the mysql samples shipped with tornado blocked all network traffic while mysql was performing a query). * Use non-relational databases (I have a couchdb interface for twisted, and a blocking one for regular python, nothing for tornado) * Use memcached (it's fast, but it blocks) * Make long-lived streaming http requests (cited in my blog post) * Spawn and communicate with subprocesses that might be not be instant * Schedule periodic execution of events (including http requests) * Run efficiently on BSDs and OS X * Send email * Do DNS lookups (important part of making service requests) * Use work queues (beanstalkd, gearman, ampq, etc...) These are things I do with twisted today (though I've got at least one app I've moved to node.js for small kind of small scripty sorts of thing). Again, you can run arbitrary python code, but if it blocks, it stops all traffic from flowing and new connections from coming in.
- BarkMore 16y agoAll of these things are possible with Tornado by using simple blocking calls and running more than one instance of the Tornado application behind a reverse proxy. If one instance blocks, then there are other instances of the application to handle new requests. FriendFeed uses Tornado with MySQL (I learned this from Brett Taylor's blog). It seems to work.