r/SpringBoot • u/TopExact9938 • Apr 09 '26
Discussion I built a full-stack messaging app to actually understand Hexagonal Architecture and here's what I learned
For a while I kept reading about Domain-Driven Design and Hexagonal Architecture in blog posts and thinking "okay but what does this look like in a real project for my portfolio?" Most tutorials either stay toy-level or skip the hard parts.
So I built a WhatsApp-style messaging app not because the world needs another one, but because it was complex enough to make the architecture decisions actually matter.
The stack: Spring Boot 3 + Angular 17 + Keycloak + PostgreSQL + Minio + Docker + Jenkins.
A few things that genuinely surprised me:
DDD is really powerful but it doesn’t fit everywhere. I have to spent more time to modeling, refining language than they would in a simpler architecture .
Keycloak integration is not plug-and-play. Spring Security + Keycloak took way longer than expected. When deploy the internet, the TLS certification and subdomain config is a real pain.
Hexagonal Architecture starts to click once you have a real domain. Messaging has enough moving parts (delivery status, notifications, media, group membership) that you actually feel the benefit of keeping your domain isolated.
WebSockets + STOMP with Spring is pretty solid once you stop fighting the session model.
Not claiming this is production-ready and it's a learning project. But if you're trying to understand how DDD, Hexagonal Architecture, and Keycloak actually fit together in Spring Boot, maybe it saves you some pain.
Happy to answer questions about any of the implementation decisions.

3
u/devmoosun Apr 09 '26
Great job! Thanks for sharing this. Could you please share a demo username? I want to send a request and test the chat feature.
1
u/Vrajesh_Darji Apr 09 '26
Ya me too want to try, if it possible to share demo username it would be great
2
3
Apr 09 '26
[removed] — view removed comment
2
u/TopExact9938 Apr 09 '26
Do you mean signed with SSL/TLS certification, or something else?
2
Apr 09 '26
[removed] — view removed comment
3
u/TopExact9938 Apr 09 '26
Yeah, you will need a domain for that, I buy one in Cloudflare. You can test on the DuckDNS but for production it recommend to buy a good domain name. Nginx as reverse proxy to traffic to your web app and assign the certificated. For further detail step by step you can follow this repo link https://github.com/Saad-Azi/nginx-ssl-configuration-guide
-1
Apr 09 '26
[removed] — view removed comment
1
u/TopExact9938 Apr 09 '26
The mobile app is coming soon. Right now it's a web app, so signing isn't exists yet.
U can try at https://locichat.uk/-1
1
u/paramvik Apr 21 '26
Hi there! I'm very impressed with the architecture and documentation you've provided. I wanted to ask what resources would you recommend to understand DDD, Hexagonal architecture and EDD?