<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV><FONT face="Courier New" size=2>Twisted Masters,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Has anyone any suggestion on how I might
start on the following task using Twisted?</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>What I would like to do is a type
of server that will serve a number of clients and itself is a client of other
servers. It requires a spool of worker threads to perform time-consuming tasks
and database related tasks. All the network I/O will be handled by a
single async thread using select. A simple diagram below demo the model I would
like to implement.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Thank you.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>
| | | | ^ ^
^
^<BR>
| | | | | |
|
|<BR>
V V V V | |
| |<BR>
+-------------------------------------------------+<BR>
| Network I/O
Thread
|<BR>
| (async-connection using
select)
|<BR>
+-------------------------------------------------+<BR>
|
^<BR>
|
|
<BR>
V
|<BR>
+----------------------------------------+
|<BR>
| Queue
Thread
|
|<BR>
| (to dispatch to the worker threads) |
|<BR>
+----------------------------------------+
|<BR>
|
|<BR>
| +---------------------------------+
|<BR>
+-->| Worker
Thread
|----+<BR>
| +---------------------------------+
|<BR>
|
|<BR>
| +---------------------------------+
|<BR>
+-->| Worker
Thread
|----+<BR>
| +---------------------------------+
|<BR>
|
|<BR>
.
|<BR>
.
|<BR>
| +---------------------------------+
|<BR>
+-->| Worker
Thread
|----+<BR>
+---------------------------------+</FONT></DIV></FONT></DIV></BODY></HTML>