201 questions
Best practices
0
votes
1
replies
60
views
Hexagonal vs Clean vs Onion Architecture — Which Is Truly the Most Solid?
In your experience, which software architecture can be considered the most solid and future-proof for modern systems?
Many developers highlight Hexagonal Architecture for its modularity and decoupling,...
0
votes
1
answer
53
views
Dependency Inversion in NestJS
I'm trying to use Dependency Inversion in Nestjs. I'm trying to use a hexagonal architecture. For the purpose of this question I've created a fake simplified example with three modules in two ...
1
vote
0
answers
32
views
Nestjs DI goes wrong for some reason
While going through some course in nestjs and trying to implement the Hexagonal Architecture,
I faced this Dependency Injection issue.
I am new to nestjs and I made sure that my code is exactly the ...
0
votes
1
answer
161
views
Understanding architecture hexagonal with react
I have this project on github
My problem is that I'm not sure if I'm applying hexagonal architecture correctly.
I have made a project that is responsible for managing a to-do list, where I can work ...
0
votes
0
answers
27
views
Error using controller methods in express.js "Router" object
When I want to assign my controller methods from "import { Router } from "express";" it gives me this error:
Error:
No overload matches this call.
The last overload gave the ...
0
votes
1
answer
86
views
Can we mix Enterprise Integration Pattern and Hexagonal architecture [closed]
Trying to understand how we would use Hexagonal architecture with EIP.
In the Spring Boot example I have below, the UserMessageHandler is a part of the inbound adapter (according to me) and is calling ...
2
votes
1
answer
961
views
Where should exceptions be throwed in a hexagonal architecture?
I'm changing 3 layer architecture to hexagonal architecture.
In hexagonal, Should the exception be throwed in the adapter or in the service?
This is code I write.
I use Kotlin, Spring, JPA.
Once I ...
1
vote
1
answer
1k
views
DTO on hexagonal architecture and DDD
I've a spring application (webservice that connect to a database and retrieve data) using a hexagonal architecture and DDD (Domain-Driven Design).
The basic struture is
Application
Controller to ...
0
votes
1
answer
302
views
Ports & adapters a.k.a hexagonal architecture modeling interfaces
I'm designing architecture for my small project. Java, spring-boot powered.
The idea behind this application is simple - retrieve some decision based on input parameters and external api.
I think that ...
1
vote
0
answers
101
views
multi-module bean not found
I am developing a service by combining Kotlin, Spring Boot, multi-module, and hexagonal architecture.
While implementing the login logic, I encountered the following error:
***************************
...
1
vote
3
answers
983
views
Kafka streams in hexagonal architecture
Im creating service in hexagonal architecture that consume data from topic. In the same projects I want to use kafka streams to merge few topics into single one and then consume that data from that ...
0
votes
2
answers
1k
views
Multiple Hexagonal architecture with sprint boot
I work on a spring boot application with spring data and hibernate.
I am using hexagonal architecture.
I have 2 hexagons:
ConnexionManagment
OrderManagment
Each hexagon interacts with the same table ...
2
votes
1
answer
3k
views
Hexagonal architecture/Ports and adapters: Communication between adapters
I have read quite a few articles about ports and adapters. Considering communication, they all just speak about communicating between the different "layers" (domain, application, adapters) ...
2
votes
1
answer
245
views
What is the exact benefits on using Ports/Adapters in hexagonal architecture?
Lets say we have a typical implementation of the ports/adapter pattern:
@RestController
private class OrderController {
private final CreateOrderPort createOrderPort;
@PostMapping
...
0
votes
2
answers
385
views
DDD - Managing "User" entity between aggregates
I'm trying to rewrite monolith app onto a modular monolith using DDD and hexagonal architecture. Tried to extract three modules (aggregates) at first: "Shared", "User" and "...
1
vote
0
answers
509
views
Dealing with JPA relationships in hexagonal architecture
I'm new to hexagonal architecture & ran into a scenario where I can't figure how it can be achieved.
I have two domain objects say Employee & Vehicle. Employee can have many vehicles. My ...
1
vote
2
answers
4k
views
Spring Boot: Use incoming access token for outgoing requests. (Internally pass access token from RestController to Component.)
I am wondering what is the best way in a Spring Boot application to internally pass an access token from an incoming request through the different layers, before using it in an outgoing request?
The ...
1
vote
1
answer
1k
views
Clean Architecture and Spring Boot
I am implementing a spring boot microservice using Clean Architecture. I have a multi module java app, with domain, application and infrastructure.
Domain and Application modules do not know anything ...
1
vote
2
answers
814
views
Why does this ArchUnit test fail?
I have a demo project which tries to respect strictly clean/onion/hexagonal architecture.
Here is how I configure ArchUnit test :
@AnalyzeClasses(packages ="fr.tristan.demoassurance", ...
1
vote
1
answer
116
views
What IDE subprojects (=Maven <modules>) dispatching for an hexagonal project? How many jars will be in the final executable jar? Ten, tens, hundreds?
Before starting to move to an hexagonal architecture, my application (roughly) had these jars, gathering into a bigger executable.
(to be more precise, for a comment below: concretely each of my Maven ...
0
votes
1
answer
194
views
What sub-packages are recommended to use to dispatch classes when creating an hexagonal architecture for a Java (here spring-boot) application?
I discovered the hexagonal architecture and I'm willing to apply it on a rather large Spring Boot application.
A stackoverflow user started a question with a list of sub-packages looking to me really ...
2
votes
1
answer
894
views
In a hexagonal Java application, which part ought to control the transaction?
In my Java application, I try to implement hexagonal architecture:
Its inner core package contains the pure business logic. These are in the form of plain old Java objects and interfaces.
On one ...
1
vote
1
answer
1k
views
how do I successfully to using hexagonsdk
when i install hexagon sdk 5.1.0.0 using QPM, error occured "hexagonsdk5x_jre.5.2.0.0.windows-x86.exe hexagonsdk5x_jre.5.2.0.0.windows-x86.exe was not installed". then install these deps ...
1
vote
1
answer
1k
views
How to set relationship between entites in clean architecture?
Sample architecture
Recently I started to learn Clean Architecture implementation. Now I'm stuck on the way to create my entities and create the between them. It's suggested in uncle Bob to have ...
1
vote
0
answers
308
views
hexagonal architecture JWT
I'm looking for a good example of login using hexagonal architecture.
I use spring boot, but it doesn't matter if you reply in other languages and frameworks.
Send username, password from incoming ...