Need some IPC pointers

Andrew Berg bahamutzero8825 at gmail.com
Wed Nov 30 17:19:39 EST 2011


On 11/30/2011 3:32 PM, Devin Jeanpierre wrote:
> You could also use threads and pipes. (I'm not actually
> sure how threads+pipes works, but I'm told that it's a viable
> approach).
Sounds interesting, but I'm not familiar with threading (not that I
wouldn't be willing to learn).
Is it even possible to pipe into a running process, though?

> For what it's worth, I wrote something potentially similar using Twisted
> and AMP. AMP is an Asynchronous Messaging Protocol: this basically
> means that clients and servers can send messages to each other at any
> time in any order. Twisted makes sure that the right response gets
> associated with the right message. This can be very convenient -- you
> might request something from another process, and then to compute its
> answer it might ask for some additional information from you, and then
> you give it that information, and it sends back the final result.
> 
> All the communication is done over TCP, usually using Twisted. So this
> does involve bringing in a fairly large dependency.
Sounds like overkill, but I'll take a look.

-- 
CPython 3.2.2 | Windows NT 6.1.7601.17640 | Thunderbird 7.0



More information about the Python-list mailing list