Google App Engine是否适合财务状况

时间:2014-02-26 14:51:04

标签: java google-app-engine

来自App Engine doc的交易:

Note: In extremely rare cases, the transaction is fully committed even if a transaction
returns a timeout or internal error exception. For this reason, it's best to make transactions
idempotent whenever possible.

假设在情况A中将资金转移给另一个人B,操作应该在交易中,如果上述注释确实发生,那么它将处于不一致状态,(转移行为不能是幂等的)。我的理解是否正确?

1 个答案:

答案 0 :(得分:0)

您需要使此类交易具有幂等性。请参阅此早期的StackOverflow项目,以获得有关问题和解决方案的更深入描述:GAE transaction failure and idempotency