Spring Boot Kafka Producer and auto create Topic

preview_player
Показать описание
Enjoy! :-)
Thank you for commenting and asking questions.

Library sign up referral link:

Checkout or buy the Introduction to Algorithms book at Amazon:

The code is located here:
Follow me on twitter:
Support me on Patreon:

As an Amazon Associate I earn from qualifying purchases.
Check out the stuff that I like (always updated):
Рекомендации по теме
Комментарии
Автор

Its a necro-posting, but anyways:
instead of removing FINAL from your MyKafkaConfiguration class properties,
you could describe a class with @ConstructorBinding annotation to make spring be able to Bind your props via Constructor.
That's why you've got that error during the first attempt of application start

mykyta
Автор

Nice tutorial, thank you! - gradle-6.3 would require for java 14 in case one is using java 14.

farooqmuh
Автор

Sad that you're not using all advantage of Generics in java.
But anyway thanks for this tutorial

mykyta
Автор

Nice explanation Mike! Can you please share an update on junit for producer code

TheJuniorsClub
Автор

What is the purpose of the NewTopic bean in KafkaTopicConfiguration ?

Is this creating a new topic if that topic does not already exist? Can I run this project with a topic that already exists and remove that bean?

chadjensen
Автор

I am getting this errors : [Producer clientId=producer-1] Connection to node -1 (localhost/127.0.0.1:29092) could not be established. Broker may not be available. Topic mike not present in metadata after 60000 ms.

barbhayavivek
Автор

How to change the project from Gradle to Maven Thank's

yassinehachali
join shbcf.ru