Twisted or Tornado?

J

Jake Angulo

I have to say it first: I am not trolling :p

Im working on a server project (with IOS client) and would like to create a custom, lean and mean server - real Quick!

My requirements for this framework in descending order:
1) Easy to use API
2) Widely available documentation / Examples / Community contributions
3) Feature-wise - kinda most that you commonly need is there

Your opinions will be valuable, if possible cite examples or URL references, Pls!

I prefer opinion from those who have programmed real projects in it - not just read some blog or Slashdot :p
 
M

Michael Torrie

My requirements for this framework in descending order: 1) Easy to
use API 2) Widely available documentation / Examples / Community
contributions 3) Feature-wise - kinda most that you commonly need is
there

By this I take it you mean you want to export a standard web services
API, right (RPC over HTTP)? Or are you insisting on writing your own
protocol?

If it's the first, I recommend something like web2py.
http://web2py.com/books/default/chapter/29/10. Or Django. Sounds heavy
but it's really not that bad especially if you don't need a real web UI,
but are just exposing an RPC api.

If it's the second, then, well, yes Twisted will work great, provided
you can understand how it works. It's actually not that complicated, but
python's dynamic nature can sometimes hide how things work from you at
first and what exactly is getting passed around from function to
function. Took me about a month to really grok Twisted. Now that my
project is done (quite successful actually... a full-blow LDAP proxy
server), I have forgotten much about how Twisted works.

In another vein, there's node.js as well. Apparently it's being used a
lot to implement quick and dirty services like what you need.
I prefer opinion from those who have programmed real projects in it -
not just read some blog or Slashdot :p

Ha.
 
M

Michael Torrie

All,

Thanks for your reply - I thought I would share the outcome of my choice:

I have chosen to use twisted. The API is very decent to learn, though the
clincher is theres huge community / docs, and many projects used on
production.

I was able to make a working project prototype in hours!
Thanks to the large twisted library.

Sweet! Thanks for letting us know the outcome. I think that's one of
the most rewarding things about working with Python (and it's many
libraries, frameworks, and projects). It's so fast to get a prototype
up and running.
 
A

Andriy Kornatskyy

Jake,

Don't you lock yourself in twisted application server only? I doubt you will be able easily migrate to WSGI compatible application server as your needs grow.

Andriy

________________________________
 
W

Werner Thie

Hi


I'm happy with twisted programming browser based multi-player games for
several years now. I wouldn't say that the learning curve was steep,
rather the opposite, but the gain from a clean async programming model
as it is implemented in twisted really makes the difference for me, not
only in writing games, but even more in maintaining them long term.

It's also interesting to see, that this clean async model of twisted and
its host of already provided protocols allowed me to implement solutions
in notoriously problematic areas like overall stability, fault
tolerance, load induced behavior, server analysis,
multicore/multimachine capabilities and hot deployment with ease.

Cheers, Werner
 
S

system.healer

Second on django. This'll do.

https://bitbucket.org/jespern/django-piston/

Build whatever data models you want on the back-end and start spitting out JSON with a couple lines of code.

Used this to build an IAP server for iOS apps. This one hasn't gone into production yet but I know of at least one high-profile platform developer that was using this same setup for years.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top