如何彗星的现代实现/反向AJAX工作吗?任何稳定的C#WCF或ASP.NET实现? [英] How do modern implementations of Comet/Reverse AJAX work? Any stable C# WCF or ASP.NET implementations?

查看:285
本文介绍了如何彗星的现代实现/反向AJAX工作吗?任何稳定的C#WCF或ASP.NET实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是正确的方式(或最佳)的方式来实现彗星,HTTP推送,或反向AJAX?

What is the correct way (or best) way to implement Comet, HTTP Push, or Reverse AJAX?

你会推荐什么.NET实现?

What .NET implementations would you recommend?

推荐答案

我有听说, WebSync PokeIn ,无论是支付的实现,我已经使用PokeIn和pretty直线前进。如果你正期待着code你自己的COMET实现,我只可以说,它是一个复杂的任务,因为你需要修改IIS是否自然行为。它是一种哈克的方式来解决HTTP协议的局限性,你需要知道的真的很好,你这样做有什么不结束周围摔东西=)。

I have hear about, WebSync and PokeIn, both are paid implementations, I have used PokeIn and its pretty straight forward. If you are looking forward to code your own COMET implementation, I just can say that its a complex task, because you need to modify the natural behaviour if IIS. Its a hacky way to get around the limitations of the HTTP protocol and you need to know really well what you doing so don't end up breaking things around =).

它也被称为长寿命
  要求。这也是最远
  复杂的方法来实现。
  基本上,一个请求被作出
  客户端和服务器的非常的慢
  响应,这将导致连接
  要维持。定期,当
  服务器有什么推,
  它会爆发送信息,所以
  说话。这种方法给你
  实时推送,这是伟大的。但,
  它有一个严重的下侧:持有
  连接一样,开放也不怎么样
  基础协议是为了
  工作,大多数服务器并不十分
  感到高兴。如果您的流量获取
  太伟大了,你会在嚼起来线程
  服务器和风把你
  网站了。
  参考: HTTP://www.$c $ cranch.com / T / 121668 / HTML的JavaScript /不-反向Ajax的作品

It's also known as long-lived requests. This is also by far the most complex method to implement. Basically, a request is made by the client, and the server very slowly responds, which causes the connection to be maintained. Periodically, when the server has something to push, it'll "burst" send the information, so to speak. This approach gives you real-time push, which is great. But, it has a serious down-side: holding connections open like that isn't how the underlying protocols are meant to work, and most servers aren't terribly happy about it. If your traffic gets too great, you'll chew up threads on the server and wind up bringing your site down. ref: http://www.coderanch.com/t/121668/HTML-JavaScript/does-Reverse-Ajax-Works

这篇关于如何彗星的现代实现/反向AJAX工作吗?任何稳定的C#WCF或ASP.NET实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆