Extreme Sharding: One SQLite Database Per User

后端 未结 8 1275
终归单人心
终归单人心 2021-01-30 13:43

I\'m working on a web app that is somewhere between an email service and a social network. I feel it has the potential to grow really big in the future, so I\'m concerned about

8条回答
  •  无人及你
    2021-01-30 13:57

    If your data is this easy to shard, why not just use a standard database engine, and if you scale large enough that the DB becomes the bottleneck, shard the database, with different users in different instances? The effect is the same, but you're not using scores of tiny little databases.

    In reality, you probably have at least some shared data that doesn't belong to any single user, and you probably frequently need to access data for more than one user. This will cause problems with either system, though.

提交回复
热议问题