4:关于axonframework的疑问,deadlineManger材料

14:疑问

1: EventSourcingHandler,eventHandler?

org.axonframework.eventhandling.TrackingEventProcessor#start? 处理所有的eventHandler?

2:TargetAggregateIdentifier,AggregateIdentifier二者的区别

3:saga超时如何处理?

4:DeadlineHandler ?

https://docs.axoniq.io/reference-guide/axon-framework/deadlines/deadline-managers

Event Schedulers - Axon Reference Guide

registerComponent

org.axonframework.spring.config.SpringAxonAutoConfigurer#registerComponent(java.lang.Class<T>, org.axonframework.config.Configurer, java.util.function.Consumer<org.axonframework.config.Configuration>)

org.axonframework.spring.config.SpringAxonAutoConfigurer#registerBeanDefinitions

https://medium.com/fourscouts/a-practical-example-to-axons-deadlinemanager-98aaa20ddc67

axon - QuartzDeadlineManager(Scheduler)无意中替换了配置的TransactionManager。 - SO中文参考 - www.soinside.com

@Configuration
public class AxonConfiguration {
    @Bean
    public DeadlineManager deadlineManager(
        final Scheduler scheduler,
        // Disregard "Could not autowire. No beans of 'AxonConfiguration' type found." complain from IntelliJ.
        // This class is an @Configuration, which is a @Component by itself.
        final org.axonframework.spring.config.AxonConfiguration configuration,
        final TransactionManager transactionManager,
        final Serializer serializer
    ) {
        return QuartzDeadlineManager.builder()
            .scheduler(scheduler)
            .serializer(serializer)
            .scopeAwareProvider(new ConfigurationScopeAwareProvider(configuration))
            .transactionManager(transactionManager)
            .build();
    }
}

5: CommandBus vs CommandGateway 这两个的区别?

gitee代码地址:分支为:axon_demo_saga(基于慕课网分布式事务实战课代码修改测试Deadlinemanager)sleeve/springAxonDemohttps://gitee.com/sleeve.com/spring-axon-demo.git

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值