Can Kubernetes Jobs helpful in executing time consuming micro-services in background?

2/13/2020

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
kubernetes
kubernetes-jobs

1 Answer

2/13/2020

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
Source: StackOverflow