从缓存文件:https://github.com/objectify/objectify/wiki/Caching物化: “会话缓存” 是如何工作的跨实例
The session cache is local to the Objectify instance. If you start a new session (via ObjectifyFactory.begin()), it will have a separate cache. If you use the thread-local ObjectifyService.ofy() method, the session cache will "just work" appropriately.
和
A get-by-key operation (single or batch) for a cached entity will return the entity instance without a call to the datastore or even to the memcache
我的问题是:
请求1被实例A提供服务:一个对象更新并保持。由于对象已被修改,会话缓存将被更新。
请求2由实例B服务(由于先前的请求,它们已经是会话缓存中的对象):会话缓存将因差异而变得不同,因为它是另一个实例。 请求如何获取更新的实体而不是前一个?
App Engine memcache是跨实例共享的,但会话高速缓存对于每个实例(或者甚至是Objectify实例)都是单独的。
会话缓存是否以某种方式在所有实例之间同步?
是否有可能由不同实例提供服务的不同请求可能具有相同对象的不同版本?