문제

I've never heard about storing/replaying commands in CQRS/ES architectures and wanted to ask is that a common practice? I understand the difference between commands and events, but, lets say, from QA point of view it may be useful to replay crashes that happened on production environment.

도움이 되었습니까?

해결책 2

I think it is more common in systems where the commands can be issued from different subsystems and, due to infrastructure-related problems/inefficiencies, reach the respective command handler with an inverted time order than the one they were issued with. In this case the commands should normally be reprocessed with the correct time order. An example could be a parking/room reservation system, where a user can make a reservation either from a web client or by sending an SMS.

다른 팁

Doubt that it is common, to be honest.

You could pretty easily reproduce problems processing commands by having some logging infrastructure in the component that's doing your command processing.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top