简体   繁体   English

iis 与 http 中的服务器到服务器通信

[英]Server to server communication in iis with http

I have two servers running in iis on different computers and they need to communicate with each other.我有两台服务器在不同计算机上的 iis 中运行,它们需要相互通信。 Because of firewalls etc http is the only real option.由于防火墙等原因,http 是唯一真正的选择。 It's bidirectional communication, not just request/response.这是双向通信,而不仅仅是请求/响应。 Web sockets would be good, but the spec for that isn't finished so I'm wondering if there are any other options I should look at? Web sockets 会很好,但是规范还没有完成,所以我想知道是否还有其他选项我应该看看?

I would spend a few minutes thinking about wether my communication could actually be done using request response, a lot of times you can convert your communication into request response.我会花几分钟思考我的沟通是否真的可以使用请求响应来完成,很多时候你可以将你的沟通转换为请求响应。 HTTP is really very request response based so you kind of have to hack around it using various comet techniques like long polling. HTTP 非常基于请求响应,因此您必须使用各种彗星技术(如长轮询)来破解它。 If you have control over both ends of the communication then there is no reason not to use web sockets even if the standard isn't settled upon.如果您可以控制通信的两端,那么即使没有确定标准,也没有理由不使用 web sockets。 So long as you agree with yourself how it should be implemented complying with the final standard isn't important.只要您同意自己应该如何按照最终标准实施并不重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM