1

设置:Google App Engine应用程序在Python标准环境中。GAE中的云Python lib是否使用缓存或memcache访问Cloud Firestore数据?

目前,该应用程序使用NDB库来读取/写入其数据存储区。它使用异步tasklet进行并行数据存储异步读取和memcache。

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

回答

1

Cloud Firestore服务器端客户端库未针对App Engine标准进行优化。他们没有与GAE的内存缓存等缓存解决方案集成;你必须自己写这个图层。

相关问题