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 the architecture looks like follow:
- org
-- example
--- someapp
---- adapters
----- ...
---- domain
----- BusinessDecision.java
---- ports
----- driver
------ ForRetreivingBusinessDecision.java
----- driven
------ ForRetreivingExternalInfo.java
The real question is if ForRetreivingBusinessDecision.java
should contain BusinessDecision getDecision(String input1, String input2);
or the return value should be void
and in the adapters side I should somehow produce the response object? Or it should be String as it will be managed in adapters as a JSON response?
If it is question for different stack network then I’m sorry.
aiwillconquerus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.