HackerTrans
トップ新着トレンドコメント過去質問紹介求人

linepogl

no profile record

コメント

linepogl
·3 年前·議論
And yet, the idempotent solution in the article is not idempotent.

The author proposes a solution that needs three steps: query a cache, execute, update the cache. These are not atomic and, therefore, not thread-safe. As a result, if a second request arrives before the first is finished, the operation will be executed again.