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