Process Flow - Cloud Functions with Pub/Sub triggers
Pub/Sub Topic receives message
Trigger Cloud Function
Cloud Function executes code
Process message data
Function completes and acknowledges message
When a message is published to a Pub/Sub topic, it triggers the Cloud Function to run and process that message.