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

Show parent comments

0

u/HappyPurchase72 Sep 29 '24

This is an example of a basic structure, in reality there are obviously more classes.

5

u/Kaikka Sep 29 '24

Even then I think its too much. At least for what im used to.

-3

u/HappyPurchase72 Sep 29 '24

I understand your point of view, but if the microservice was quite extensive, you have to rethink how to structure the packages to make it more scalable according to the requirements.

1

u/hsoj48 Sep 30 '24

The package structure is irrelevant to the compiler code for the most part. Microservice scaling is even more unrelated.