cqrs

Rebuild queries from domain events by multiple aggregates

ε祈祈猫儿з 提交于 2020-12-30 02:29:46
问题 I'm using a DDD/CQRS/ES approach and I have some questions about modeling my aggregate(s) and queries. As an example consider the following scenario: A User can create a WorkItem, change its title and associate other users to it. A WorkItem has participants (associated users) and a participant can add Actions to a WorkItem. Participants can execute Actions. Let's just assume that Users are already created and I only need userIds. I have the following WorkItem commands: CreateWorkItem

CQRS - Executing Commands within Commands

眉间皱痕 提交于 2020-12-01 11:12:32
问题 I recently saw some code scenarios where CommandHandlers were being injected with ICommandExecutor to call other commands. So commands within commands. This was also true for some QueryHandlers being injected with IQuery. public class UpdateCarDetailsCommandHandler : CommandHandler<UUpdateCarDetailsCommand> { private ICommandExecutor _command; public UpdateCarDetailsCommandHandler (ICommandExecutor command) { _command = command; } public override void Execute(UpdateCarDetailsCommand command)

CQRS - Executing Commands within Commands

不想你离开。 提交于 2020-12-01 11:12:04
问题 I recently saw some code scenarios where CommandHandlers were being injected with ICommandExecutor to call other commands. So commands within commands. This was also true for some QueryHandlers being injected with IQuery. public class UpdateCarDetailsCommandHandler : CommandHandler<UUpdateCarDetailsCommand> { private ICommandExecutor _command; public UpdateCarDetailsCommandHandler (ICommandExecutor command) { _command = command; } public override void Execute(UpdateCarDetailsCommand command)

Is it possible to scale Axon Framework without Axon Server Enterprise

[亡魂溺海] 提交于 2020-12-01 10:15:45
问题 Is it possible to scale Axon Framework without Axon Server Enterprise ? I'm interested in creating a prototype CQRS app with Axon, but the final, deployable system has to be be free from licensing fees. If Axon Framework can't be scaled to half a dozen nodes using free software, then I should probably look elsewhere. If Axon Framework turn out not to be a good choice for the system, what would you recommend? Would building something around Apache Pulsar be a sensible alternative? 回答1: I think

Is it possible to scale Axon Framework without Axon Server Enterprise

只谈情不闲聊 提交于 2020-12-01 10:15:15
问题 Is it possible to scale Axon Framework without Axon Server Enterprise ? I'm interested in creating a prototype CQRS app with Axon, but the final, deployable system has to be be free from licensing fees. If Axon Framework can't be scaled to half a dozen nodes using free software, then I should probably look elsewhere. If Axon Framework turn out not to be a good choice for the system, what would you recommend? Would building something around Apache Pulsar be a sensible alternative? 回答1: I think

Is it possible to scale Axon Framework without Axon Server Enterprise

烈酒焚心 提交于 2020-12-01 10:14:08
问题 Is it possible to scale Axon Framework without Axon Server Enterprise ? I'm interested in creating a prototype CQRS app with Axon, but the final, deployable system has to be be free from licensing fees. If Axon Framework can't be scaled to half a dozen nodes using free software, then I should probably look elsewhere. If Axon Framework turn out not to be a good choice for the system, what would you recommend? Would building something around Apache Pulsar be a sensible alternative? 回答1: I think

CQRS: Command Return Values [closed]

旧城冷巷雨未停 提交于 2020-07-16 11:00:07
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Improve this question There seems to be endless confusion about whether commands should or should not have return values. I would like to know if the confusion is simply because the participants have not stated their context or circumstances. The Confusion Here are examples