How would you handle cross-cutting domain in this case? I mean, how would you retrieve Books of a certains author, and publisher of each of this book? Also, is it possible to get the github of this code.. as code is not really zoomed..!
>How would you handle cross-cutting domain in this case? I mean, how would you retrieve Books of a certains author, and publisher of each of this book? I'd do outbound ports, so as a part of Book domain I'd have interface to retrieve relevant data of Authors. I'd implement those interfaces as a part of Authors module, that could later be replaced by a HTTP Client call if those two services would be split into different apps. Check out Hexagonal Architecture - Ports. I will try to submit my code to GH asap, will get back to you!
How would you handle cross-cutting domain in this case? I mean, how would you retrieve Books of a certains author, and publisher of each of this book?
Also, is it possible to get the github of this code.. as code is not really zoomed..!
>How would you handle cross-cutting domain in this case? I mean, how would you retrieve Books of a certains author, and publisher of each of this book?
I'd do outbound ports, so as a part of Book domain I'd have interface to retrieve relevant data of Authors. I'd implement those interfaces as a part of Authors module, that could later be replaced by a HTTP Client call if those two services would be split into different apps. Check out Hexagonal Architecture - Ports.
I will try to submit my code to GH asap, will get back to you!
Github link: github.com/Mijalski/MinimalApiTutorial :)
@@hubertmijalski Thank you for taking your time..