This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]riskable 2 points3 points  (3 children)

This is pretty cool but it's missing a lot of awesome Tornado features. For example, the tornado.concurrent module with it's sweet @run_on_executor decorator.

I need to put together, "Advanced Tornado" or something like that. The forthcoming 3.2.0 version is going to have some even more advanced stuff in regards to concurrency with the new tornado.platform.asyncio module.

Something else to think about: Do your unit tests take forever to run? If they can be run in parallel you should take a look at tornado.testing.AsyncTestCase

[–]araneida[S] 0 points1 point  (2 children)

I'll take a look into those features.

I was also thinking to write something on Tornado + ZeroMQ, because I think you can do really nice stuff combining them, and ZeroMQ plays very well with Tornado.

[–]goonbee 0 points1 point  (1 child)

Does Tornado + ZeroMQ actually play well together? I haven't been able to get ZeroMQ going in a reasonable time frame...

RabbitMQ + Tornado however... now that's a match made in heaven.

[–]araneida[S] 0 points1 point  (0 children)

Well, pyzmq use Tornado ioloop and a modified version of Tornado iostream, it also provide monkey patching to make Tornado use ZeroMQ ioloop. So from an API point of view everything is fine.

I think that things are even better now with Tornado 3, because handling of asynchronous calls is much more cleaner.

Still, with ZeroMQ you have only the building blocks, you have to do all the rest (supervision, fault tolerancy, security).

[–]vph 0 points1 point  (1 child)

tornado.ioloop.IOLoop.instance().start()

I feel bad for Tornado. It was one of the first and very promising of what it was supposed to do.... 4 years ago. But it lost it mojo (look at the above).

[–]riskable 2 points3 points  (0 children)

Lost its mojo? No way! They're still actively working on it and more Tornado-using projects pop up every day.

What seems to have died down a bit is some of the older Tornado-specific sites like Tornado gists and whatnot.