
A Cloud Run function that only reshapes Pub/Sub messages and writes them to BigQuery can go: a JavaScript UDF on a BigQuery subscription does both. Where the transform belongs, when the function stays, and why small messages save the most.
Browse articles on Event-driven.

A Cloud Run function that only reshapes Pub/Sub messages and writes them to BigQuery can go: a JavaScript UDF on a BigQuery subscription does both. Where the transform belongs, when the function stays, and why small messages save the most.

Cloud Tasks when the sender must name the handler and set its pace, deadline and time; Pub/Sub when it should not know who listens. Where Cloud Scheduler fits, and the quiet failure each choice hides.

Write the saga as one Workflows definition: push each undo onto a list before its call, run the list newest first in one except block, and keep Failed for an undo that gave up. Starting each saga once, choreography over Pub/Sub, and when to merge services instead.

Standard gives each consumer its own trigger on Pub/Sub; Advanced gives many teams one bus to enrol on. Advanced is not Standard with extras: no dead-letter queue, no audit-log events and a bus that takes about 100 small events a second. And sometimes a Pub/Sub filter is enough.

A Cloud Run consumer behind a Pub/Sub push subscription sees duplicates with new message IDs. Keep the publisher's key in the same transaction as the change, dead-letter before a week of retries, and snapshot before each deploy so seek can replay.

Ordering keys pin publishers to one region, exactly-once pins subscribers and rules out push, and neither stops a publisher retry arriving twice. Put a version in every message first, then switch each on only where a consumer needs it.