Google 任务队列 JSON API 事务

Google Task Queues JSON API Transactions

是否可以使用他们的 REST API 在 App Engine 之外自动将记录放入 Google Cloud Datastore 并将任务放入 TaskQueue?

基本实现 this(下),但在 Container Engine 中且未使用特定于 App Engine 的高级 API。

DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Queue queue = QueueFactory.getDefaultQueue();
try {
    Transaction txn = ds.beginTransaction();

    // ...

    queue.add(TaskOptions.Builder.withUrl("/path/to/my/worker"));

    // ...
    txn.commit();
} catch (DatastoreFailureException e) {
}

目前无法使用云数据存储 API。