Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the preferred method for TCP/IP IPC in stackless Python?

Stackless python allows you to serialize a task (pickling) for later execution that need not be on the same machine: http://www.stackless.com/wiki/Pickling

My question is does stackless python provide any kind of IPC, middleware, service broker, or DDS technology for moving these pickled tasks between processes and or machines? Is it really that we need to use a socket here?

They have this nice concept of a Channel: http://www.stackless.com/wiki/Pickling

That would be awesome if channels worked across machines and you could simple register a channel with a service broker on a network. In essence, allowing you to move your tasks to different stackless python services located on different machines.

like image 965
Ryan R. Avatar asked Mar 08 '12 02:03

Ryan R.


1 Answers

The stacklessexamples project lists a number of approaches to do networking; most closely related to your question might be the rpc example.

like image 91
Martin v. Löwis Avatar answered Oct 07 '22 05:10

Martin v. Löwis