[Twisted-Python] Perspective Broker vs AMP

Andreas Kostyrka andreas at kostyrka.org
Mon Mar 31 06:19:27 EDT 2008

Well, the client nodes can also be servers.

Alternativly, it's Twisted, so you let your node call in for "work", and
wait till you have work for the node before returning from the method
call. (Hint return a defered, store it in a dictionary (nodeid =>
defered), and when you need node X to do work for you,
nodeid_defered_dict[nodeX].callback("do this work please", id))


Am Montag, den 31.03.2008, 09:00 +0100 schrieb Simon Pickles:
> Hi,
> You may have seen my recent posts about data comms across nodes of 
> server network.
> Phil kindly pointed me towards PB and AMP which, after some fiddling 
> both look viable. However, I do have one question: If clients can 
> request remote data from the server, is the reverse possible?
> As I understand PB, a client can get the root object of a 
> PBServerFactory, thru which it can call methods with the 'remote_' 
> prefix. I'm not clear how this can work in the other direction. As for 
> AMP, this seems similar - the client uses callRemote() to execute remote 
> methods on the amp server.
> Since I have node clients all talking through a server, I need the 
> client to make requests to the server, which in turn requests the 
> appropriate data from the corresponding client.
> Thanks for any advice on this
> Regards
> Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20080331/46b89528/attachment.pgp 

More information about the Twisted-Python mailing list