Google Cloud · Serverless

Eventarc

Route events from Google Cloud services, Pub/Sub and partners to Cloud Run, functions, GKE and workflows in the CloudEvents format.

On the Google Cloud Associate Cloud Engineer exam listEvent routingPublish and subscribe

What it is and what problem it solves

Eventarc delivers events to targets such as Cloud Run services, Cloud Run functions, GKE services and Workflows. Triggers filter events by type and attributes: a Cloud Storage object finalised in a bucket, a Pub/Sub message, or any API call recorded in Cloud Audit Logs (for example a BigQuery job completing). Events follow the CloudEvents format, and delivery uses Pub/Sub underneath with retries.

When to use it

  • Reacting to changes in Google Cloud resources without polling.
  • Building event-driven pipelines with consistent event formats.
  • Triggering processing from audit-logged actions across many services.

When to avoid it

  • Point-to-point task queues with rate limits: Cloud Tasks.
  • High-throughput application messaging between your own services: Pub/Sub directly.

Cost model

What you pay for

  • Events delivered (Google sources are largely free; Pub/Sub usage underneath may bill).
  • The targets that process events.

Where it is cost-efficient

Event-driven processing that replaces polling loops.

Where costs grow

Broad audit-log triggers that fire on far more events than needed.

Cost controls and common surprises

Filter triggers precisely; make targets idempotent.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Triggers use a service account to invoke targets; IAM controls who can create triggers.

What you configure

Give the trigger's service account only invoker rights on its target; authenticate targets.

Exam cues and common confusions

  • Run a service when an object is created in Cloud Storage: an Eventarc trigger to Cloud Run (or a function).
  • React to an API call across services: an Eventarc trigger on Cloud Audit Logs events.

Related

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake