[Twisted-Python] Question about PB and multicast

I am building an application that has tens of thousands of clients. There are times when I need to talk to quite a few of the clients using PB. When I have to talk to a single (or a few) clients via PB I do the normal thing - issue multiple calls. In the cases where I have to talk to quite a few clients I had thought of changing the object I am sending to include the names of the machines I am interested in talking to. I would then send it via multicast using PB. I know this would require some changes on the PB side, but I am wondering if anyone sees a problem doing this? Peace, Chaz.

On Wed, 17 May 2006 21:57:39 +1000, Chaz. <eprparadocs@gmail.com> wrote:
I am building an application that has tens of thousands of clients. There are times when I need to talk to quite a few of the clients using PB.
When I have to talk to a single (or a few) clients via PB I do the normal thing - issue multiple calls. In the cases where I have to talk to quite a few clients I had thought of changing the object I am sending to include the names of the machines I am interested in talking to. I would then send it via multicast using PB. I know this would require some changes on the PB side, but I am wondering if anyone sees a problem doing this?
Peace, Chaz.
PB connections were only ever designed to operate between two peers. It's designed to run over a reliable stream protocol, e.g. TCP. TCP doesn't work over Multicast (it doesn't make any sense, if you think about it). If you want to use Multicast, I think you'll pretty much have to write your own thing using UDP. -Eric

Thanks Eric. I was figuring it was something that I needed to write, but I was hoping there was some hidden feature of Twisted or PB I didn't know about. Peace, Chaz. Eric Mangold wrote:
On Wed, 17 May 2006 21:57:39 +1000, Chaz. <eprparadocs@gmail.com> wrote:
I am building an application that has tens of thousands of clients. There are times when I need to talk to quite a few of the clients using PB.
When I have to talk to a single (or a few) clients via PB I do the normal thing - issue multiple calls. In the cases where I have to talk to quite a few clients I had thought of changing the object I am sending to include the names of the machines I am interested in talking to. I would then send it via multicast using PB. I know this would require some changes on the PB side, but I am wondering if anyone sees a problem doing this?
Peace, Chaz.
PB connections were only ever designed to operate between two peers. It's designed to run over a reliable stream protocol, e.g. TCP.
TCP doesn't work over Multicast (it doesn't make any sense, if you think about it). If you want to use Multicast, I think you'll pretty much have to write your own thing using UDP.
-Eric

On Wed, 17 May 2006 23:32:00 +1000, Eric Mangold <teratorn@twistedmatrix.com> wrote:
On Wed, 17 May 2006 21:57:39 +1000, Chaz. <eprparadocs@gmail.com> wrote:
I am building an application that has tens of thousands of clients. There are times when I need to talk to quite a few of the clients using PB.
When I have to talk to a single (or a few) clients via PB I do the normal thing - issue multiple calls. In the cases where I have to talk to quite a few clients I had thought of changing the object I am sending to include the names of the machines I am interested in talking to. I would then send it via multicast using PB. I know this would require some changes on the PB side, but I am wondering if anyone sees a problem doing this?
Peace, Chaz.
PB connections were only ever designed to operate between two peers. It's designed to run over a reliable stream protocol, e.g. TCP.
Actually, PB's initial design did include provisions for operation over UDP. However, Twisted does not include any implementation of those parts of PB, so this is perhaps a useless correction. ;) Jean-Paul
participants (3)
-
Chaz.
-
Eric Mangold
-
Jean-Paul Calderone