新原型的简单数据管理
大家好!我在这种方法的原型上取得了巨大的成功:<p>- 将所有数据存储为 JSON<p>- 应用加载时:将完整的 JSON 加载到客户端<p>- 用户进行更改时:在本地更改 JSON,并每 10 秒将整个 JSON 作为一个文件保存到后端<p>- 同样每 10 秒从后端加载更新后的 JSON 到客户端。<p>是的,我知道,这样会存在并发访问问题、缺乏模式、缺乏数据库,以及使用文件存储。但这让生活变得更简单,也加快了初期开发的速度!我从事这个行业已经超过 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!