SlideShare a Scribd company logo
Hexagonal architecture
with Spring Boot
Mikalai Alimenkou
@xpinjection
http://xpinjection.com
Hexagonal architecture with Spring Boot [EPAM Java online conference]
Telegram channel
https://t.me/xpinjection_channel
Disclaimer
This talk is based on
personal experience
Domain Driven Design
Expectations
Reality
Everything is simple!
Hexagonal architecture with Spring Boot [EPAM Java online conference]
Layered
architecture
must have layers
Layered architecture for kids
More serious view
Help Dasha to find business logic
Business logic is
easier to find
and understand
in single place
Everything should be Use Case driven
Alternative world
To connect to
the port you
need an adapter
Ports and adapters thinking
Hexagonal architecture with Spring Boot [EPAM Java online conference]
Fresh architectural paradigms
Spring Boot as game changer
Each service has similar structure
SERVICE
DB
QUEUE
UI
API
EXTERNAL
SERVICES
API CONTRACTS
Spring MVC
Spring MVC
Spring Data
Spring
Messaging
RestTemplate
Feign
Spring Cloud
Contracts
You could work on business logic
Better focus
helps to achieve
better results
Hexagonal architecture with Spring Boot [EPAM Java online conference]
There are still some blockers
#1. Transactions
#2. Validation
#3. Thick client
#4. DB tuning
#5. Thinking model
Summary
• Change your point of view from layered approach
• Start using ports and adapters approach
• Make business logic use case driven
• Learn how to use existing Spring Boot modules
• Adopt Domain Driven Design ideas
• Be happy unicorn in the rainbow world ;)
Hexagonal architecture with Spring Boot [EPAM Java online conference]
@xpinjection
http://xpinjection.com
mikalai.alimenkou@xpinjection.com

More Related Content

PDF
금융 X 하이브리드 클라우드 플랫폼 - 한화생명 디지털 트랜스포메이션 전략 - 김나영 AWS 금융부문 사업개발 담당 / 박인규 AWS 금융...
PDF
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
PPT
Auto Scaling on AWS
PPTX
AWS vs. Azure
PPTX
Azure Container Apps
PDF
Microservice architecture
PDF
Microservice Architecture
PPTX
Azure Active Directory - An Introduction
금융 X 하이브리드 클라우드 플랫폼 - 한화생명 디지털 트랜스포메이션 전략 - 김나영 AWS 금융부문 사업개발 담당 / 박인규 AWS 금융...
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
Auto Scaling on AWS
AWS vs. Azure
Azure Container Apps
Microservice architecture
Microservice Architecture
Azure Active Directory - An Introduction

What's hot (20)

PDF
Azure Monitoring Overview
PDF
What is Cloud Computing | Cloud Computing Tutorial | AWS Tutorial | AWS Train...
PPTX
Oracle to Azure PostgreSQL database migration webinar
PPTX
AWS 12월 웨비나 │클라우드 마이그레이션을 통한 성공사례
PDF
Hybrid cloud overview and VCF on VxRAIL
PDF
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
PPTX
AWS Route53 Fundamentals
PDF
Azure Arc Overview from Microsoft
PDF
금융 분야 마이데이터 (My Data) 산업 도입 방안 및 AWS 활용법 – 고종원 AWS 어카운트 매니저, 양찬욱 KB국민카드 팀장:: ...
PPTX
Feature Toggles
PDF
TechnicalTerraformLandingZones121120229238.pdf
PPTX
Azure: PaaS or IaaS
PDF
Getting Started with Infrastructure as Code
PDF
네이버 클라우드 플랫폼의 서비스 전략(공공, Cloud Connect)
PPTX
Understanding Azure Disaster Recovery
PDF
Azure Active Directory | Microsoft Azure Tutorial for Beginners | Azure 70-53...
PDF
롯데이커머스의 마이크로 서비스 아키텍처 진화와 비용 관점의 운영 노하우-나현길, 롯데이커머스 클라우드플랫폼 팀장::AWS 마이그레이션 A ...
PPTX
Cloud security and security architecture
PPTX
Azure Governance
PDF
AZ-204 : Implement Azure security
Azure Monitoring Overview
What is Cloud Computing | Cloud Computing Tutorial | AWS Tutorial | AWS Train...
Oracle to Azure PostgreSQL database migration webinar
AWS 12월 웨비나 │클라우드 마이그레이션을 통한 성공사례
Hybrid cloud overview and VCF on VxRAIL
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
AWS Route53 Fundamentals
Azure Arc Overview from Microsoft
금융 분야 마이데이터 (My Data) 산업 도입 방안 및 AWS 활용법 – 고종원 AWS 어카운트 매니저, 양찬욱 KB국민카드 팀장:: ...
Feature Toggles
TechnicalTerraformLandingZones121120229238.pdf
Azure: PaaS or IaaS
Getting Started with Infrastructure as Code
네이버 클라우드 플랫폼의 서비스 전략(공공, Cloud Connect)
Understanding Azure Disaster Recovery
Azure Active Directory | Microsoft Azure Tutorial for Beginners | Azure 70-53...
롯데이커머스의 마이크로 서비스 아키텍처 진화와 비용 관점의 운영 노하우-나현길, 롯데이커머스 클라우드플랫폼 팀장::AWS 마이그레이션 A ...
Cloud security and security architecture
Azure Governance
AZ-204 : Implement Azure security
Ad

Similar to Hexagonal architecture with Spring Boot [EPAM Java online conference] (20)

PPTX
Hexagonal architecture with Spring Boot
PDF
Agile Architecture in a Modern Cloud-Native Ecosystem
PPTX
Agile architectures in a modern cloud-native ecosystem
PPTX
Cloud lunchn learn_howtobecomeacloudarchitect_part1
PDF
Elements of DDD with ASP.NET MVC & Entity Framework Code First
PPT
Cloud Application Development Lifecycle
PDF
Java Design Patterns Tutorial | Edureka
PDF
resume
PDF
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
PPTX
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
DOC
Sreeraj_Resume
PPTX
BTUG - Dec 2014 - Hybrid Connectivity Options
PPTX
Be04 introduction to ef 6.0
PPTX
London Oracle Developer Meetup April 18
PDF
Enterprise Integration Patterns Revisited (EIP) for the Era of Big Data, Inte...
PDF
Architecting a Large Software Project - Lessons Learned
PDF
黑豹 ch4 ddd pattern practice (2)
PPTX
Why Cloud Management Makes $ense
PPT
J2EE Performance And Scalability Bp
PPTX
CQRS recipes or how to cook your architecture
Hexagonal architecture with Spring Boot
Agile Architecture in a Modern Cloud-Native Ecosystem
Agile architectures in a modern cloud-native ecosystem
Cloud lunchn learn_howtobecomeacloudarchitect_part1
Elements of DDD with ASP.NET MVC & Entity Framework Code First
Cloud Application Development Lifecycle
Java Design Patterns Tutorial | Edureka
resume
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
Sreeraj_Resume
BTUG - Dec 2014 - Hybrid Connectivity Options
Be04 introduction to ef 6.0
London Oracle Developer Meetup April 18
Enterprise Integration Patterns Revisited (EIP) for the Era of Big Data, Inte...
Architecting a Large Software Project - Lessons Learned
黑豹 ch4 ddd pattern practice (2)
Why Cloud Management Makes $ense
J2EE Performance And Scalability Bp
CQRS recipes or how to cook your architecture
Ad

More from Mikalai Alimenkou (20)

PPTX
Rise and fall of Story Points. Capacity based planning from the trenches.
PPTX
Static analysis tools as the best friend of QA
PPTX
Modern CI/CD in the microservices world with Kubernetes
PPTX
Saga about distributed business transactions in microservices world
PPTX
Effectiveness tips from Kubernetes trenches by Captain Obvious
PPTX
Ride the database in JUnit tests with Database Rider
PPTX
Wastful waste or why everything is so slow in development
PPTX
Hexagonal architecture with Spring Boot
PPTX
Wastful waste or why everything is so slow in development
PPTX
DevOps checklist or how to understand where is your team in DevOps landscape ...
PPTX
DevOps checklist or how to understand where is your team in DevOps landscape
PDF
Практические трудности в разработке Медкарты для целой страны
PPTX
Bro, manage test data like a pro! [QA Fest 2018]
PPTX
Agile antipatterns: review after 10 years of practice
PPTX
Bro, manage test data like a pro!
PPTX
Бытовая классификация тестировщиков с точки зрения разработчика
PPTX
Code Review tool for personal effectiveness and waste analysis
PDF
Funny stories and anti-patterns from DevOps landscape
PPTX
Developer + tester = quality++
PPTX
Continuous improvements of developer efficiency with modern IDE
Rise and fall of Story Points. Capacity based planning from the trenches.
Static analysis tools as the best friend of QA
Modern CI/CD in the microservices world with Kubernetes
Saga about distributed business transactions in microservices world
Effectiveness tips from Kubernetes trenches by Captain Obvious
Ride the database in JUnit tests with Database Rider
Wastful waste or why everything is so slow in development
Hexagonal architecture with Spring Boot
Wastful waste or why everything is so slow in development
DevOps checklist or how to understand where is your team in DevOps landscape ...
DevOps checklist or how to understand where is your team in DevOps landscape
Практические трудности в разработке Медкарты для целой страны
Bro, manage test data like a pro! [QA Fest 2018]
Agile antipatterns: review after 10 years of practice
Bro, manage test data like a pro!
Бытовая классификация тестировщиков с точки зрения разработчика
Code Review tool for personal effectiveness and waste analysis
Funny stories and anti-patterns from DevOps landscape
Developer + tester = quality++
Continuous improvements of developer efficiency with modern IDE

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Empathic Computing: Creating Shared Understanding
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
A Presentation on Artificial Intelligence
PDF
KodekX | Application Modernization Development
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Network Security Unit 5.pdf for BCA BBA.
Encapsulation theory and applications.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
NewMind AI Weekly Chronicles - August'25 Week I
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Spectral efficient network and resource selection model in 5G networks
Empathic Computing: Creating Shared Understanding
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Diabetes mellitus diagnosis method based random forest with bat algorithm
Dropbox Q2 2025 Financial Results & Investor Presentation
A Presentation on Artificial Intelligence
KodekX | Application Modernization Development
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Network Security Unit 5.pdf for BCA BBA.

Hexagonal architecture with Spring Boot [EPAM Java online conference]

Editor's Notes

  • #5: Это только мой опыт, но он достаточно широкий за счет работы во многих компаниях и общения с широкой аудиторией
  • #25: Департаменты развивают принципы локализации ответственности, что очень вредно.
  • #26: Уходите от смешных job titles. Стройте командную ответственность, потому что ответственность замыкает работу на определенных людей, так как спрашивать будут с них. В итоге развивается бюрократия и нет гибкости. Например, доступ к инфраструктуре или работа с зависимостями. И DevOps инженеры мало несут реальной ответственности. Командная работа приносит дополнительные Point of Views. T-shape инженеры важны, невозможно знать и уметь все. Инструменты важны и нужны, раньше их не было и жизнь была похожа на ад. Настроенные и прописанный инцидент менеджмент. Не занимайтесь тушением пожаров. Как дракончик с лейкой на картинке. У всех нет времени, поэтому нанимают новых людей. Они делают больше пожаров, что зацикливает процесс. Diversity на примере оптимистов и пессимистов, девушек, джунов и т.д.