我需要一个客户端浏览器数据库.我有哪些选择 [英] I need a client side browser database. What are my options

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

问题描述

我正在创建一个我认为必须有客户端数据库的网站.另一种选择是以增加复杂性和降低可扩展性为代价将所有东西都放在服务器上.我有哪些选择?我必须建立一个插件吗?我必须等到每个人都符合 HTML5 标准吗?

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 (我可以使用吗)
localStorage

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

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