【问题标题】:Is Google App Engine suitable for financial situationGoogle App Engine 是否适合财务状况
【发布时间】:2014-02-26 14:51:03
【问题描述】:

来自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转账的情况,操作应该是在一个事务中,如果上面的Note确实发生了,那么它将处于不一致的状态,(转账动作不能是幂等的)。我的理解正确吗?

【问题讨论】:

标签: java google-app-engine


【解决方案1】:

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

【讨论】:

  • 这个链接很有用,谢谢。
猜你喜欢
  • 2012-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-04-24
  • 1970-01-01
  • 2013-08-26
  • 1970-01-01
  • 2013-01-17
  • 2012-10-19
相关资源
最近更新 更多