Cloud Firestore 中多租户的命名空间
Namespaces for Multi tenancy in Cloud Firestore
我们如何在 Firestore 中设置不同的数据库/命名空间?这将有助于构建多租户 SaaS 产品。
正在考虑中,但还没有确定的计划。
当前方法需要您创建单独的项目。集合名称方案可能是可行的,但您将 运行 纳入项目的复合索引限制。
基于 google 的 recent announcements,看起来这将成为一件事:
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.
我们如何在 Firestore 中设置不同的数据库/命名空间?这将有助于构建多租户 SaaS 产品。
正在考虑中,但还没有确定的计划。
当前方法需要您创建单独的项目。集合名称方案可能是可行的,但您将 运行 纳入项目的复合索引限制。
基于 google 的 recent announcements,看起来这将成为一件事:
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.