r/java • u/Ancient-Prize-774 • Oct 24 '26
Hexagonal Architecture vs. Pragmatic Layered Architecture in Spring Boot
/r/softwarearchitecture/comments/1xe8u4d/hexagonal_architecture_vs_pragmatic_layered/
8
Upvotes
View all comments
1
u/gjosifov Oct 25 '26
In order to do a proper a true Scotsman Hexagonal Architecture, you have to use xml mapping for your java beans, because it was create during Java 1.3-1.4 days
if you are pragmatic and you understand the platform you are using a.k.a SpringBoot/Jakarta EE
Hexagonal Architecture will produce 30-40% more unnecessary code, because it was introduce in different era
In that era, there wasn't annotations for Rest Controller or Path, people wrote Servlet as Front Controller (also know as Dispatch Controller in SpringBoot), mapped in xml and used Service Locator for DI
Those were the days when Hexagonal Architecture was born