55
Kubernetes: Running Background Tasks With Batch-Jobs

Kubernetes: Running Background Tasks With Batch-Jobs

5 years ago
Anonymous $oIHRkISgaL

https://medium.com/google-cloud/kubernetes-running-background-tasks-with-batch-jobs-56482fbc853

When building amazing applications, there are times that you might want to handle an action outside of a user’s request/response lifecycle. If you are wanting to respond to time-based events then you are wanting to look at cron jobs. If you are wanting to just kick-off a process outside of the user’s request/response lifecycle but not based on time, then you are looking at batch-jobs. Batch jobs can be kicked off by any number of triggers and can run complex tasks without effecting your users response times.

In this article we are going to look at how to run a batch-job in a few different ways: one-time, sequential, and parallel.