什么是DWR的缺点? [英] What is the disadvantage of DWR?

查看:155
本文介绍了什么是DWR的缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

而在企业内部网使用DWR,会像性能比较或安全问题缺陷发生的呢? 直接Web远程通信是一种使用Ajax请求从一个js文件与服务器的工具。

While using DWR in a intranet, will disadvantages like perfomance or security issues occur? Direct web remoting is a tool which uses Ajax request to contact a server from a js file.

推荐答案

有一件事情我会注意的是,你的服务器将最有可能获得通过比如果你有(正常)整页的HTTP传递更多HTTP请求命中。

One thing I would watch out for is that your server will most likely get hit by more HTTP requests than if you have the (normal) full page HTTP delivery.

让我来解释一下。当支持AJAX你的网页,你的客户最终会创造(说)填表,网页片段再生等我见过的场景,开发人员已经AJAX疯狂多个HTTP请求,并提出了网页的主要是动态文件。这将导致一个伟大的用户体验(如果做得好),但每个请求导致的服务器击中,导致可扩展性和延迟问题。

Let me explain. When your web page is AJAX-enabled, your clients will end up creating more HTTP requests for (say) form filling, page-fragment regeneration etc. I've seen scenarios where developers have gone AJAX-crazy, and made the web page a largely dynamic document. This results in a great user experience (if done well), but every request results in a server hit, leading to scalability and latency issues.

请注意 - 这是不是特别DWR,而是一个AJAX的问题。我用DWR,它很好地工作。不幸的是,我发现它的工作这么好,和这么容易,这一切都成为远程的候选人,你可以结束了的巨大的数字小的请求。

Note - this isn't particular to DWR, but is an AJAX issue. I've used DWR, and it works nicely. Unfortunately, I found that it worked so well, and so easily, that everything becomes a candidate for remoting, and you can end up with huge numbers of small requests.

这篇关于什么是DWR的缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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