Software, Atomic Transaction, Event Driven Architecture, Event Sourcing, Dynamodb.
of those can fail and, if that happens, you end up in an invalid state (the information was not saved or a message/event was not published). As those two operations are logically part of one, they are expected to be atomic, similar to what you have when you use database transactions. In a