Daniel
Daniel

Reputation: 1

multicast listener efficiency

Currently I have a process listening and processing a multicast data stream. I'm thinking about seperate it into two processes, one listening, one processing, both will subscribe to the multicast traffic. my question is, will this lower the efficiency because now there are two listener to the multicast stream?

Upvotes: 0

Views: 402

Answers (3)

troglobit
troglobit

Reputation: 591

Yes, this will be less efficient since the kernel will have to make a copy of each datagram to each socket listening to the multicast group.

Upvotes: -1

Andrew
Andrew

Reputation: 1027

Well, if you make it the way that the listening process will be restarting the processing process in case of crash it makes sense. It will not be less efficient as you have already two listeners.`

Upvotes: 1

Steve-o
Steve-o

Reputation: 12866

You are doing more work so by definition it is going to be less efficient. The better question is whether it really matters, and the answer is probably not.

Upvotes: 1

Related Questions