Automate Task Scheduling | Spring Boot Tasks on Kubernetes with Cron Jobs |

Поделиться
HTML-код
  • Опубликовано: 13 фев 2024
  • #JavaTechie #K8s #SpringBoot #CronJob
    👉 In this Video, You will learn to automate repetitive tasks in your Spring Boot project using Kubernetes Cron Jobs. Whether it's data processing or report generation, Kubernetes Cron Jobs offer a reliable solution for seamless automation. By the end, you'll confidently set up and manage Cron Jobs in Kubernetes for effortless scheduling of your Spring Boot tasks.
    Kubernetes Playlist :
    • Kubernetes
    AWS (Amazon Web Services) Playlist :
    • AWS (Amazon Web Services)
    🧨 Hurry-up & Register today itself!🧨
    Devops for Developers course (Live class ) 🔥🔥:
    javatechie.ongraphy.com/cours...
    COUPON CODE : NEW24
    Spring boot microservice Premium course lunched with 70% off 🚀 🚀
    COURSE LINK : Spring boot microservice course link :
    javatechie.ongraphy.com/cours...
    PROMO CODE : JAVATECHIE50
    GitHub:
    github.com/Java-Techie-jt/k8s...
    Blogs:
    / javatechie4u
    Facebook:
    / javatechie
    Join this channel to get access to perks:
    ruclips.net/user/javatechiejoin
    🔔 Guys, if you like this video, please do subscribe now and press the bell icon to not miss any update from Java Techie.
    Disclaimer/Policy:
    📄 Note: All uploaded content in this channel is mine and it's not copied from any community, you are free to use source code from the above-mentioned GitHub account.
  • НаукаНаука

Комментарии • 46

  • @gopisambasivarao5282
    @gopisambasivarao5282 3 месяца назад +3

    Basant, Appreciate your efforts. I studied your videos and learned new areas and cracked interviews. Every week waiting your videos. God Bless you. 🙂

  • @mdk1983
    @mdk1983 3 месяца назад +1

    This is a masterclass on the topic. Very well explained and demonstrated

  • @alanmangroo3656
    @alanmangroo3656 3 месяца назад +1

    Great video. Thanks for sharing.

  • @vishnuvardhank3215
    @vishnuvardhank3215 3 месяца назад +2

    Great Video and Well Explained. Thank you..

  • @sidheartgadekar
    @sidheartgadekar 3 месяца назад +1

    Awesome

  • @TheEntium
    @TheEntium 3 месяца назад +3

    That's the great example and we can scale this very efficiently.. recently i was working on some schedulers that picks schedule payments and execute on a certain time frame .. I have used cron jobs but in my case cron job pushes msg to kafka topic everyday at specific time and my schedulers services are running and listerning the same topic and process those txns because the no is huge I need to go with this approch.. any way great video .. looking forward for more high level industry based topic and solution.. you are amazing brother..with unique content.. keep growing

    • @Javatechie
      @Javatechie  3 месяца назад +1

      Thank you for appreciating my work. Keep learning buddy 😉

  • @prasannajitsamal3544
    @prasannajitsamal3544 3 месяца назад +3

    Hi Basant,a small request from my side that can you build a Banking web app by using Java, spring boot and Oracle as a Db. So that we can understand the flow of a Banking app.

  • @Deepakblg97
    @Deepakblg97 3 месяца назад +1

    Awesome tutorials sir ❤

  • @sivadara5677
    @sivadara5677 3 месяца назад +1

    Thank you so much Sir 💌

  • @sproutboot
    @sproutboot 3 месяца назад

    Basant ~ ! Amazing

  • @empvaibhav9799
    @empvaibhav9799 3 месяца назад +2

    Wonderful video and crisp explanation,
    One suggestion
    Update your ide use latest version of intelij, also please use dark mode.

    • @Javatechie
      @Javatechie  3 месяца назад +1

      Thanks for your suggestion, i could update the ide but the latest intellij version doesn't support spring initializer

  • @muneeswaransk
    @muneeswaransk 3 месяца назад +2

    Thank you Basant for your wonderful teaching! I have a question on this cron job pods. Since the pod is created for every 2 minutes, is the application running on the older pods? Are they not stopped? I could see all the 3 pods are running at the end of the video.

    • @Javatechie
      @Javatechie  3 месяца назад +1

      Yes it will be there and will be automatically cleaned up . But it will run once in a single pod . Check the log of each pod you will understand

    • @muneeswaransk
      @muneeswaransk 3 месяца назад +1

      @@Javatechie Thank you!

  • @samgeek4857
    @samgeek4857 3 месяца назад +2

    Great tutorial Basant.

  • @A.A.
    @A.A. 2 месяца назад +1

    Thanks a lot, Do you have a video for setting up k8s dashboard?

    • @Javatechie
      @Javatechie  2 месяца назад

      No explicitly I haven't done this

  • @NikhilJain08
    @NikhilJain08 3 месяца назад

    Sir i want to create reporting system where I want report should be generated in background and upload it to some storage and save the url. Since, reporting app will run on k8s, i want only one pod should create the report and I want to use mongodb change stream to start report generation like if I add report generation request to the mongo db

  • @BhanujaSilva
    @BhanujaSilva 3 месяца назад

    Thanks for the explanation on the good topic. However, how can Kubernetes be instructed to wait until the previous job is complete before starting another job?

  • @Iliaspap80
    @Iliaspap80 3 месяца назад

    Hello! Can the k8s cron job just call an endpoint to trigger the job instead of running the entire app? I mean, an endpoint from an always running μS.
    Nevertheless, this video is very useful. Good job as always!

  • @lovefunny7180
    @lovefunny7180 3 месяца назад +1

    thanks for great video, is that each cron job need to build as a seperate service and deploy seperate too?

    • @Javatechie
      @Javatechie  3 месяца назад

      No not required. You can create single service and deployment if it's part of your project

    • @lovefunny7180
      @lovefunny7180 3 месяца назад +1

      does that mean we can configure multiple jobs in k8s file?@@Javatechie

    • @Javatechie
      @Javatechie  3 месяца назад

      Yes you can

  • @liqwis9598
    @liqwis9598 3 месяца назад +2

    Hello Besant
    If possible can you please create kubernetes tutorial with spring boot basic and intermediate concepts here and advance in your seperate kubernetes course

    • @Javatechie
      @Javatechie  3 месяца назад +1

      Have you gone through k8s playlist

    • @liqwis9598
      @liqwis9598 3 месяца назад

      Yes Besant, but now in 2024 Java Spring boot has also changed and kubernetes might have been changed so I thought some new concepts might be introduced so I asked you 🙂

    • @Javatechie
      @Javatechie  3 месяца назад +1

      Nothing changed buddy ☺️

    • @liqwis9598
      @liqwis9598 3 месяца назад +1

      @@Javatechie Awesome, thank as always Besant. 👍

    • @girishanker3796
      @girishanker3796 Месяц назад +2

      After going through his K8s tutorial you can go through 'Complete K8s tutorial' by 'TechWorld with Nana' . She has covered many topics in depth.

  • @adarshsrivastava4805
    @adarshsrivastava4805 Месяц назад +1

    Confused, how the cronjob starting the pod every 2 minutes

    • @Javatechie
      @Javatechie  Месяц назад

      That is what cron expression we have defined in yaml configuration

  • @pushpaksrivastava6576
    @pushpaksrivastava6576 3 месяца назад

    What is the benefit of scheduling cron job in k8s instead of doing it using @scheduler

    • @Javatechie
      @Javatechie  3 месяца назад

      That’s what I mentioned in beginning buddy. Let’s assume you have written it in using spring scheduler and then you deploy your application in k8s . If you have 5 pods running then in each pod your scheduler will run isn’t it ? What if you have multiple scheduled task how would you handle it

  • @ravikiranpatel8
    @ravikiranpatel8 3 месяца назад +1

    Still can we register for course ? Which starts from this weekend

    • @Javatechie
      @Javatechie  3 месяца назад

      Yes you can register. Registration open till 26th February

    • @ravikiranpatel8
      @ravikiranpatel8 3 месяца назад

      @@Javatechie ok
      Course starts from??

    • @Javatechie
      @Javatechie  3 месяца назад

      @@ravikiranpatel8 18th Feb 3 pm

    • @user-ck6gz9xo9p
      @user-ck6gz9xo9p 3 месяца назад

      @@Javatechie Promo codes are not working?

    • @ravikiranpatel8
      @ravikiranpatel8 3 месяца назад

      @@Javatechie I just enrolled to the course
      How do I proceed further?
      Will you add me to any group? Or I need to join some group?