-1

In my web application, I have certain tasks like uploading files that consume a lot of time, So is it a better idea to run it as a Kubernetes job?

I didn't find any suitable use-cases to execute a task like that

I have my server running in Kubernetes pod, for some time-consuming task, I just want to execute it on the separate job to balance the load and run it asynchronously

UDIT JOSHI
  • 1,298
  • 12
  • 26

1 Answers1

1

No, this would require some kind of background task execution library for your web framework or whatever. Jobs are maybe a building block for that, but definitely not the whole thing. Look at tools like Gearman, Celery, Resque, etc.

coderanger
  • 52,400
  • 4
  • 52
  • 75
  • I saw that example of the Message Queue system with Celery kubernetes.io/docs/tasks/job/… . Can you please elaborate on how it's helpful in my case of web framework – UDIT JOSHI Feb 13 '20 at 12:58