Skip to main content
S3NS
Documentation Technology areas
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
/
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Português
  • Português – Brasil
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
  • Pub/Sub
Overview Guides Reference Resources
S3NS
  • Documentation
    • Overview
    • Guides
    • Reference
    • Resources
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Discover
  • Product overview
  • Cloud de Confiance differences
  • Pub/Sub architectural overview
  • Pub/Sub reliability
  • Get started
  • Pub/Sub service overview
  • Publish and subscribe with client libraries
  • Publish and subscribe with the gcloud CLI
  • Publish and subscribe with the console
  • Secure and control access
  • Authenticate to Pub/Sub
  • Access control for Pub/Sub
  • Configure message encryption
  • Publish messages
  • Publish message overview
  • Create a topic
    • Standard topic
    • Amazon Kinesis Data Streams import topic
    • Cloud Storage import topic
    • Azure Event Hubs import topic
    • Amazon Managed Streaming for Apache Kafka (MSK) import topic
    • Confluent Cloud import topic
  • Manage topics
    • Change topic type
    • Delete topics
    • List topics
  • Publish messages
  • Configure publishing options
    • Compress messages
    • Retry requests
    • Flow control
    • Concurrency control
    • Batch messaging
  • Use SMTs
    • SMTs overview
    • UDFs overview
    • Choose topic or subscription SMTs
    • Create a topic SMT
    • Update a topic SMT
    • Delete a topic SMT
  • Best practices for publishing
  • Receive messages
  • Subscription overview
  • Choose a subscription type
  • How subscriptions work
    • Pull subscriptions
    • Push subscriptions
  • Create a subscription
    • Pull subscription
    • Push subscription
  • Manage subscriptions
    • Change subscription type
    • List subscriptions
    • Detach a subscription from a topic
    • Delete subscriptions
    • Receive messages from pull subscriptions
  • Use SMTs
    • SMTs overview
    • UDFs overview
    • Choose topic or subscription SMTs
    • Create a subscription SMT
    • Update a subscription SMT
    • Delete a subscription SMT
  • Configure delivery options
    • Flow control
    • Handle message failures
      • Dead letter topics
      • Subscription retry policy
    • Lease management
    • Concurrency control
    • Authentication for push subscriptions
    • Payload unwrapping
  • Best practices for subscribing
  • Monitor and audit
  • Monitor Pub/Sub in Cloud Monitoring
  • Monitor topics within Pub/Sub
  • Monitor subscriptions within Pub/Sub
  • View Pub/Sub audit logs
  • View Pub/Sub reports with labels
  • Use OpenTelemetry tracing
  • Best practices for metrics in scaling
  • Build Pub/Sub systems
  • Build a one-to-many Pub/Sub system
  • Test and integrate
  • Test locally with Pub/Sub emulator
  • Connect Pub/Sub to Apache Kafka
  • Pub/Sub in Spring applications
  • Stream Pub/Sub messages over WebSockets
  • Troubleshoot
  • General troubleshooting
  • Troubleshooting with audit logs
  • Troubleshoot topics
    • Troubleshoot standard topics
    • Troubleshoot import topics
      • Use platform logs to troubleshoot import topics
      • Troubleshoot Amazon Kinesis Data Streams import topics
      • Troubleshoot Cloud Storage import topics
      • Troubleshoot Azure Events Hub import topics
      • Troubleshoot Amazon MSK import topics
      • Troubleshoot Confluent Cloud import topics
  • Troubleshoot subscriptions
    • Troubleshoot pull subscriptions
    • Troubleshoot push subscriptions
    • Troubleshoot push payload unwrapping
    • Troubleshoot subscriptions with SMTs
  • Troubleshoot with GCPDiag
    • Troubleshoot pull subscriptions with GCPDiag
  • Code samples
  • Pub/Sub code samples
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
Some or all of the information on this page might not apply to Cloud de Confiance by S3NS. See Differences from Google Cloud for more details.
  • Home
  • Documentation
  • Data analytics
  • Pub/Sub
  • Guides

Configure a Cloud Run functions trigger with Pub/Sub

You can configure a Cloud Run functions trigger to call a function in response to Pub/Sub messages.

To learn how to combine these services, see the Pub/Sub triggers.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-15 UTC.

  • Terms
  • Privacy
  • Manage cookies
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Português
  • Português – Brasil
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어