Hi,
We have run in to blocker issue with one of the use cases for Axon-Kafka.
We have built a system that runs on Axon and follows all the life cycle.
When I execute AggregateLifeCycle.apply it publishes messages to a Kafka Topic.
we have down stream applications that is based up of basic spring-boot-kafka framework.
They are trying to deserialize the message and are unable to do so.
My question is can Axon not publish raw messages to Applications that are not using Axon framework ? If they do what needs to be done on the consumer side.
Can you share how you forward/publish events to Kafka topic please? Are you using Axon Kafka module/extension?
I’m not sure if Kafka extension can publish messages in Spring format at the moment to be honest. The message converter responsible for this is here.
Axon uses serializers to serialize objects when sending them over the wire. Some serializers are more implementation-specific than others. The Jackson Serializer, for example, will just serialize to json, which is very interoperable. So when you send events to a Kafka topic, there shouldn’t be anything withholding you from reading those messages without using Axon.