Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Matt Feifarek <matt@da...> - 2004-06-04 20:28:15
A year ago or so, a few of you talked about integrating WK with Twisted.
Those discussions of last year revolved around various integration
levels: moving servlets to resources, for example, but at this point I'd
like to consider Twisted just as an adapter: writing an adapter in
Twisted to marshal a request and send it to a waiting AppServer, ala
mod_webkit et al.
I'd like to open that discussion again, because we're interested in
(occasionally) replacing Apache deployments with Twisted, but still
having WK behind certain parts of the URI tree.
Without digging much, it seems like it would mostly be easy; the CGI
adapter code can be adapted to twisted without too much effort, I expect.
But some theoretical questions:
1. Would this be a "Resource" or a protocol/factory?
2. Given that Twisted is async, and WK is not, what are ways to keep
twisted from blocking as WK runs a servlet? Of course, there is
threading in twisted, but once the servlet has run and has made a big
honkin' string (http data) it would be nice to cough that down to the
client asynchronously. This would have implications for response.flush()
3. Am I crazy? Maybe.