SlideShare a Scribd company logo
Go Serverless with
Cloud Functions and
Python
Faz
Solutions Architect, Randstad
Go Serverless with Cloud Functions and Python
No Servers? Really??
Cloud Functions
A serverless environment to build and connect
cloud services with code
Cloud Functions
import flask
import requests
def getUserDetails(request):
user = requests.get('https://randomuser.me/api/').json()
user = user['results'][0]
user['generator'] = 'google-cloud-function'
return flask.jsonify(user)
main.py
Upload
{
"cell": "(49) 7509-0459",
"dob": {
"age": 23,
"date": "1994-11-20T14:16:08Z"
},
"email": "otoniel.darosa@example.com",
"gender": "male",
"generator": "google-cloud-function",
"id": {
"name": "",
"value": null
},
"location": {
"city": "su00e3o bernardo do campo",
"coordinates": {
"latitude": "-79.1409",
"longitude": "-56.7472"
},
"postcode": 64898,
"state": "maranhu00e3o",
"street": "7364 rua treze ",
"timezone": {
"description": "Kabul",
"offset": "+4:30"
"login": {
"md5": "715e1b0e40d34aa4f1b71a8cd1a3a485",
"password": "devil666",
"salt": "uWgXRkVk",
"sha1": "ac5b60ddf5a17d1f949ac4a9821099c7178447f1",
"sha256":
"881dd91e9ad2c9f698ab604b4ca0925d645446a83e6b9a90458c1411943eae
b0",
"username": "ticklishleopard379",
"uuid": "c5abdd59-5c1c-4b2c-a4d8-4fd08da1cf18"
},
"name": {
"first": "otoniel",
"last": "da rosa",
"title": "mr"
},
"nat": "BR",
"phone": "(58) 6179-0550",
"picture": {
"large": "https://randomuser.me/api/portraits/men/5.jpg",
"medium": "https://randomuser.me/api/portraits/med/men/5.jpg",
"thumbnail": "https://randomuser.me/api/portraits/thumb/men/5.jpg"
},
"registered": {
"age": 3,
"date": "2015-06-04T04:09:38Z"
}
}
Output
With 3 lines of code..
● HTTP endpoint
● Fully qualified domain
● Dynamically generated SSL/TLS cert
● Autoscaling
● No infrastructure worries
Use cases
Should I go serverless with Cloud Functions?
● Existing monolithic applications
● Long-running compute tasks
● Guaranteed response times (synchronous)
● Stateless / ephemeral
Thanks!
https://www.facebook.com/gcdckualalumpur/

More Related Content

Similar to Go Serverless with Cloud Functions and Python (20)

PDF
Micro app-framework - NodeLive Boston
Michael Dawson
 
PDF
Micro app-framework
Michael Dawson
 
PDF
Firefox OS: HTML5 sur les stéroïdes - HTML5mtl - 2014-04-22
Frédéric Harper
 
PDF
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
 
PDF
Evolving your Data Access with MongoDB Stitch
MongoDB
 
PDF
Monitoring Your ISP Using InfluxDB Cloud and Raspberry Pi
InfluxData
 
PDF
NoSQL meets Microservices - Michael Hackstein
distributed matters
 
PDF
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
NoSQLmatters
 
PDF
NoSQL meets Microservices
ArangoDB Database
 
PDF
Online | MongoDB Atlas on GCP Workshop
Natasha Wilson
 
PDF
Drupal Mobile
Ruben Teijeiro
 
PPTX
Automatyzacja złożonych chatbotów w Amazon Bedrock
KrzysztofKkol1
 
PDF
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09
Frédéric Harper
 
PDF
Eve - REST API for Humans™
Nicola Iarocci
 
PPTX
How to Leverage APIs for SEO #TTTLive2019
Paul Shapiro
 
PPTX
Getting Started with MongoDB and NodeJS
MongoDB
 
PDF
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...
Frédéric Harper
 
PPTX
Serverless
Iegor Fadieiev
 
PPTX
AWS IoTで家庭内IoTをやってみた【JAWS DAYS 2016】
tsuchimon
 
PPTX
Webinar: Architecting Secure and Compliant Applications with MongoDB
MongoDB
 
Micro app-framework - NodeLive Boston
Michael Dawson
 
Micro app-framework
Michael Dawson
 
Firefox OS: HTML5 sur les stéroïdes - HTML5mtl - 2014-04-22
Frédéric Harper
 
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Shengyou Fan
 
Evolving your Data Access with MongoDB Stitch
MongoDB
 
Monitoring Your ISP Using InfluxDB Cloud and Raspberry Pi
InfluxData
 
NoSQL meets Microservices - Michael Hackstein
distributed matters
 
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
NoSQLmatters
 
NoSQL meets Microservices
ArangoDB Database
 
Online | MongoDB Atlas on GCP Workshop
Natasha Wilson
 
Drupal Mobile
Ruben Teijeiro
 
Automatyzacja złożonych chatbotów w Amazon Bedrock
KrzysztofKkol1
 
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09
Frédéric Harper
 
Eve - REST API for Humans™
Nicola Iarocci
 
How to Leverage APIs for SEO #TTTLive2019
Paul Shapiro
 
Getting Started with MongoDB and NodeJS
MongoDB
 
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...
Frédéric Harper
 
Serverless
Iegor Fadieiev
 
AWS IoTで家庭内IoTをやってみた【JAWS DAYS 2016】
tsuchimon
 
Webinar: Architecting Secure and Compliant Applications with MongoDB
MongoDB
 

More from mfazal (7)

PDF
The Event Driven Future Powered by Serverless
mfazal
 
PDF
Level Up with Google Cloud Certifications
mfazal
 
PDF
Modern Application Development on the Cloud (GCP)
mfazal
 
PDF
DevOps is dead, long live DevOps
mfazal
 
PDF
Cloud run - Serverless Containers Done Right
mfazal
 
PDF
Serious Application Development In Serverless
mfazal
 
PDF
Big Data Expert
mfazal
 
The Event Driven Future Powered by Serverless
mfazal
 
Level Up with Google Cloud Certifications
mfazal
 
Modern Application Development on the Cloud (GCP)
mfazal
 
DevOps is dead, long live DevOps
mfazal
 
Cloud run - Serverless Containers Done Right
mfazal
 
Serious Application Development In Serverless
mfazal
 
Big Data Expert
mfazal
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Ad

Go Serverless with Cloud Functions and Python

  • 1. Go Serverless with Cloud Functions and Python Faz Solutions Architect, Randstad
  • 4. Cloud Functions A serverless environment to build and connect cloud services with code
  • 6. import flask import requests def getUserDetails(request): user = requests.get('https://randomuser.me/api/').json() user = user['results'][0] user['generator'] = 'google-cloud-function' return flask.jsonify(user) main.py
  • 8. { "cell": "(49) 7509-0459", "dob": { "age": 23, "date": "1994-11-20T14:16:08Z" }, "email": "[email protected]", "gender": "male", "generator": "google-cloud-function", "id": { "name": "", "value": null }, "location": { "city": "su00e3o bernardo do campo", "coordinates": { "latitude": "-79.1409", "longitude": "-56.7472" }, "postcode": 64898, "state": "maranhu00e3o", "street": "7364 rua treze ", "timezone": { "description": "Kabul", "offset": "+4:30" "login": { "md5": "715e1b0e40d34aa4f1b71a8cd1a3a485", "password": "devil666", "salt": "uWgXRkVk", "sha1": "ac5b60ddf5a17d1f949ac4a9821099c7178447f1", "sha256": "881dd91e9ad2c9f698ab604b4ca0925d645446a83e6b9a90458c1411943eae b0", "username": "ticklishleopard379", "uuid": "c5abdd59-5c1c-4b2c-a4d8-4fd08da1cf18" }, "name": { "first": "otoniel", "last": "da rosa", "title": "mr" }, "nat": "BR", "phone": "(58) 6179-0550", "picture": { "large": "https://randomuser.me/api/portraits/men/5.jpg", "medium": "https://randomuser.me/api/portraits/med/men/5.jpg", "thumbnail": "https://randomuser.me/api/portraits/thumb/men/5.jpg" }, "registered": { "age": 3, "date": "2015-06-04T04:09:38Z" } } Output
  • 9. With 3 lines of code.. ● HTTP endpoint ● Fully qualified domain ● Dynamically generated SSL/TLS cert ● Autoscaling ● No infrastructure worries
  • 11. Should I go serverless with Cloud Functions? ● Existing monolithic applications ● Long-running compute tasks ● Guaranteed response times (synchronous) ● Stateless / ephemeral