Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    What you are describing here is essentially a distributed transaction: en.wikipedia.org/wiki/Distributed_transaction Commented Jan 6, 2023 at 16:23
  • 1
    You must decide: Did the user get created? One possibility is the user didn't get created. Another possibility is the user did get created but e.g. they didn't get a new shopping cart. The latter case means the shopping cart service needs to create a shopping cart for them later (or return an error when they try to use it), and there is nothing to roll back. Commented Jan 6, 2023 at 21:11
  • 2
    Here's a good video by Jimmy Bogard that talks about the options available for dealing with distributed failures, Jimmy Bogard - Six Little Lines of Fail. Commented Jan 7, 2023 at 1:03