helloworld12
V2EX  ›  问与答

分布式事务中,如何预留资源

  •  
  •   helloworld12 · May 21, 2018 · 1084 views
    This topic created in 2933 days ago, the information mentioned may be changed or developed.

    譬如有个货物,库存 100,存在数据库中

    把他减去 1,然后再插入一个单位的预留货物资源吗?后面提交后,再删去这条记录,或者回滚时候,删去这条记录,把 1 加回去?

    还是有别的标记方式?

    谢谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5865 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 93c8b4a0 · 31ms · UTC 03:21 · PVG 11:21 · LAX 20:21 · JFK 23:21
    ♥ Do have faith in what you're doing.