Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to spawn long-running-processes in Twisted
    primarykey
    data
    text
    <p><strong>Preface</strong></p> <p>I'm writing an web-server that gives to users an access to some program written on C (I'm using an Python wrapper over this C-program, it is <a href="https://sourceforge.net/projects/pyclips/" rel="nofollow">PyCLIPS</a>). To serve a lot of users, the web-server has to start a lot of copies of this C-program, because one copy can serve very few users in the same time, about 1-3 users. In addition, each user should work only with his own copy, therefore should be a lot of copies of the C-program. </p> <p><em>This C-program is a <a href="http://clipsrules.sourceforge.net/" rel="nofollow">CLIPS engine</a> if it'll help to understand.</em></p> <hr> <p>So, to solve this design problem, I want write a Twisted TCP server that will be like a pool of long-running-processes. Each of long-running-processes is a small Twisted TCP server that gives an access to one copy of the C-program. </p> <p>In example, a user ask the pool-server to reserve a long-running-process for him, then the pool-server create and run a long-running-process that starts listening on some port, then the pool-server return the host and port of this long-running-process to user. Now, user can communicate with this long-running-process directly. </p> <hr> <p><strong>Questions</strong></p> <ol> <li>How start these long-running-process from the pool-server? The pool-server and each of long-running-processes are should be separate Twisted servers.</li> <li>Is Twisted a good choice for these aims?</li> <li>Maybe there are another ways how solve this design problem?</li> </ol> <p>Thanks a lot.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload