sqlite - Is CouchDb suitable for use on client desktops (Windows 10)?
问题描述
I want to support the users of my Windows 10 desktop application with:
- Local Data (not having to perform a fetch from the cloud every time they want new data)
- Offline support
- Replication with a cloud database
There can potentially be multiple users (in the order of 10-100 but not 1000) simultaneously editing the same database. I would run CouchDb as a service (ie. in a separate process to my app).
To achieve the above I am considering installing CouchDb on each client desktop PC (all replicating to a single main cloud CouchDb instance) together with my application to achieve the above goals.
One of the reasons I am pursuing this line of thinking is that it would allow my application code to mostly just be written in a manner that interacts with local data and the sync/replication (which is probably quite complex) can be taken care of by CouchDb.
I am using CouchDb as a replacement for something that I often see is done by sqlite but I really want the replication ability of CouchDb (which sqlite does not have).
Is the above a scenario in which I can expect CouchDb to perform well or is there something that I am not considering?
解决方案
We have multiple clients doing this successfully. This is a recommended use-case for CouchDB. The limiting factor will be the cloud vm configuration, but 100s to 1000s of clients should be no problem on a decent vm setup.
推荐阅读
- javascript - JavaScript 在用户缓存中选择
- cluster-analysis - K-means 聚类错误:只有 0 可能与负下标混合
- python - 在 Pandas (Python) 中拆分列中的所有数据
- java - 在命令行上独立运行 Liquibase 的 ClassNotFoundException
- python - 将熊猫数据框乘以作为掩码
- python - 熊猫系列自定义用户自定义JSON(性能很重要)
- macros - 在间隔内随机延迟后循环的脚本
- css - CSS3属性位置粘不工作
- python - python中的并发集合
- javascript - 使用 Javascript 检测页面是否已加载到顶部或页面下方的某个位置