Cloud Tasks for asynchronous task execution
Our solutions or services will often need to deal with repetitive tasks, and it’s in this kind of scenario that we can make the most out of our cloud provider. Processing millions of images or videos or making thousands of API calls to download reports can take a long time if we don’t create a fast and robust architecture.
Having multiple workers for different tasks, implementing parallel processing, or being able to retry failed operations with an exponential backoff can complicate our code quite a lot and make it difficult to maintain.
Google Cloud offers different solutions for these kinds of challenges. We already covered some of them earlier in this book, such as Cloud Functions, App Engine, and Cloud Run, but this time, I want to include Cloud Tasks because, in my opinion, it’s a very good example of a managed service that can save us a lot of time when we are creating a new application or migrating a legacy...