Cloud Tasks
Cloud Tasks is a fully managed service from Google Cloud that allows you to separate out pieces of work that could be performed independently and asynchronously outside of a user or a service-to-service request. An independent piece of work is referred to as a task. Cloud Tasks is essentially used when an application accepts inputs from users and needs to initiate background tasks accordingly to perform automated asynchronous execution.
The following is a summary of the critical features of Cloud Tasks:
- Cloud Tasks is aimed at explicit invocation, where the publisher retains full control of execution.
- Cloud Tasks is most appropriate where the task producer can have control over the execution.
The core difference between Cloud Tasks and Pub/Sub is the notion of explicit versus implicit invocation. As mentioned, Cloud Tasks is aimed at explicit invocation. In contrast, Pub/Sub supports implicit invocation, where a publisher implicitly causes the subscriber...