SlideShare a Scribd company logo
Serverless with
Google Cloud
Bret McGowen
Developer Advocate, Google
@bretmcg
@bretmcgSource: Google Trends
Buzzword status alert
Buzzword status alert
Agenda
● What is serverless?
● Serverless on Google Cloud
● Compare *aaSes
○ PaaS - App Engine
○ FaaS - Google Cloud Functions
○ BaaS - Firebase
○ Managed services
● What to use?
What is serverless?
@bretmcg
Google's new serverless data center
not
^
@bretmcg
@bretmcg
Content analyzer
Content Image
Services
API
Compute Engine
Virtual Machines
Text analysis
@bretmcg
Content analyzer
Image analysis
API
Compute Engine
Virtual Machines
Text analysis
Image analysis
API
Compute Engine
Virtual Machines
Text analysis
Image analysis
API
Compute Engine
Virtual Machines
Text analysis
Content
Cloud Load
Balancing
@bretmcg
Content analyzer
Content
Image analysis
API
Compute Engine
Virtual Machines
Text analysis
Image analysis
API
Compute Engine
Virtual Machines
Text analysis
Image analysis
API
Compute Engine
Virtual Machines
Text analysis
Cloud Load
Balancing
Cloud
Pub/Sub
API
Compute Engine
Virtual Machines
@bretmcg
Content analyzer
code();
App Engine - PaaS
Easy to manage
Fully managed
No patches/updates
24x7 Google SREs
Autoscaling
Easy to develop
Build and test locally
Focus on app code
Versioning
Traffic splitting
Choice of runtimes
Java
Python
Go
PHP
Custom (Node.js, Ruby)
On the road to serverless
Stop for snacks at the
PaaS station
@bretmcg
Serverless characteristics
● No need to even think about servers
● No upfront provisioning; scales as needed
● Pay per use
● Stateless / ephemeral
@bretmcg
Serverless characteristics
● No need to even think about servers
● No upfront provisioning; scales as needed
● Pay per use
● Stateless / ephemeral
@bretmcg
20132008 2010
BigQuery
App Engine Cloud Storage
Cloud Datastore
Cloud Machine
Learning Engine
2014
Cloud Functions
2015 2016 2017
Firebase
...
Serverless building blocks on Google Cloud
Platform
Cloud Dataflow Cloud Pub/Sub
Functions as a Service (FaaS)
@bretmcg
Not-Yet-a-Service-as-a-Service
#NYaSaaS
@bretmcg
A serverless environment to build and
connect cloud services with code
Cloud Functions
@bretmcg
Google Cloud Functions
Automatic scalingNo server
management
Only pay for what you use
$
Types of Cloud Functions
Cloud Storage
Cloud Pub/Sub
HTTPS
@bretmcg
API endpoints
Cloud Functions use cases
Lightweight ETL
Webhooks
IoT
React to cloud
infra changes
Hello, HTTP!
Write a serverless backend with
just a few lines of code:
●
●
●
●
// This should look familiar...
exports.hello = functions((req, res) => {
res.status(200).send(‘Howdy Serverless fans!’);
});
Howdy, Serverless fans!
Deploy from
Cloud Console UI
$ gcloud functions deploy myFunc 
--stage-bucket functions-src 
--trigger-http
Command line
Local emulator
@bretmcg
Logging
● ⇒
● ⇒
●
○
○
○
Monitoring
●
○
○
○
@bretmcg
Cloud event triggers
Cloud Storage
@bretmcg
Cloud Storage Cloud Functions
Cloud event triggers
@bretmcg
Cloud Storage Cloud Functions Cloud Vision API
Cloud event triggers
@bretmcg
Cloud Storage Cloud Functions Cloud Vision API
Cloud event triggers
@bretmcg
Cloud event triggers
Cloud Functions Cloud Vision API
Cloud Functions
Cloud Storage
Cloud Storage
*aaS decisions
App Engine (Paas)
Scales at app
Per minute billing
Cloud Endpoints integration
Multiple code languages
Traffic splitting/versioning
Cloud Functions (Faas)
Scales at function
Usage-based billing
Event-triggered
Node.js
APIs
Should I go serverless with Cloud Functions?
Existing monolithic applications
Long-running compute tasks
Guaranteed response times (synchronous)
Stateless / ephemeral
Backend as a Service (BaaS)
Serverless with Google Cloud
● Cloud-hosted NoSQL database
● Synchronization & conflict resolution
in real-time
● Access directly from your app
Serverless with Google Cloud
Serverless with Google Cloud
Serverless with Google Cloud
Function better with Firebase
Cloud Storage (incl. Firebase)
Cloud Pub/Sub
HTTPS
Firebase Realtime Database
Firebase Authentication
Firebase Analytics
Firebase Hosting
new!
Database decisions
Firebase database
NoSQL
Mobile app
Web app
Real-time data sync
Cloud Datastore
NoSQL
Backend services
Massive scalability
Querying
PaaS vs Faas?
Firebase vs
Cloud Datastore?
Serverless?
Managed services
@bretmcg
BigQuery
Managed big data analytics warehouse
● Fast: terabytes in seconds
● Simple: SQL
● Interoperable: Java, Python, Tableau, R…
● Instant data sharing
● Free monthly quota - 1 TB
@bretmcg
Cloud Pub/Sub
Designed for
fast data
Provides reliable, real-time,
many-to-many,
asynchronous messaging
between applications
Send data into processing
pipelines and out to other
apps, devices and Google
Cloud Services
Global by design and highly
available. ‘fire-and-forget’
with minimal latency
Redundant forwarding paths
Designed for
Google scale
Reliable and
Real-time messaging
@bretmcg
Cloud Machine Learning Engine
Managed scalable machine learning
● TensorFlow
● Handles provisioning, scaling, and monitoring
● Integrated: dataflow, storage, datalab
● Automatically tune models with HyperTune
Serverless with Google
USE CASE SERVERLESS WITH GOOGLE
Mobile apps Firebase
Web clients Firebase
Web backend App Engine Standard -> Datastore
Microservices Cloud Functions -> Datastore
Bots Cloud Functions
IoT device messages Cloud Pub/Sub -> Dataflow
NoSQL database Cloud Datastore
ETL Cloud Dataflow -> BigQuery
Blob file storage Cloud Storage
Analytics warehouse (SQL) BigQuery
Personalization Cloud Machine Learning Engine
@bretmcg
@bretmcg
Scale down to $zero*
Zero upfront provisioning
*storage
Manage zero servers
Serverless on Google Cloud
What we learned
● What is serverless?
● Serverless on Google Cloud
● Compare *aaSes
○ PaaS - App Engine
○ FaaS - Google Cloud
Functions
○ BaaS - Firebase
○ Managed services
● What to use?
Thank you!
Bret McGowen
@bretmcg

More Related Content

PDF
Introduction to GitHub Actions
PPTX
Gitlab CI/CD
PDF
Serverless with Google Cloud Functions
PDF
Gitops: the kubernetes way
PDF
Introduction to Kubernetes Workshop
PPTX
Introduction to kubernetes
PPTX
Kubernetes 101 for Beginners
PDF
Gitops Hands On
Introduction to GitHub Actions
Gitlab CI/CD
Serverless with Google Cloud Functions
Gitops: the kubernetes way
Introduction to Kubernetes Workshop
Introduction to kubernetes
Kubernetes 101 for Beginners
Gitops Hands On

What's hot (20)

PPTX
Google cloud functions
PDF
Introduction to kubernetes
PDF
Gitlab ci-cd
PPTX
Introduction to Docker - 2017
PPTX
Introduction to Serverless and Google Cloud Functions
PPTX
Azure DevOps CI/CD For Beginners
PPTX
Interop 2018 - Understanding Kubernetes - Brian Gracely
PDF
Kubernetes GitOps featuring GitHub, Kustomize and ArgoCD
PPTX
Introduction to Kubernetes
PDF
Kubernetes
PPTX
Autoscaling in Kubernetes
PPTX
GitOps w/argocd
PDF
GCP CloudRun Overview
PDF
Continuous Lifecycle London 2018 Event Keynote
PDF
Introduction of Kubernetes - Trang Nguyen
PDF
ArgoCD Meetup PPT final.pdf
PDF
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
PDF
Introduction to Kubernetes and Google Container Engine (GKE)
PPTX
OpenTelemetry For Developers
PDF
Gitlab, GitOps & ArgoCD
Google cloud functions
Introduction to kubernetes
Gitlab ci-cd
Introduction to Docker - 2017
Introduction to Serverless and Google Cloud Functions
Azure DevOps CI/CD For Beginners
Interop 2018 - Understanding Kubernetes - Brian Gracely
Kubernetes GitOps featuring GitHub, Kustomize and ArgoCD
Introduction to Kubernetes
Kubernetes
Autoscaling in Kubernetes
GitOps w/argocd
GCP CloudRun Overview
Continuous Lifecycle London 2018 Event Keynote
Introduction of Kubernetes - Trang Nguyen
ArgoCD Meetup PPT final.pdf
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Introduction to Kubernetes and Google Container Engine (GKE)
OpenTelemetry For Developers
Gitlab, GitOps & ArgoCD
Ad

Similar to Serverless with Google Cloud (20)

PDF
Run your code serverlessly on Google's open cloud
PDF
Serverless computing with Google Cloud
PDF
Serverless Computing with Python
PDF
Next18 Extended Targu Mures - Bringing the Cloud to you
PDF
Google's serverless journey: past to present
PDF
Deep dive into serverless on Google Cloud
PDF
Google Cloud Functions & Firebase Crash Course
PDF
Deploy Basic AI web apps with Serverless Computing from Google Cloud
PPTX
GCCP Session 2.pptx
PPTX
GCCP-Session 2
PPTX
London Adapt or Die: Five Things Enterprises Should Know About Serverless
PDF
Introduction to serverless computing on Google Cloud
PDF
Serverless with Firebase - Launchpad Build Burgos
PPTX
Serverless Architectures
PDF
Exploring Google APIs with Python
PDF
Cloud computing overview & running your code on Google Cloud (Jun 2019)
PDF
Keepler | Full-Stack Serverless Applications on GCP
PDF
Serverless solutions on GCF
PPTX
Google Cloud Study Jam | GDSC NCU
PDF
Serverless architecture
Run your code serverlessly on Google's open cloud
Serverless computing with Google Cloud
Serverless Computing with Python
Next18 Extended Targu Mures - Bringing the Cloud to you
Google's serverless journey: past to present
Deep dive into serverless on Google Cloud
Google Cloud Functions & Firebase Crash Course
Deploy Basic AI web apps with Serverless Computing from Google Cloud
GCCP Session 2.pptx
GCCP-Session 2
London Adapt or Die: Five Things Enterprises Should Know About Serverless
Introduction to serverless computing on Google Cloud
Serverless with Firebase - Launchpad Build Burgos
Serverless Architectures
Exploring Google APIs with Python
Cloud computing overview & running your code on Google Cloud (Jun 2019)
Keepler | Full-Stack Serverless Applications on GCP
Serverless solutions on GCF
Google Cloud Study Jam | GDSC NCU
Serverless architecture
Ad

More from Bret McGowen - NYC Google Developer Advocate (10)

PDF
Knative and Kubernetes - bringing serverless to more developers
PDF
Firebase Codelab - 2018 Milano
PDF
Where should I run my code? Serverless, Containers, Virtual Machines and more
PDF
Supercharge your app with Cloud Functions for Firebase
PDF
Google Home and Google Assistant Workshop: Build your own serverless Action o...
PDF
Machine learning with Google machine learning APIs - Puppy or Muffin?
PDF
Google Machine Learning APIs - puppies or muffins?
PDF
Cloud Spin - building a photo booth with the Google Cloud Platform
PDF
Firebase Code Lab - 2015 GDG Buffalo DevFest
Knative and Kubernetes - bringing serverless to more developers
Firebase Codelab - 2018 Milano
Where should I run my code? Serverless, Containers, Virtual Machines and more
Supercharge your app with Cloud Functions for Firebase
Google Home and Google Assistant Workshop: Build your own serverless Action o...
Machine learning with Google machine learning APIs - Puppy or Muffin?
Google Machine Learning APIs - puppies or muffins?
Cloud Spin - building a photo booth with the Google Cloud Platform
Firebase Code Lab - 2015 GDG Buffalo DevFest

Recently uploaded (20)

PPTX
ai tools demonstartion for schools and inter college
PDF
System and Network Administraation Chapter 3
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
medical staffing services at VALiNTRY
PDF
AI in Product Development-omnex systems
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
top salesforce developer skills in 2025.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Introduction to Artificial Intelligence
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
System and Network Administration Chapter 2
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
history of c programming in notes for students .pptx
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
ai tools demonstartion for schools and inter college
System and Network Administraation Chapter 3
Operating system designcfffgfgggggggvggggggggg
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
How to Choose the Right IT Partner for Your Business in Malaysia
Internet Downloader Manager (IDM) Crack 6.42 Build 41
medical staffing services at VALiNTRY
AI in Product Development-omnex systems
2025 Textile ERP Trends: SAP, Odoo & Oracle
top salesforce developer skills in 2025.pdf
How Creative Agencies Leverage Project Management Software.pdf
Introduction to Artificial Intelligence
Design an Analysis of Algorithms I-SECS-1021-03
System and Network Administration Chapter 2
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Navsoft: AI-Powered Business Solutions & Custom Software Development
Odoo POS Development Services by CandidRoot Solutions
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
history of c programming in notes for students .pptx
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...

Serverless with Google Cloud