timClicks/cop — Issue #2: Remote execution
Author: timClicks
Created: 2011-12-18 10:37:04+00:00
State: open

Provide the ability for coroutines to be executed on a remote host. Pickle data and send via socket?

One possible API:

```python
remote(host, target, *args, *kwargs)
```
This could then be wired up in an app as something like this:

```python

from cop.sources import web
from cop.flow import broadcast, load_balance, remote

from internal import extract_links, process_img

def crawl(site):
web(site,
broadcast([index_page(),
extract_links(filter_images(load_balance([
remote('worker1.example.net', process_img())),
remote('worker2.example.net', process_img())),
remote('worker3.example.net', process_img()))])]))
```