June 2018
Intermediate to advanced
372 pages
8h 44m
English
The most common way to trigger a Cloud Function is with an HTTP request, as seen previously. In contrast, background functions are used to invoke Cloud Functions indirectly through a message, a Pub/Sub topic, or an object change notification from a Google Cloud Storage bucket. Such cloud functions take in an event as a parameter and, optionally, a callback as another. The event parameter has various properties that we can make use of within our function:

Now, we will invoke cloud functions via pub/sub notifications (event or object change)
Read now
Unlock full access