Google app engine 如果我从未从异步数据存储操作调用get on the future会怎么样?

Google app engine 如果我从未从异步数据存储操作调用get on the future会怎么样?,google-app-engine,Google App Engine,如果我调用一个异步数据存储操作(如下图所示),但随后在不调用get的情况下结束请求,会发生什么 我的操作还会执行吗? 在操作完成执行之前是否会发送me响应 AsyncDatastoreService datastore = DatastoreServiceFactory.getAsyncDatastoreService(); Entity entity = new Employee("Employee", "Alfred"); // ... populate entity properties

如果我调用一个异步数据存储操作(如下图所示),但随后在不调用get的情况下结束请求,会发生什么

我的操作还会执行吗? 在操作完成执行之前是否会发送me响应

AsyncDatastoreService datastore = DatastoreServiceFactory.getAsyncDatastoreService();
Entity entity = new Employee("Employee", "Alfred");
// ... populate entity properties

// Make a sync call via the async interface
datastore.put(key)
//Return response

我在python中这样做是偶然的,结果是数据存储中没有写入任何内容

您的操作可能仍在执行,但似乎只有在响应处理程序决定执行时仍处于活动状态时才会发生这种情况。如果没有,似乎什么也没有发生


是的,响应将在操作完成执行之前发送-这是未来的主要功能,它是非阻塞的

rpc将立即发送;当您的应用程序准备好向客户端发送响应时,它将一直阻止,直到rpc完成。

我在问题中没有提到它,但这是特定于Java的。