Understanding event driven architecture

Google Cloud Tech · Intermediate ·🏗️ Systems Design & Architecture ·2y ago

Key Takeaways

The video explores event-driven architecture (EDA) and its implementation using Google Cloud's tools, including Cloud Pub/Sub, Cloud Functions, Cloud Run, Data Proc, Data Flow, and Event Arc.

Full Transcript

there is an increasing need to make processed consumable data available in real time and one way to make that happen is by using event-driven architecture the topic of this episode of cloud data engineering Academy time waits for no one let's get started Building Solutions in the world of Big Data you often face common challenges firstly you often need to connect different tools and processes together to accomplish your task in addition the world is moving faster and faster and reaction time windows are getting shorter as companies strive to get faster the data processing must keep up or risk being outdated and stale using an invent driven architecture allows you to tend to these challenges however there are many considerations necessary for Building A system that works with adventur and architecture the processing mindset is different and it may introduce additional components previously not used or replace existing components so let's take a closer look event-driven architecture can be described as a system or a pattern that reacts to a state the state can come in the form of a notification or a data payload you can also denote these states as messages in this event-driven architecture you have a producer whose responsibility is to generate the messages you also have a broker whose role is to ingest the messages lastly you have a third role a consumer the role of the consumer is to receive the message and react upon it these roles are not mutually exclusive for example something that consumes a message may also produce a new message to be forwarded onwards this architecture allows you to seamlessly connect different processes and functions asynchronously each process and function can contribute in their best way to the end goal without needing to share anything such as Hardware or States since they are disjointed processes they can scale independently and also fit a variety of use cases event-driven architecture looks very similar to the architecture of a real-time data processing pipeline by extending the architecture you can also enable a real time or near real time approach to data processing let's take a look at how we can build an vent driven architecture on Google Cloud any service that can deliver a message to an endpoint can be a producer these could be your servers your users Etc you then have a broker that ingests these messages here we have Google cloud pubsub a fully managed scalable messaging service your producers write messages to a pubsub topic and pubsub will deliver the messages to one or more subscriptions your consumers will then pull from the subscriptions to receive the messages you have many choices for consumers on Google Cloud if you're looking for a simple function you can use cloud functions to ingest those messages or you can use cloud run which can deploy a containerized app for large scale data processing Frameworks you have data proc and data flow to run your spark Hadoop Flink or beam jobs there is also event Arc which can help you deliver new States based on event triggers such as job completion these triggers will create a state that will be delivered to a service of your choosing there are a lot of different services that can be integrated with event Arc you may use any combination of products to achieve your goal pubs up with data flow to process a streaming realtime data pipeline or event Arc with Cloud run when there's a particular log published from a service logged to Cloud audit logs these Google cloud services will help you build an event driven architecture that will allow you to connect tools of different nature act upon your events or data in real time and Bridge asynchronous events easily that's it for now thanks for watching click the links below to learn more about event driven architectures on Google Cloud see you next time

Original Description

Dive into the world of event-driven architectures (EDAs) and discover how they can revolutionize your software applications. In this video, explore the key concepts of EDAs, their benefits, and how to effectively implement them using Google Cloud's powerful suite of tools. Learn more about the services mentioned in the video: Dataflow → https://goo.gle/3IPkUxO Pub/Sub → https://goo.gle/3IPmfEE Eventarc → https://goo.gle/3IQJ76G Cloud Run → https://cloud.google.com/run Cloud Functions → https://goo.gle/4aqqVN3 Dataproc → https://goo.gle/3TLIl1g Learn more about event driven architectures on Google Cloud → https://goo.gle/3TPboRE Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech #GoogleCloud
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google Cloud Tech · Google Cloud Tech · 0 of 60

← Previous Next →
1 I’m going for it #GoogleCloudCertified
I’m going for it #GoogleCloudCertified
Google Cloud Tech
2 I had to get #GoogleCloudCertified
I had to get #GoogleCloudCertified
Google Cloud Tech
3 Be better overall at what you do #GoogleCloudCertified
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
4 Cloud Monitoring on our radar #Analysis #Uptime
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
5 Introduction to Generative AI Studio
Introduction to Generative AI Studio
Google Cloud Tech
6 How to use Github Actions with Google's Workload Identity Federation
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
7 Introduction to Responsible AI
Introduction to Responsible AI
Google Cloud Tech
8 Networking updates and CDMC-certified architecture
Networking updates and CDMC-certified architecture
Google Cloud Tech
9 Create and use a Cloud Storage bucket
Create and use a Cloud Storage bucket
Google Cloud Tech
10 How to digitize text from documents
How to digitize text from documents
Google Cloud Tech
11 Faster analytical queries with AlloyDB
Faster analytical queries with AlloyDB
Google Cloud Tech
12 Next ‘23 sessions and FaaS Wave
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
13 Introduction to Assured Open Source Software
Introduction to Assured Open Source Software
Google Cloud Tech
14 BigQuery Cost Optimization: Storage
BigQuery Cost Optimization: Storage
Google Cloud Tech
15 BigQuery Cost Optimization: Compute
BigQuery Cost Optimization: Compute
Google Cloud Tech
16 BigQuery Cost Optimization: Select Queries
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
17 Remote Field Equipment Management with Manufacturing Data Engine
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
18 Supercharging your applications with Cloud SQL Enterprise Plus
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
19 Vector Support on our radar #GenAI
Vector Support on our radar #GenAI
Google Cloud Tech
20 Architecting a blockchain startup with Google Cloud
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
21 Kubernetes and multitasking updates!
Kubernetes and multitasking updates!
Google Cloud Tech
22 GKE: Using Kubernetes Events
GKE: Using Kubernetes Events
Google Cloud Tech
23 How to configure firewall rules for Cloud Composer
How to configure firewall rules for Cloud Composer
Google Cloud Tech
24 Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
25 Geospatial analytics on our radar #EarthEngine #BigQuery
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
26 Ensuring requests are set in Kubernetes
Ensuring requests are set in Kubernetes
Google Cloud Tech
27 Cloud Next 2023, Google research program, and more!
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
28 How to migrate projects between organizations with Resource Manager
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
29 How to run #MySQL in Google Cloud
How to run #MySQL in Google Cloud
Google Cloud Tech
30 #GenerativeAI for enterprises and #Next2023
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
31 How Google Photos scales to store 4 trillion photos and videos
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
32 Google Cross-Cloud Interconnect (Demo 2)
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
33 GKE Cost Optimization Golden Signals: Introduction
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
34 GKE Cost Optimization Golden Signals: Workload Rightsizing
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
35 GKE Load Balancing: Overview
GKE Load Balancing: Overview
Google Cloud Tech
36 GKE Load Balancing: Best Practices
GKE Load Balancing: Best Practices
Google Cloud Tech
37 Disaster Recovery in GKE
Disaster Recovery in GKE
Google Cloud Tech
38 How to configure IP masquerade agent in GKE Standard clusters
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
39 Enable and use GKE Control plane logs
Enable and use GKE Control plane logs
Google Cloud Tech
40 Compliance in Australia with Assured Workloads
Compliance in Australia with Assured Workloads
Google Cloud Tech
41 Creating budgets and budget alerts in Google Cloud #FinOps
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
42 Cloud SQL Enterprise Plus on our radar #mySQL
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
43 What's Next for Google Cloud?
What's Next for Google Cloud?
Google Cloud Tech
44 How Loveholidays scaled with Contact Center AI
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
45 What is fleet team management in GKE?
What is fleet team management in GKE?
Google Cloud Tech
46 Troubleshoot VPC Network Peering
Troubleshoot VPC Network Peering
Google Cloud Tech
47 Introduction to DocAI and Contact Center AI
Introduction to DocAI and Contact Center AI
Google Cloud Tech
48 Cloud Run Direct VPC egress explained
Cloud Run Direct VPC egress explained
Google Cloud Tech
49 Database deployment options in GKE
Database deployment options in GKE
Google Cloud Tech
50 Analyze cloud billing data with #BigQuery
Analyze cloud billing data with #BigQuery
Google Cloud Tech
51 Tips to becoming a world-class Prompt Engineer
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
52 Serverless is simple. Do I need CI/CD?
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
53 Accelerating model deployment with MLOps
Accelerating model deployment with MLOps
Google Cloud Tech
54 How Hawaii's Department of Human Services scaled with CCAI
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
55 Pricing API on our #Radar
Pricing API on our #Radar
Google Cloud Tech
56 How Recommendations AI for Media can boost customer retention
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
57 Troubleshooting: Node Not Ready Status
Troubleshooting: Node Not Ready Status
Google Cloud Tech
58 One weekend until Cloud Next 2023!
One weekend until Cloud Next 2023!
Google Cloud Tech
59 #GoogleCloudNext starts tomorrow!
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
60 #GoogleCloudNext will be demand!
#GoogleCloudNext will be demand!
Google Cloud Tech

This video teaches the fundamentals of event-driven architecture and how to implement it using Google Cloud's tools, enabling real-time data processing and asynchronous event handling.

Key Takeaways
  1. Identify the producer, broker, and consumer roles in an event-driven architecture
  2. Choose a messaging service, such as Cloud Pub/Sub
  3. Select a consumer service, such as Cloud Functions or Cloud Run
  4. Integrate with other Google Cloud services, such as Data Proc and Data Flow
  5. Use Event Arc to deliver new states based on event triggers
💡 Event-driven architecture allows for seamless connection of different processes and functions asynchronously, enabling real-time data processing and scalability.

Related AI Lessons

Up next
Retracing It All With My Son
Ginny Clarke
Watch →