<div dir="ltr">Hi,<div><br></div><div>I am exploring Twisted Web for my RESTful application. My application is stateless and involves storing and retrieving objects based on Object-ID. This application will run on beefy (multicore, lots of memory) machine. However, not all APIs that the application issues to underlying storage are async and hence I cannot fully utilize Deferreds</div><div>Which means, there will some blocking calls and hence my primary interest is to use Twisted Web in multiprocessing mode</div><div><br></div><div>I came across <a href="http://stackoverflow.com/questions/10077745/twistedweb-on-multicore-multiprocessor">http://stackoverflow.com/questions/10077745/twistedweb-on-multicore-multiprocessor</a></div><div><br></div><div>However, I am not sure if it is the "correct" way of doing things.</div><div><br></div><div>Hence I had some questions around it:</div><div><br></div><div>1.  Is there an interface (similar to defertoThread) which allows me to execute a blocking call in a separate process ?</div><div><br></div><div>2. Does reactor synchronize access of all processes to the shared listen socket ?</div><div><br></div><div>3. Is there a sample code I can refer to  where the application is spawning subprocesses to handle HTTP requests ?</div><div><br></div><div><div>Thanks in advance!</div><div><br></div>
</div></div>