Eventarc: Trigger Cloud Run services with events from Google Cloud
Eventarc is a eventing product that allows you to trigger Cloud Run services from Google Cloud sources. In this talk, we'll get a tour of Eventarc features and see some event-driven Cloud Run demos powered by Eventarc.
bucket → Cloud Run uses Vision API to analyze the image A BigQuery job is completed → Cloud Run sends an email notification using SendGrid A Compute Engine VM is created → Cloud Run adds a label the VM Some use cases
potentially allows more integration Eventarc’s trigger is a higher level abstraction Users can manage all their triggers in one place in Eventarc Eventarc vs. Pub/Sub
your language cloudevents.io Google Events Library Type library for CloudEvent#data Event parsing libraries HTTP POST to Run URL HTTP body is a CloudEvent with event data. ("binary" CloudEvent V1) (optional) (optional) github.com/googleapis/google-cloudevents
context) { // Read CloudEvent using CloudEvents SDK var cloudEvent = await context.Request.ReadCloudEventAsync(); // Read Pub/Sub message using Google.Events library for .NET var messagePublishedData = CloudEventConverters.ConvertCloudEventData<MessagePublishedData>(cloudEvent); // Extract the Pub/Sub message var pubSubMessage = messagePublishedData.Message;