r/SpringBoot • u/HappyPurchase72 • Sep 29 '24
Package structure
What do you think about this package structure? What packages or layers would you add or remove if you work with microservices architecture?
43
Upvotes
r/SpringBoot • u/HappyPurchase72 • Sep 29 '24
What do you think about this package structure? What packages or layers would you add or remove if you work with microservices architecture?
2
u/realralfklemmer Oct 01 '24
The package structure is an opportunity to express what the chosen architecture is. Your packages are structured by technical concerns. In case of a business application that realizes business cases, I‘d encourage you to slice by business concerns that are structured internally in technical ways. By doing this you are very close to a vertically sliced architectures. If you want to dig deeper have a look at DomainDrivenDesign, Hexagonal architecture and modular monoliths.