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?
1
u/WaferIndependent7601 Sep 29 '24
If you work with a microservices (you should not do this) then you have no packages. Your service is the package.
Your structure is way too much.
Don’t prefix interfaces with an I.
Don’t use an interface if you only have one implementation.