4 ms·
> In other words, the operation (three lines of code) yields the same result (sending an email) after repeated execution, and thus is idempotent isnt it? The m
by phoe-krk 2y ago
> In other words, the operation (three lines of code) yields the same result (sending an email) after repeated execution, and thus is idempotent isnt it?
The meaning here is: after the operation is performed at least one time, exactly ONE mail is sent. Note the part "at least one time": it can be one, two, or more.
- maname 2y agothanks, that clicks. "Simply put, we can perform an idempotent operation multiple times without changing the result. Furthermore, the operation must not cause any side effects after the first successful execution." Baeldung got it right.