Ian Bicking [mailto:[EMAIL PROTECTED] wrote:
> Twisted potentially could be faster than Webware, though I would
> question Twisted's stability as a platform, including the stability of
> its architecture.  The asynchronous model seems to leave open 
> more of a
> possibility that a bug in one part of the application will 
> take down the
> entire server.

That's a very interesting point.  Relevant example: I've had a few instances
(in a couple of years) where buggy 3rd-party closed-source code locked up an
individual thread of my Webware application.  But because Webware is
multithreaded, the rest of the threads just kept on going and there was no
outward sign that anything was wrong, until it became time to restart the
appserver, at which point the wedged threads made it necessary to kill the
appserver forcibly.  I only noticed the problem in the first place because
of some extra logging I've added to my copy of Webware.  I've thought about
adding some code into Webware that could detect wedged threads and report
it, but I haven't done it yet.

If I were using Twisted and I hadn't used its threading mechanism to run the
offending code in a separate thread, it would have frozen the entire
application at this point.

I've never had any problems that brought down the whole appserver.

As for speed, Twisted will certainly be faster if you're looking for raw
speed handling _simple_ requests with no external dependencies, but as soon
as the requests become more complicated, involving database access and a
non-trivial amount of processing to handle each request, the speed
difference would probably become very small.

- Geoff


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to