Live chat: why a client-server model or a peer-to-peer model?

I am adding online chat to the Silverlight application. I looked at current applications, services, and SDKs found through online queries and forums. I find that most of them implement the client-server (C / S) model, and I'm trying to understand why this model is different from the peer-to-peer (PTP) model. I would prefer PTP because switching between peers would be more efficient (fewer IP transitions and no processing on the server computer), and there is no need for a server, its costs and dependencies. I found that some products offer the option of switching from PTP to C / S if PTP is not enough.

As I thought about this, I could see that C / S could be better if more than two peers are involved in the conversation, then the server (presumably with higher bandwidth) could better relay all peers outbound traffic for several other peers nodes. In a C / S broadcast channel, for each broadband (peer-to-peer) broadband access (where there is a bottleneck) you only need to transfer each element of voice traffic once, then the server will use its excellent bandwidth to send messages to several other peers.

But in a one-on-one voice messaging situation, it seems that PTP will be better. The server will not reduce each of the two peer-to-peer network bandwidth requirements and will only add unnecessary overhead, dependency and cost.

The voice chat "one on one" :

  • Am I mistaken in something higher?
  • Is it better to be peers?
  • Will the server provide anything of value that cannot be provided by the client program?
  • Is there anything else I should take into account?

And finally, can you recommend any Silverlight PTP or C / S voice chat products?

Thanks in advance for any information.

+3
source share
2 answers

• ?

, , LAN, C/S ( NAT) ( IP-).

• - , ?

, , NAT, IP- , C/S

Silverlight PTP C/S?

: http://www.socketcoder.com/ArticleFile.aspx?index=2&ArticleID=70 C/S

+1

, , CS PTP.

PTP , , . , Silverlight .

, Silverlight CS .

0

Source: https://habr.com/ru/post/1739640/


All Articles