How reliable is .NET TCP protocol?

后端 未结 5 1664
孤街浪徒
孤街浪徒 2021-01-06 01:14

I\'m quite new to C# so please bear with me. I\'m writing a relatively simple client server application in C# .NET 4.0. I am using TCP protocol, TCPListener and TCPClient to

5条回答
  •  -上瘾入骨i
    2021-01-06 02:13

    If you really need reliability AND network transport, why not use Message Queues? They have transactional guarantee (about as strong as the discipline of the developers working with it, but not stronger than that!)

    It's like all your traffic with database-server-type safety (and ditto performance). I think you can easily configure .NET Remoting to use an MSMQ channel.

    I've personally never done that, but I've used message queuing in general.

提交回复
热议问题