Spring for Apache Kafka® 101: Sending Messages to Apache Kafka with Spring Boot (Hands On)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ย. 2024
  • cnfl.io/spring... | Learn by adding a producer class based on a KafkaTemplate to your code. You'll use the java-faker library to mock data from a book and push it to an Apache Kafka® topic in Confluent Cloud, adding the Flux library to push one message per second. On Confluent Cloud, you'll create a topic for your mock book data, so that when you run your application you can view your messages in the Confluent Cloud UI.
    Use the promo code SPRING101 to get $25 of free Confluent Cloud usage: cnfl.io/try-cl...
    Promo code details: cnfl.io/promo-...
    LEARN MORE
    ► Spring for Apache Kafka Deep Dive - Part 1: cnfl.io/spring...
    ► Class KafkaTemplate Type Parameters K and V: docs.spring.io...
    ► KafkaTemplate: github.com/spr...
    ABOUT CONFLUENT
    Confluent is pioneering a fundamentally new category of data infrastructure focused on data in motion. Confluent’s cloud-native offering is the foundational platform for data in motion - designed to be the intelligent connective tissue enabling real-time data, from multiple sources, to constantly stream across the organization. With Confluent, organizations can meet the new business imperative of delivering rich, digital front-end customer experiences and transitioning to sophisticated, real-time, software-driven backend operations. To learn more, please visit www.confluent.io.
    #kafka #springboot #java

ความคิดเห็น • 12

  • @HugoAndresBuitrago
    @HugoAndresBuitrago 2 ปีที่แล้ว +3

    I think there is a disconnect with the previous video in which a ProducerFactory was explained. In the current video I don't think the factory is mentioned/used at all. Maybe I am mistaken.

  • @kdvr60
    @kdvr60 ปีที่แล้ว +2

    In case your spring application isn't able to find the broker since it is by default pointing to the bootstrap-server localhost:9092, you can override the bootstrap-sever to point to the server your confluent cloud provides you with by pasting the properties file you get from confluent cloud and then
    replacing the property spring.kafka.properties.bootstrap.servers=
    with
    spring.kafka.bootstrap-servers=

  • @Maurosls
    @Maurosls 3 ปีที่แล้ว

    Very usefull video. I'm enjoying this playlist a lot. Thanks for the explanations full of details.

  • @Indrajeetviper
    @Indrajeetviper 7 หลายเดือนก่อน

    is there a github repo that we can refer to?

  • @saisreenath5189
    @saisreenath5189 ปีที่แล้ว

    Where did he use kafkatemplate, i can see 1 usage of the template property? can someone help

  • @sohrabsheykhmohammadi1909
    @sohrabsheykhmohammadi1909 3 ปีที่แล้ว

    thanks, can we have multiple key and value serdes for one producer ?
    what we can do when we need multiple producer with different key and value serdes in one spring boot application?

    • @seonwookim5391
      @seonwookim5391 3 ปีที่แล้ว

      How about using json strings?

    • @francksgenlecroyant
      @francksgenlecroyant 2 ปีที่แล้ว

      @@seonwookim5391 json string will make you serialize and deserialize your data manually, it's time consuming, you should use the spring json serde

  • @rydmerlin
    @rydmerlin 2 ปีที่แล้ว +1

    It think it’s too convoluted with Flux

  • @USONOFAV
    @USONOFAV 2 ปีที่แล้ว

    Your series of tutorials doesn't work if you follow every steps. T. On the previous tutorial before this your configure KafkaTemplate with here you made it which won't run. Also your java configuration you put localhost:9092 for bootstrap server but in the application.properties you need to put the one generated by the client environment in your confluent cluster.
    Trying Confluent Cloud as we are considering it for our kafka application. But your tutorials sucks.

  • @audio-ytube
    @audio-ytube 2 ปีที่แล้ว +1

    That faker example is not working .. could Confluent not afford to hire a better programmer ?
    can't believe this clown is the only support we have for learning how to use Confluent

    • @yevgenmuza9728
      @yevgenmuza9728 11 หลายเดือนก่อน

      These "problems" are simple fixable, but as for me, it's much simpler to watch his videos instead of Hindus. He tells in 4 minutes video the same information they have in 30 minutes video.