First of all, if you didn't read the previous post, please read first part before you jump into this section
Hexagonal Architecture: Introduction Part I
Today we are going to discuss about hexagonal archittecture with use case
There three basic components which hexagonal architecture talks about.
Hexagon is the application itself. Inside the application we just have the things that are important for the business problem that the application is trying to solve.
Ports are the medium through which business logic is accessed.Port is a
use case boundary i.e. Ports correspond to use-cases in the application
An adapter translates between a specific technology and a technology free port. Adapters is medium which serve the purpose of transforming the
communication between various external actors and application logic through port.
In hexagonal architecture all actors interact with the application
through adapters
Consider Loan Application use case.
A customer wants to apply for a loan application using online website or
using an ATM. Application then verifies the credit rating check
system,updates information in database and sends an update mail to the
customer
Hexagonal Bondries are
This is my understanding about hexagonal architecture.
If you want to get more information on the topic, read Alistair Cockburn’s original article on the subject
I hope this article will help you understand idea of Hexagonal Architecture and who they are comes together I’ll be glad for any feedback!