Hello,
In my app, I use Event Hub with the Kafka API as an event bus. I have several questions that I’m looking for answers to currently:
- How can I route Axon events to different Kafka topics?
- What number of Event Hub partitions should I consider for Axon?
I’m using
implementation ‘org.axonframework.extensions.kafka:axon-kafka-spring-boot-starter’
and have following configuration
axon:
kafka:
bootstrap-servers: ...
default-topic: axon_events
message-converter-mode: cloud_event
properties:
security.protocol: SASL_SSL
sasl.mechanism: OAUTHBEARER
sasl.jaas.config: org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required;
sasl.login.callback.handler.class: com.azure.spring.cloud.service.implementation.kafka.KafkaOAuth2AuthenticateCallbackHandler
publisher:
processing-group: ...
producer:
event-processor-mode: pooled_streaming