压缩网络流设计
我正在寻找一些用于 C#/.Net 的快速/低延迟流实现,并且会对那里的内容感兴趣。这些流将报告实时市场数据,因此我对低延迟和适度高压缩感兴趣,并且数据将在 TCP 流上推出。 有哪些选项可用于压缩 TCP 流?
I am looking for some fast / low latency stream implementations for C#/.Net, and would be interested what is out there. These streams will be reporting live market data, so I am interested in low latency, as well as moderately high compression, and the data will be pushed out on a TCP stream.
What options are available to compress a TCP stream?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Protobuf.net 序列化数据,通过密集编码来减小大小。
正如 Marc 所说,使用原始套接字可能更好。
You could serialize your data with Protobuf.net which reduces the size by being densely encoded.
As Marc says, it's probably better to use a raw socket.