Spring Tips: Spring Batch and Apache Kafka

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Hi Spring fans! Welcome to another installment of [_Spring Tips_ (@SpringTipsLive)]( / springtipslive ! In this installment we look at the just-landed community contribution in Spring Batch adding support for Apache Kafka. This new support offers some tantalizing opportunities to bridge batch and streaming workloads. Stage large writes to backend warehouses with Kafka and drain the stream with Spring Batch. Load large amounts of data from existing datastores and funnel it into stream processing pipelines. And the possibilities become even more interesting when you consider Spring Integration, Spring Cloud Stream, Spring Cloud Stream Kafka Streams, and Spring Cloud Data Flow. If you want a quick primer on Spring Batch-basics you might like the Spring Tip installment on Spring Batch from - _gasp_! - two years ago!
    speaker: Josh Long (@starbuxman)
    twitter: / starbuxman
  • Věda a technologie

Komentáře • 23

  • @JavierGomez-xl9us
    @JavierGomez-xl9us Před 5 lety +1

    Excellent I was thinking in a way to include kafka in my ETL process and this is exactly that!

  • @sanjeevabhi
    @sanjeevabhi Před 4 lety

    Wow.. Its a very detailed explanation. Thanks for the video and really appreciate this.
    If possible coold you please provide a github link for the test program you built....

  • @vinz486
    @vinz486 Před 5 lety +8

    Nyan cat loading bar ✔

  • @KhaledAyoubi
    @KhaledAyoubi Před 3 lety +2

    I don't get it why you would want a batch job to read from Kafka, why not just have Kafka consumer reading from the Topic directly ?

    • @ashishkumar-os6ek
      @ashishkumar-os6ek Před 3 lety

      did you understand this one? I am also not able to understand.I dont see any examples showing error handling and all in this.

    • @deepanshurathore9661
      @deepanshurathore9661 Před 2 lety

      He could do that too but he's showing how to do via job that's the main moto of this video.

  • @rohaeliaful
    @rohaeliaful Před 4 lety

    does the consumer job ends ever ?? because it is listening to the kafka ?

    • @jakobsaternus3526
      @jakobsaternus3526 Před 2 lety

      it did terminate at 43:47, the default polling timeout is 30 sec

  • @user-vq0mo1011a
    @user-vq0mo1011a Před 5 lety

    could u send the example code to github?

    • @zhaowentao6036
      @zhaowentao6036 Před 5 lety

      GitHub有啊,一般他都会将代码推到GitHub的

    • @user-vq0mo1011a
      @user-vq0mo1011a Před 5 lety

      @@zhaowentao6036 呵呵,地址?

    • @JoshLong
      @JoshLong Před 5 lety +4

      @@user-vq0mo1011a github.com/spring-tips/kafka-and-spring-batch it's there, along with all the other Spring Tips code. Thanks for watching

    • @PrashanthG
      @PrashanthG Před 5 lety +4

      @@JoshLong To create main() use shortcut type `psvm` in IntelliJ.

  • @Boyarsskiy
    @Boyarsskiy Před 5 lety

    I don't understand people who use dark theme in translations

  • @kretynek1
    @kretynek1 Před 5 lety

    Why do you annotate every method with bean....? It is kinda non-sense.

    • @ITech2005
      @ITech2005 Před 4 lety +7

      kretynek1 If you're asking this question then honestly this talk isn't for you...

    • @blasttrash
      @blasttrash Před 2 lety

      @@ITech2005 do you know why though? if that returned data type is only needed in the called method, why add @Bean everywhere? just curious

    • @ITech2005
      @ITech2005 Před 2 lety +1

      @@blasttrash I dont know what part of the vid youre referring to, but keep in mind that some beans are needed by the Spring Framework integration. So spring may use them to instantiate the Kafka client, but you wouldnt need to directly use those beans in your code. Spring MVC and Security are the same way in that some beans need to ve created to configure the framework but you never directly use them.

    • @ITech2005
      @ITech2005 Před 2 lety

      @@blasttrash And just to back up a bit, if the method is annotated with @Bean then it provides a class that will be injected elsewhere. You wont see where its being used by looking at the method alone. IDEs like Intellij can help you find where classes are injected or used.

    • @blasttrash
      @blasttrash Před 2 lety +1

      @@ITech2005 oh that makes sense. Thanks a lot for your reply even after 2 years.