r/SpringBoot • • Sep 29 '24

Package structure

Post image

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

43 comments sorted by

View all comments

1

u/SilverSurfer1127 Sep 30 '24

See hexagonal architecture aka Ports and Adapters. The service layer implements usually your use cases and can depend on many repositories. And I would recommend to get your bounded contexts right, so domain driven design is your friend.