Skip to content

Clarify the documentation on the TRequest Handle(TRequest) #2058

Answered by iancooper
IlSocio asked this question in Q&A
Discussion options

You must be logged in to vote

Brighter does two things:

  • It is a Command Dispatcher => it routes requests to handlers to allow separation of call site from domain code and knowledge of recipient from the caller
  • It is a Command Processor => it allows common orthogonal operations to be lifted out of the domain code that executes the request, such as logging, and into middleware that runs before the handler.

What Brighter is not is a mediator => which is a collaborator between colleagues, for example within a domain: (see https://softwareengineering.stackexchange.com/questions/364139/what-is-the-difference-between-the-command-and-mediator-patterns)

As we can have a number of orthogonal elements that run before the domai…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DevJonny
Comment options

Comment options

You must be logged in to vote
1 reply
@DevJonny
Comment options

Answer selected by IlSocio
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2055 on April 01, 2022 18:33.