[Twisted-Python] multiprocessing capability?
glyph at twistedmatrix.com
Wed Feb 24 09:23:33 EST 2010
On Feb 21, 2010, at 8:00 PM, Alexandre Quessy wrote:
> Hello everyone,
> I have done something similar to this, but I used the children IO
> stream to control them. Maybe I should have done that using some
> higher level protocol, such as AMP or PB.
Using a higher-level protocol is generally better, if for no other reason that it gives you a framework within which to document your design decisions. It's much easier to say "An AMP command with a 'foo' String argument and a 'bar' Integer argument" than to say "The first two bytes of the message are the length of the first argument. The next n bytes are the first argument. The first argument shall be interpreted as... (etc, etc)"
> (I think AMP is more robust than PB, though)
Why do you say that? I think AMP is simpler than PB, but PB works pretty well if you need its functionality.
More information about the Twisted-Python