Questions tagged [hexagonal-architecture]

The Hexagonal Architecture is a software architecture proposed by Alistair Cockburn. It is also called Ports and Adapters. It is similar to the Onion Architecture proposed by Jeffrey Palermo.

Alistair Cockburn proposed the Hexagonal Architecture, also called Ports and Adapters. The architecture is similar to the Onion Arcitecture proposed by Jeffrey Palermo.

The fundamental motivation of the approach is to avoid layer-to-layer dependencies usually associated with the N-tier architecture approach. This is achieved by placing all infrastructure, including databases, outside the problem domain.

The problem domain is then completely independent of the required infrastructure (testing, databases, security, etc.). For example, this means that testing database accesses can be done thoroughly without a real database.

95 questions
-1
votes
2 answers

Hexagonal architecture get aggregate in controller or service

I have a service with Hexagonal architecture that is responsible for creating leads in the system. In this service I don't have the users, I have to call an external service. In the lead create request that I receive through API, I don't have the…
-1
votes
3 answers

What are the drawbacks of adding a specialized port when using Hexagonal Architecture?

You have a set of microservices A, B, C that interact with microservice D for various reasons and one day you discover that sometimes one of the input fields of one of the REST Apis of D need to be potentially cleaned or transformed, by joining it…
Edmondo1984
  • 17,841
  • 12
  • 55
  • 99
-1
votes
1 answer

use case/business logic returning multiple values best practice?

I am implementing a clean architecture in an application. I have a layer where the application/usecase classes which does the business logic and interacts with mutliple outgoing ports (interfaces to adapters for database calls, http api calls etc).…
cani
  • 190
  • 2
  • 10
-1
votes
1 answer

Load object from multiple datasources with hexagonal architecture (ports and adapters)

Description I'm working with a almost 40 year old project with a lot of legacy code. Over the years multiple databases where added. Now I am converting it step by step to the hexagonal architecture with ports and adapters. Until now I always created…
Marc van Nieuwenhuijzen
  • 1,415
  • 1
  • 14
  • 20
-2
votes
1 answer

Moving a star marker along a hexagon trajectory?

I want to move a star marker along hexagon trajectory similar to "Circle trajectory" that I have added at the end of my question. Thanks. This is the source code to that I have written yet for creating concentric hegzagons but I don't know how to…
zein
  • 35
  • 4
1 2 3 4 5 6
7