tracing events in event driven architecture

0

We are thinking of designing commands and events based architecture for our feature. One problem we observe here is that how do we debug or trace "what happen to these commands and events ?"

For example if i send "createUser" command and when the user is created, we will emit "userCreatedEvent". Are there any way to correlate these command and events ?

We want to track all the sequence of events completed or not. It will help us in debugging and identity what successfully executed and what events are not successfully executed.

已提问 1 年前453 查看次数
1 回答
1

Hi,

you can instrument your code via AWS X-Ray to trace your events. You can see X-Ray used in this end-to-end implementation of a airline booking system. The Serverless Observability workshop provides step-by-step instructions on how to do distributed tracing for your event based application.

Cheers,

Massimiliano

AWS
专家
已回答 1 年前
profile pictureAWS
专家
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则