Skip to content

Broad question #447

Answered by drewburlingame
atari-monk asked this question in Q&A
Jul 23, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

It really depends on what your needs are. In most cases, you'll want your business logic for a domain to live in one place. If you want to expose that logic via network API so it can be accessed by other applications, then I would usually expose the logic in the API and have console apps call the endpoints.

There are many benefits to this approach

  • If the domain logic changes, only the API needs to be updated and deployed.
  • You may be able to take advantage of auto-scaling and a console app could take advantage of that by parallelising requests to the API.

There are some reasons not to move commands behind an API

  • If you have a long running business operation, you'll need to divide it int…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@drewburlingame
Comment options

@atari-monk
Comment options

Answer selected by atari-monk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants