谷歌云数据存储是否支持响应式数据库编程?

huangapple 未分类评论58阅读模式
标题翻译

Is google cloud-data-store support reactive database programming

问题

这是否可以使用 google-cloud-datastore 作为响应式数据库。

英文翻译

Is it possible to use google-cloud-datastore as reactive database.

答案1

得分: 0

是的,可以将Cloud Datastore用作反应性数据库,您只需使用Async Datastore API,可以在此处找到设置方法。

但值得指出的是,这不再是推荐的解决方案,您应该尝试在Datastore模式下使用Cloud Firestore,因为它带来了以下改进:

  • 最终一致性,所有Datastore查询变得强一致。
  • 事务中的查询不再需要是祖先查询。
  • 事务不再受限于25个实体组。
  • 对实体组的写入不再限制为每秒1次。

而且它也适用于您的反应性应用程序的需求。您还可以查看这个文档,了解如何将您当前的Datastore迁移到Datastore模式的Firestore。

英文翻译

Yes, it is possible to use Cloud Datastore as a reactive database, you just have to use the Async Datastore API and you can find how to set it up here.

It is important to point out though, that this is no longer the recommended solution, you should try to use Cloud Firestore in Datastore mode due to these improvements:

  • Eventual consistency, all Datastore queries become strongly consistent.
  • Queries in transactions are no longer required to be ancestor queries.
  • Transactions are no longer limited to 25 entity groups.
  • Writes to an entity group are no longer limited to 1 per second.

and it also suits the needs that you have for your reactive app. You can also check this documentation on how you can migrate your current Datastore to Firestore in Datastore mode.

huangapple
  • 本文由 发表于 2020年3月16日 15:30:17
  • 转载请务必保留本文链接:https://java.coder-hub.com/60701881.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定