Http responsibility in the domain? #3
Replies: 1 comment
-
Hi again Marc, after a quick review...I agree with you. Maybe in a real case the best option is forget about the Sometimes we tend to make things more complicated that we need because we are thinking in the future. In this case I wanted to show how to use dependency injection and composition using a http client as parameter. But in the practice, I would forget about What do you think? |
Beta Was this translation helpful? Give feedback.
-
Hi, I am a bit surprised to see Http concerns in the domain part of the sample. It seems to me such technical concept (communication protocol), might be located in the infrastructure part.
We could decide to switch to graphql or websocket and it should not impact the domain part in my opinion.
What are your thoughts about this?
Kindly,
Marc
Beta Was this translation helpful? Give feedback.
All reactions