据说钱镠临死前有对子孙的遗言:“如遇真主,宜速归附。”公元960年,赵匡胤通过兵变当上了皇帝,此前6年,冯道已经去世,来不及看到真主统一大业。而在吴越国,九郎钱弘俶正在观察北方这个新政权,到底是“真主”,还是“第六代”。
Going through them briefly: this is not a distributed system and it has a very hard limit on scalability or availability. You can deploy a “SpacetimeDB cluster”, meaning a primary instance and several followers with eventually consistent replication (emphasis on eventually consistent; the WAL is eventually consistent, the replication is too, there’s a lot of margin for things to go wrong here), but your whole system is bottlenecked by the CPU and RAM capacity of the machine where your main SpacetimeDB instance is deployed. You need enough CPU for your database to execute all the queries, but also for your whole application to execute all its application logic, as again the application lives inside the database. You need enough RAM to fit all your database’s data in-memory. SpacetimeDB is not disk-backed at all; it just flushes a WAL to disk (and periodically, snapshots that make recovering from the WAL quicker on restarts). If your dataset grows larger than RAM, your database (and your application, which are the same thing) will fail over. The only option for scalability here is vertical: buying a bigger machine to run your database.
,推荐阅读新收录的资料获取更多信息
博主"是书瑶呀"分享短视频购物踩坑经历
Continue reading...