Under p2p mode, does WCF insure no message lost?

The peer mesh will be recombined when some peers join or quit, how can I insure transmiting message would not be lost?

For exam:

In p2p mesh, peer A connected to peer B, peer B connected to peer C. When peer A broadcast one message, the message is transmited by peer B to peer C. If peer B crashed when transmiting meesage, would peer C still receive peer A 's message ?

[400 byte] By [hailong1977] at [2007-12-30]
# 1

Hi Hailong,

If C is not connected to any other neighbor but B in the mesh, and B crashes while flooding hte message further to C, then you would have to retransmit the message (After waiting for at least a minute to let the internal Peer channel maintenance algorithm to kick in and get C connected to A and thus fix the partition) from A.

Note that unless you are explicitly shaping the mesh by overriding the Register/Resolve operations of the DefaultCustomResolver, in a generic Peer channel mesh (well-connected over a period of time) every node is supposed to have somewhere between [Ideal, Maximum] number of neighbors; so we do not rule out Message loss but we try our best to keep partitions and message loss to a minimum :)..

Hope that helps!

-Shalini

ShaliniJoshiMSFT at 2007-10-9 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 2

Also keep in mind that in a small mesh of three nodes, the mesh will be fully connected (that is, A will be connected to both B and C), so even if B were to crash, the message would get delivered to C from A directly. Almost never with the peer channel will you have a linear mesh as you describe above because the algorithms attempt to maintain multiple paths between nodes to prevent exactly the kind of message loss scenario you describe above.

The best thing to do here is to play around with a couple of nodes in a mesh and try out the different behaviors you are thinking of.

Cheers,

Ravi

RaviRao at 2007-10-9 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified