Not completed logic which needs transaction.

Author: timsolovCreated Dec 26, 2021Updated Jul 17, 2023

Thank you for your repo and articles. This is awesome work! I'm trying to rewrite my legacy service to the yours approach.

And I have a question:

How to guarantee that all hours in this command will be updated atomic?

https://github.com/ThreeDotsLabs/wild-workouts-go-ddd-example/blob/33e3c49f825ad1e542de2bf3ab7da70af3b23bc3/internal/trainer/app/command/make_hours_available.go#L24

Or what will happen when repo will be updated here: https://github.com/ThreeDotsLabs/wild-workouts-go-ddd-example/blob/master/internal/trainings/app/command/schedule_training.go#L56 but one of external service won't be available? Will we have incompleteness here?

Source: ThreeDotsLabs/wild-workouts-go-ddd-example