Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The practical answer is you use a combination of queries and compensating actions to resemble idempotency with the external service. Some people additionally constrain things to be a linear sequence of actions/effects, and call this pattern Sagas. It's sort of a bastardized distributed transaction that lets you handle a lot of real world use cases without getting into the complexity of true distributed transactions.




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

Search: