DEV Community

Discussion on: Rollback Functions in Golang

Collapse
 
3ddpaz profile image
Ed

Why not simply add everything on a database transaction?? and dispatch the event only if it fails that transaction.

Collapse
 
omniawahid profile image
Omnia Wahid

That can be a solution if you are only integrating with database, however, if you are integrating with third parties services, you will need to reverse each.