axon-kafka | Kafka as EventBus and EventStore for AxonFramework | Pub Sub library
kandi X-RAY | axon-kafka Summary
kandi X-RAY | axon-kafka Summary
Kafka as EventBus and EventStore for AxonFramework 3
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of axon-kafka
axon-kafka Key Features
axon-kafka Examples and Code Snippets
Community Discussions
Trending Discussions on axon-kafka
QUESTION
Got below setup and it works perfectly fine when 4.0-RC2 version is used.
Howver it gives startup error when we we try to use latest version 4.0.RC3.
...ANSWER
Answered 2020-May-13 at 15:30Changes between RC2 and RC2 of the Kafka Extension provided by Axon are not compatible. This choice was made to have the freedom to adjust the API according to further findings. Hence why it's a release candidate and not a final release. This is stated on the GitHub page of the project and on the reference guide page on the Kafka Extension.
Configuration properties used in RC2 are thus not compatible with RC3. Check the reference guide (which has been expanded together with RC3) for more specifics on how to adjust your config.
QUESTION
I'm using the Kafka example from GitHub (https://github.com/marinkobabic/axon-kafka-example) and it's working when connecting to a locally deployed Kafka cluster. As suggested by Axon's docs, I'm trying to use a custom kafka ProducerFactory by exposing a KafkaPublisher bean and overriding withProducerFactory(). My bean is created, but createProducer() of my custom kafka ProducerFactory is never getting called. In fact, Axon's DefaultProducerFactory is still used. Any suggestions?
...ANSWER
Answered 2019-Nov-12 at 15:32I was able to solve my problem by keeping the KafkaPublisher, but I needed to expose an EventBus bean (which I qualified in Sender.java) and wire up the publisher to it. I also needed to expose my own axon ProducerFactory that wrapped my own kafka ProducerFactory. My final configuration is as follows:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install axon-kafka
You can use axon-kafka like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the axon-kafka component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page