代码拉取完成,页面将自动刷新
@startuml EventCompensation
!include layout.puml
title
EventCompensation
end title
hide footbox
box Subscriber Service
participant EventProcessor
participant CompensationFilter
end box
box Compensation Server
participant "ExecutionFailed \n AggregateRoot" as ExecutionFailed
participant CompensationScheduler
end box
box Publisher Service
participant CompensationSaga
participant EventCompensator
end box
autonumber "[0]"
EventProcessor++
CompensationScheduler++
EventProcessor -> CompensationFilter --++ : Invoke \n(Failed)
CompensationFilter -> ExecutionFailed --++ : CreateFailed
ExecutionFailed --
CompensationScheduler -> CompensationScheduler ++ : FindToRetry \n (查询待重试的失败)
CompensationScheduler -> ExecutionFailed --: Prepare \n(准备重试)
ExecutionFailed --> CompensationSaga --++ : Prepared \n(已准备就绪)
CompensationSaga -> EventCompensator ++-- : Compensate \n(补偿)
EventCompensator --> EventProcessor++-- : DomainEvent / StateEvent
EventProcessor-> EventProcessor ++-- : Invoke \n(执行补偿)
alt success:成功
EventProcessor -> CompensationFilter ++ : Invoke \n(Success)
CompensationFilter -> ExecutionFailed++-- : ApplySuccess \n(执行成功)
ExecutionFailed--
else fail:失败
EventProcessor -> CompensationFilter ++-- : Invoke \n(Failed)
CompensationFilter -> ExecutionFailed++-- : ApplyFailed \n(执行失败)
end
@enduml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。