Y
Hacker News
new
|
ask
|
show
|
jobs
by
a_wild_dandan
439 days ago
Exposing
invalid
transitions to a user is a bug. Idempotency here doesn't solve anything, just hides said bug, which is arguably
worse
.
1 comments
antonvs
438 days ago
A race condition for which of multiple concurrent users initiated a transition is not a bug, it's a scenario that commonly needs to be handled. In many cases, idempotency can be a simple and effective approach for handling this.
link