On Tue, 2003-02-25 at 11:51, Clark C. Evans wrote:
>   Transaction  - created for each http incoming request and
>                  its response (thread safe storage); in Twisted this 
>                  is just "request"
> 
>   Servlet      - a singleton created once (but not thread safe, 
>                  but items shared across all transactions); in 
>                  twisted this is a "resource"

I'm not clear how this would work.  If the servlet isn't threadsafe, how
can the application be threaded?  Are you proposing a model more like
HTTPServlet, less like Page?  Thread safety just seems like a burden to
me -- if you want to share resources module globals or class variables
are just as easy, and since it's not threadsafe you can also use
instance variables.

> The other aspect I like about Twisted is the "dispatch" mechanism
> it uses to find a servlet; it is not only simple but extremely 
> flexible.  I say this beacuse I was able to do path variables 
> out-of-the-box (2 hours) with this tool; in Webware I've been 
> maintaining a patch for over a year, and this patch isn't ideal.

Can you give a pointer to that?  I'm interesting in changing how paths
are parsed in Webware, but I've never felt confident 

> | Although I'm by no means opposed to adding more protocols to the app 
> | server. We're already doing HTTP via Ian's earlier contrib.
> 
> Does that work?  I tried it once or twice and gave up about a 
> year ago...

Yes, I added support less than a year ago (a couple months ago I
think).  If you look at WebKit/HTTPServer.py, it implements one
example.  There still isn't real support for non-HTTP requests (though
you can fudge and shove other requests into HTTPRequest).  That's
probably fairly easy to fix.  There's also an underlying assumption that
transactions are more-or-less stateless, like HTTP.  FTP support, for
example, would probably involve a thread that held onto the state (and
the connection), and pushes out requests to the AppServer.  So it might
make sense to trim the AppServer down and move the servers out of it.

  Ian




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to