我需要一个客户端浏览器数据库。什么是我的选择 [英] I need a client side browser database. What are my options

查看:99
本文介绍了我需要一个客户端浏览器数据库。什么是我的选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个网站,我认为必须有一个客户端数据库。另一个选择是在服务器上粘贴 所有东西,代价是增加复杂性和降低可伸缩性。我有什么选择?我必须建立一个插件吗?

I'm creating a web site that I think must have a client side database. The other option would be to stick everything on the server at the expense of increased complexity and decreased scalability. What options do I have? Must I build a plugin? Must I wait until everybody's HTML5 compliant?

更新已经有很多关于为什么我实际上需要这个。这是我的想法。告诉我如果我是愚蠢的:

Update There's been a lot of comments about why I would actually need this. Here are my thoughts. Tell me if I'm being silly:


  • 客户端将有一个庞大而复杂的状态,需要类似数据库的东西来提供数据交互我需要。因此(我认为)饼干是出了图片。

  • 此数据是暂时的,因此客户端不会关心它们在关闭会话时被擦除。但是,如果他们转到不同的网页,然后回来,他们将需要保留数据。因此(我认为)以某种方式将数据存储在某种JavaScript SQL实现中将不起作用。

  • 我可以做任何我想在服务器上做的事情, >可以缩放以管理负载(Facebook)。 但是(我认为)我宁愿建造一个插件,而不是支付基础设施来支持这种负载。这是一个裸骨科的初创公司。

  • The clients will have a large and complex state that will require something like a database to provide the data interaction that I need. Therefore (I think) cookies are out of the picture.
  • This data is transient, so the client won't care if it gets erased as soon as they close a session. However they will need to keep the data if they go to a different web page and then come back. Therefore (I think) somehow storing the data in some sort of a javascript SQL implementation will not work.
  • I can certainly do everything that I want to do on the server, and servers can scale to manage the load (Facebook). But (I think) I'd rather build a plugin than pay for the infrastructure to support this load. This is for a bare bones startup. (The richer the startup is, the barer my bones will be.)

推荐答案

索引数据库我可以使用

Web SQL < a>(我可以使用

localStorage

这篇关于我需要一个客户端浏览器数据库。什么是我的选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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