this post was submitted on 30 May 2024
16 points (100.0% liked)
Experienced Devs
3961 readers
3 users here now
A community for discussion amongst professional software developers.
Posts should be relevant to those well into their careers.
For those looking to break into the industry, are hustling for their first job, or have just started their career and are looking for advice, check out:
- Logo base by Delapouite under CC BY 3.0 with modifications to add a gradient
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not completely sure which classes you're talking about - but it sounds like the Business Process Layer
"Controllers" (in dotnet at least) is usually reserved for the class that initially intakes the http request after middleware (auth, modelbinding etc)
It's probably easier with a concrete example, so lets say the action is "Create User"
It depends on the rest of your architecture, but I usually start with a
UserController
- that takes all user related requests.To make sure the Controller doesn't get super big with logic, it sends it though mediatr to a
CreateUserCommandHandler
But it's a big vague which parts you're asking about..
Everything else you've described
Is "cross-cutting", "Data Access Layer", and "Service Agent Layer" maybe a bit "Anti-corruption Layer" - but there's a lot of other things in between that "do the needful"