Hi Matt -
On May 21, 2006, at 5:04 PM, Matt Goodall wrote:
Thread-based systems are by no means impossible but they're a lot
more difficult to get right, as Michael's comments confirm.
I wouldn't be at all surprised if there are still some lurking
problems in Myghty.
Concurrency can be hard even with event based systems; threads
generally make it harder.
will decline the bait on myghty. not sure if youre saying "event
based systems are harder to write if they use threads", or if
"threaded programming is harder than non-threaded event-based
programming". if the latter id say its a matter of what youre used to.
single request per single thread...this is how every threaded web
application server ive ever seen *except* for twisted does it.
That's because Twisted is not threaded ;-).
Twisted supports threads but avoids using them when possible.
Twisted definitely does not use threads to process HTTP requests.
well yes, in the case of twisted i meant the single application
thread of its process. the main idea was ive never seen a web server
that schedules multiple requests non-sequentially into one thread or
one non-threaded process...but if lighttpd is doing it, then there
you go...probably why its so fast.
although i hear Lighthttpd is the bomb too, and i just checked
http://www.bittorrent.com/ which serves millions of hits a day
using Myghty and its actually using lighthttpd, which uses a
threaded model.
Erm, lighthttpd is most certainly not threaded. It uses a select/
poll/whatever event loop (like Twisted).
I don't know how the bittorrent.com guys connect lighttpd to the
Myghty bit but I guess they use SCGI or FastCGI.
right, slip again, i think hes using it with the fcgi gateway, so the
python side is threaded (actually just checked and it does the "new-
thread-per-request" thing too, so there goes my theory about that....)
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users