类似 Native Client 的 Web 应用程序
我想将我的应用程序移植到网络应用程序。
该应用程序应该:
- 能够访问本地硬盘
- 数据应该存储在本地(以防我的网络服务器遭受拒绝服务攻击)。
- 利用本地CPU。
- 在任何浏览器、任何操作系统中运行
- 无需插件。
基本上,我想要一个可以在任何浏览器和任何操作系统中运行的网络应用程序。不需要任何插件即可使用。并且不易受到拒绝服务攻击。
我听说过 Google 的 Native Client,但这还处于萌芽阶段,它可能只能在 Chromium 和/或 Chrome 上运行(不能在 IE、Firefox、Safari 等中运行)。
我不想使用闪存,因为它需要一个可以被用户计算机阻止的插件(公司笔记本电脑的安全策略)。另外,我听说闪存即将消亡。
另外,我听说 Jave/JSP/Applet 已经死了。
什么样的开发环境可以让我实现上述目标? .NET 吗?银光?
谢谢
I am wanting to port my application to a web app.
The app should:
- Be able to access the local hard drive
- The data should be stored locally (in case of denial of service attacks to my web server).
- Take advantage of the local CPU.
- Run in any browser, in any OS
- No plugins required.
Basically, I want an web app that will run in any browser and in any operating system. Requires no plugins to use. And not susceptible to denial of service attacks.
I have heard of Native Client from Google, but this is in its embryonic stage and it may only run with Chromium and or Chrome (not in IE, Firefox, Safari etc).
I don't want to use flash because it requires a plugin which can be blocked by users computers (security policy of company laptops). Also, I heard flash is dying.
Also, I've heard Jave/JSP/Applets are dead.
What development environment will allow me to achieve the above? Does .NET? Silverlight?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在没有插件的情况下直接访问用户的本地硬盘将违反安全性,并且是无法做到的。除非您指的是用户能够将文件上传到服务器进行存储!这是可以做到的;但这一切都在用户的控制范围之内。
如果您希望在用户端保存的数据很小,那么您唯一的选择就是完全不使用任何插件的cookie,而且您可以存储的数据量确实很小。
HTML5 引入了应用程序存储,但它的支持非常非常低,所以我怀疑这是否适合您,因为用户可以定义每个应用程序可以使用多少空间,并且默认值很小。
我想您可以使用尽可能多的 CPU...但是您必须意识到很多人同时运行多个应用程序、服务和网站,并且它们都共享 CPU 使用率!因此,如果您计划在客户端使用大量 CPU 密集型操作,请不要指望老妈妈的笔记本电脑能够正常运行并跟上......服务器端 CPU;您可以使用多少费用取决于您的托管提供商,一些云托管提供商甚至会让您支付 CPU 使用费。
如果您的网站受到攻击,那么无论它是 flash、silverlight、普通网页、本机客户端应用程序还是您在用户端存储的数据量,都无关紧要……如果浏览器无法请求该页面,页面将不会加载,除了本地错误页面之外,不会出现任何内容,因此这些技术都不能让您“安全”地免受 DOS 攻击或任何其他类型的攻击,用户会发现他们根本无法加载该网站或无论如何页面。
Silverlight 类似于 Flash、Java 小程序和 google“本机客户端”以及其他一切!因为它是一个插件,用户必须安装并且可以选择禁用,所以我认为这些选项都不适合您...如果不依赖插件,您的选项只是基本的 javascript 和 HTML,没有其他选项,并且许多公司禁用所有插件或仅允许极少数插件,例如仅允许adobe reader...有些甚至禁用javascript,因此根本无法在客户端上执行任何类型的编码
:)一切都取决于您到底需要做什么,为什么您需要访问用户的硬盘驱动器...为什么您指定您需要利用 CPU?为什么有无插件规则,但你却谈论使用插件?
Being able to access the users local hard drive directly without a plug-in would be a violation of security and just can't be done. Unless you are referring to users being able to upload files to the server to store! which can be done; but its all within the users control.
If the data you wish to save on the user-end is small the only option you would have is cookies without any plug-in at all and the amount of data you can store is very small indeed.
HTML5 introduces application storage but its support is very very low so i doubt this would suit you either as users can define how much room each application can use and it defaults to a smallish amount.
You can use as much CPU as you like i guess... however you must realise that a lot of people run multiple applications, services and websites at once and they all share CPU usage! so don't expect old mum's laptop to perform and keep up if you plan to use a lot of CPU intensive operations on the client end.... Server side CPU; it will be up to your hosting provider as to how much you can use, some cloud hosting providers make you pay CPU usage even.
If your site is under attack it wouldn't matter if it was flash, silverlight, a normal web page, a native client application or how much data you stored on the user-end... if a browser can't request the page, the page will not load and nothing will appear except a local error page, so none of these technologies will make you 'safe' from a DOS attack or any other kind of attack and users will find they simply can't load the site or page anyway.
Silverlight is similar to Flash, Java applets and the google 'native client' and everything else! in that its a plug-in users have to install and can optionally disable, so i gather none of these options are for you... without relying on a plug-in your options are only basic javascript and HTML and nothing else, and a lot of companies disable all plug-ins or allow only a very selected few e.g adobe reader only... some even disable javascript so can't do any kind of coding at all on the client :)
It all depends on what EXACTLY you need to do, why do you need access to a users hard drive... why do you specify you need take advantage of the CPU? and why is there a no-plug's rule yet you talk about using plug-ins anyway?
听到如此多的东西突然死亡或消亡,这肯定是个坏消息……
无论如何,如果您的要求是“任何操作系统上的任何浏览器”,那么您正在谈论 HTML,简单明了。去掉某些浏览器的这一要求,您就可以包含 JavaScript。
本地CPU相对于什么?使用服务器资源?不适用于 HTML/JavaScript。本地数据存储会很奇怪,HTML5 尚未得到所有支持,但可能值得关注。
DoS 攻击向量又如何呢?为什么这是一个如此相关的问题?
您可能在这里有相互排斥的需求,并且可能无法完全掌握 Web 开发作为平台或架构的能力。更重要的是,这是一个非常非常模糊的问题,几乎没有任何信息,而且从其他人的角度来看,这是毫无意义的要求。请详细说明。
It sure is bad news to hear that so many things are suddenly dead or dying...
Anyway, if your requirement is "any browser on any OS" then you're talking about HTML, plain and simple. Drop some browsers from that requirement and you can include JavaScript.
Local CPU as opposed to what? Using server resources? Not with HTML/JavaScript. Local data storage will be odd, HTML5 isn't supported by everything yet but it might be something to look at for that.
And what's with the DoS attack vector? Why is that such a relevant concern?
You may have mutually exclusive requirements here, and potentially not a full grasp of web development as a platform or architecture. More to the point, this is a really vague question with almost no information and, from the perspective of others, nonsensical requirements. Please elaborate.