新原型产品的简单数据管理
1 分•作者: AndreyK1984•6 个月前
大家好!我用这种方法做了一个原型,取得了巨大的成功:
* 将所有数据存储为 JSON 格式
* App 启动时:在客户端加载完整的 JSON 数据
* 用户进行更改时 - 在本地修改 JSON 数据,每 10 秒将整个 JSON 文件保存到后端,作为一个单独的 JSON 文件
* 同时,每 10 秒从后端加载更新后的 JSON 数据到客户端。
是的,我知道,并行访问问题、缺乏模式、没有数据库,用文件存储。但它让开发初期的工作变得多么轻松,开发速度也得到了提升!我从事这行已经 20 多年了,我喜欢这种经过适当应用的“傻瓜式”解决方案。永远的“胶带粘合”!
查看原文
Hi folks! I have huge success on a prototype of this approach:<p>- Store all data as json<p>- App loads: load full json on a client<p>- Something changes by user - change json locally and every 10 seconds save whole json to backend as a single json file<p>- also every 10 seconds load the updated json from backend to client.<p>Yes, I know, parallel access problems, lack of schema, lack of db, using file to store. But how much it makes life easier and speed ups development at start! I am in this over 20 years, and I like dumb stupid solutions applied properly. Duct taping forever!