Questions tagged [command-message]
The command-message tag has no summary.
13 questions
0
votes
2
answers
420
views
How do model a command that returns a result in an event storming?
I have a discussion with a colleague regarding how to model a command that immediately gets an answer to it's HTTP POST request back. In this specific case we do an API call to a 3rd party IDP API ...
0
votes
2
answers
263
views
A command as the intended effect of POST versus as the side effect of PUT
The intended effect (semantics) of the POST method is resource specific, e.g. executing a command with arguments:
POST /command HTTP/1.1
{"parameter-1": "argument-1", "...
0
votes
1
answer
889
views
Message bus: should an event handler trigger other commands?
Given I have a message bus that can handle commands and events. A command handler can dispatch an event. But should an event handler be able to dispatch another command? Or should event handlers only ...
2
votes
1
answer
676
views
Passing Meta info from Command through Aggregate to Event
I have a CQRS system in development that passes the Command to a CommandHandler, which gets an Aggregate from a Repository, and calls a method with the properties of the Command (converted to ...
1
vote
1
answer
137
views
How to implement format-complying logging system?
We have a system that generates lots of logs and we have to somehow maintain logging workflow in a project.
The 'strict' (let's assume it's strict) requirement is that there should be a document ...
1
vote
2
answers
3k
views
Reading the result of your command with the Command Pattern
I am currently looking into developing a new system utilizing hexagonal architecture and the commandpattern facilitated by a commandbus like tactician (it's a PHP system).
Now I really like the idea ...
16
votes
3
answers
18k
views
In CQRS/ES, can a command create another command?
In CQRS/ES, a command is sent from the client to the server and routed to the appropriate command handler. That command handler loads an aggregate from its repository, and calls some method on it, and ...
12
votes
2
answers
3k
views
Where should you validate the state of "other" aggregates?
Scenario:
A customer places an order, then, after receiving the
product, provides feedback on the order process.
Assume the following aggregate roots:
Customer
Order
Feedback
Here are the business ...
1
vote
1
answer
49
views
Does my Remote Procedure and Event Protocol complete?
I recently wrote a protocol I call RPEP (https://github.com/Tixit/RPEP), partially in response to the unfortunately named WAMP protocol. I'm looking for feedback as to whether the protocol is ...
3
votes
1
answer
216
views
Message Mapper Design Considerations
Long question context, skip to tl;dr for the meat of it.
I am designing an integration between two web applications, and have come to the conclusion that a message pattern would be an appropriate ...
2
votes
2
answers
3k
views
Building a string parser for user command and control?
My goal is to build a command parser that has basic syntax and multiple possible branches at each point. These commands come from users of the system and are text input (no GUI). The basic syntax is ...
1
vote
1
answer
351
views
MVC Communication Pattern
This is kind of a follow up question to this https://stackoverflow.com/questions/23743285/model-view-controller-and-callbacks, but I wanted to post it separately, because its kind of a different topic....
14
votes
2
answers
6k
views
How to determine if a message should be a command message or event message?
Two enterprise integration patterns are the command message and the event message. I am working on a system in which we use messaging not only for integration with other systems, but for internal ...