[Twisted-web] Re: [Web-SIG] WSGI woes

Phillip J. Eby pje at telecommunity.com
Thu Sep 16 17:27:44 CEST 2004


At 10:58 AM 9/16/04 +0200, William Dode wrote:
>But it doesn't mean that i whant to run my application on any
>server. Generaly i use twisted server when i have specials need, like
>telnet, irc... So this application will not run under cgi. But i like
>to can reuse quickly somes litle cgi application under twisted.
>I need the same framework for all the servers to can share 90% of my
>api, to map the url to a resource, for session, cookies...
>
>So, i hope we can find a solution to run simple application anywhere,
>and to be open for very specific uses.

As I said, WSGI should let any WSGI application run under more 
sophisticated architectures like Twisted; it's just that an application 
that uses Twisted-specific features isn't going to be able to move to a 
server that's not Twisted-compatible.

And, if you're using Twisted-specific features in a WSGI app (as opposed to 
just writing a pure Twisted app), you'll have some additional work needed 
to deal with the asynchrony.  However, the only reason I can think of why 
you'd want to make such an application use the WSGI interface is if you 
wanted to be able to use WSGI-based middleware features.  At some point, 
that may be attractive, but I really doubt that in the short term anybody 
using Twisted-specific features in an application would want to bother with 
making it WSGI-compatible.



More information about the Web-SIG mailing list