Software, Atomic Transaction, Event Driven Architecture, Event Sourcing, Dynamodb.
especially when you add more and more dependencies. In our case we want to solve the problem by guaranteeing that if I am able to persist the order, an event is fired. You want them to be part of an atomic operation. From a solution space, the usual choices are: implement a 2-phase commit solution