java是适合财务状况的Google应用程序引擎
从交易的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 楼答案
需要使这样的事务幂等。有关问题和解决方案的更深入描述,请参见前面的StackOverflow项:GAE transaction failure and idempotency