Spring Tips: Spring Batch and Apache Kafka

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2024

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

  • @JavierGomez-xl9us
    @JavierGomez-xl9us 5 ปีที่แล้ว +1

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

  • @sanjeevabhi
    @sanjeevabhi 5 ปีที่แล้ว

    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 5 ปีที่แล้ว +8

    Nyan cat loading bar ✔

  • @KhaledAyoubi
    @KhaledAyoubi 4 ปีที่แล้ว +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 3 ปีที่แล้ว

      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 2 ปีที่แล้ว

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

  • @rohaeliaful
    @rohaeliaful 4 ปีที่แล้ว

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

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

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

  • @user-vq0mo1011a
    @user-vq0mo1011a 5 ปีที่แล้ว

    could u send the example code to github?

    • @zhaowentao6036
      @zhaowentao6036 5 ปีที่แล้ว

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

    • @user-vq0mo1011a
      @user-vq0mo1011a 5 ปีที่แล้ว

      @@zhaowentao6036 呵呵,地址?

    • @JoshLong
      @JoshLong 5 ปีที่แล้ว +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 5 ปีที่แล้ว +4

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

  • @Boyarsskiy
    @Boyarsskiy 5 ปีที่แล้ว

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

  • @kretynek1
    @kretynek1 5 ปีที่แล้ว

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

    • @ITech2005
      @ITech2005 4 ปีที่แล้ว +7

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

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

      @@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 2 ปีที่แล้ว +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 2 ปีที่แล้ว

      @@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 2 ปีที่แล้ว +1

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