Hacker News new | past | comments | ask | show | jobs | submit login

And what happens when that shovel gets stolen from the warehouse before it can be shipped to the customer?

You have to handle over-selling no matter what. The "source-of-truth" of you inventory system is whatever is actually, physically sitting in a warehouse somewhere. Not what your database says.




Yes, you have to handle overselling for other reasons, but I don't see why that's a good reason to not protect against it when you can.


I think Amazon calls it Apology Based Computing or something like that. You're better off at scale writing out a transaction log, then seeing if actions were successful and compensating otherwise.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: