I have a two node system where I'm trying to replicate in-memory state between the nodes... To simplify, just think Master-Slave (Active-Passive). Node A has a relatively constant flow of changes coming in, and then tries to push the state to Node B. Currently, this occurs on a periodic schedule by batching the state and pushing it with an instance of a TcpClient.
The current TcpClient process seems like it's somewhat inefficient. Is this a way that I can establish a link between two systems and stream state from one to the next for as long as the channel is established.
For performance reasons I can't use anything like WCF or Remoting... I'm relatively inexperienced with lower level networking constructs, but I'm perfectly willing to try anything new. Ideally, the solution would be something I can accomplish with native C# 4 and not need any new products.