Cloud Firestore中用于多租户的命名空间 [英] Namespaces for Multi tenancy in Cloud Firestore

查看:90
本文介绍了Cloud Firestore中用于多租户的命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在Firestore中设置其他数据库/名称空间?这将有助于构建多租户SaaS产品。

How do we set a different database / namespace in Firestore? This would be helpful in building multi-tenancy SaaS products.

推荐答案

基于近期公告,看来这将成为一件事情:

Based on the recent announcements by google, it looks this will become a thing:


Cloud Firestore当前在beta中可用,是下一代Cloud Datastore,并与Datastore API和现有的客户端库兼容。借助Cloud Firestore上新推出的Datastore模式,您无需对现有Datastore应用程序进行任何更改即可利用Cloud Firestore的其他优势。在Cloud Firestore全面上市之后,我们将透明地将您的应用程序实时迁移到Cloud Firestore后端,您将立即以与现在相同的价格看到更好的性能,并获得更多好处始终保持高度一致。这将是一个简单的无停机升级。在此处了解有关Cloud Firestore的更多信息。

Cloud Firestore, currently available in beta, is the next generation of Cloud Datastore, and offers compatibility with the Datastore API and existing client libraries. With the newly introduced Datastore mode on Cloud Firestore, you don’t need to make any changes to your existing Datastore apps to take advantage of the added benefits of Cloud Firestore. After general availability of Cloud Firestore, we will transparently live-migrate your apps to the Cloud Firestore backend, and you’ll see better performance right away, for the same pricing you have now, with the added benefit of always being strongly consistent. It’ll be a simple, no-downtime upgrade. Read more here about Cloud Firestore.

这篇关于Cloud Firestore中用于多租户的命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆