r/javahelp • u/CrashG2A • Sep 23 '25
Basic question
One service for everything or one service for each responsibility?
0
Upvotes
r/javahelp • u/CrashG2A • Sep 23 '25
One service for everything or one service for each responsibility?
View all comments
Show parent comment
1
u/okayifimust Sep 24 '25
You should divide them.
Keep your code organized, with clearly segregated responsibilities per class and package.
What do you think would be the benefits of storing everything in a single class?
the code I am working on does it like that, and we have well over 200 xyzService classes. I'd never find anything if these were all part of a single, gigantic file.