1

设置:Python 标准环境上的 Google App Engine 应用程序。

目前,该应用程序使用 NDB 库从其数据存储区读取/写入。它使用异步小任务从 Datastore 和 memcache 进行并行、异步读取。

如果我想使用 Firestore 作为 Datastore 的替代品,我似乎必须使用 Google Cloud Client Library for Python。我相信 google-cloud lib 不支持像 tasklet 这样的机制。但我想知道:lib 是否使用线程安全缓存机制来请求 Firestore API,甚至可能是 GAE 的内存缓存?

4

1 回答 1

2

Cloud Firestore 服务器端客户端库未针对 App Engine Standard 进行优化。它们没有与像 GAE 的 memcache 这样的缓存解决方案集成;您必须自己编写该层。

于 2017-10-07T22:17:37.343 回答