0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

冪等性について現時点での理解をまとめてみた①

0
Posted at

冪等性とは、そもそも何?

一言で言うと.....

同じ操作を何回しても結果が変わらない性質のこと..

私なりに一番しっくりくる例をご紹介しますと、
・ネットバンクを使用して1万円をA口座に送金をした際に、なんらかの影響でエラーが出たとしましょう。その際に誤って2回目の送金確定ボタンを押して、今回は操作が成功したとしても、A口座に送金されるのは結果として1万円のみであるということ。

もしも冪等性がない場合には、今回のケースで言うとA口座に2万円送金されてしまうようです。それどころか送金確定ボタンを押した分だけ、プラスで1万円をA口座に送金してしまうことも許してしまうことになるので、冪等性を理解したシステム設計がいかに重要かがわかります。

今回はゆるくきましたが、最近はデータ指向アプリケーションデザインを購入したので、読み進める中で気づいたことがあれば②を書いていきたいと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?