SlideShare a Scribd company logo
@tegarimansyah
Walkthrough
Google Cloud Platform
GDG Cloud Surabaya #1 Meetup
Webinar, 11 April 2020
Tegar Imansyah
Software & IoT Enthusiast
About:
Software Architect at Alterra
Surabaya.py Organizer Advisor
Interested in IoT, Linux, Web
Spoke at PyCon Malaysia and PyCon Indonesia
Get in Touch:
github.com/tegarimansyah
t.me/tegarimansyah
linked.in/tegarimansyah
@tegarimansyah 2
@tegarimansyah
Agenda
● GCP at a glance
● Project ideation
● Approach to implement the idea
● How much? Free?
3
@tegarimansyah
Any Question? Put it in: https://sli.do
4
And enter event code: #91018
@tegarimansyah
What is Google Cloud Platform?
Google Cloud Platform (GCP), offered by
Google, is a suite of cloud computing services
that runs on the same infrastructure that
Google uses internally for its end-user
products, such as Google Search, Gmail and
YouTube.
Alongside a set of management tools, it
provides a series of modular cloud services
including computing, data storage, data
analytics and machine learning.
5Source: https://en.wikipedia.org/wiki/Google_Cloud_Platform
@tegarimansyah
Some GCP Services
6
https://cloud.google.com/products
@tegarimansyah
Sample Project: Cloud Recording
Think like SoundCloud, everyone can put their record and hear each other.
Features:
● It should use https
● It should handling user registration and login
● It should handling user upload and playback audio
● It should handling files storage
7
@tegarimansyah
Service We Will Use
8
Approach #1: Single VM
* I’m not saying this is the best design for this scenario
@tegarimansyah
Single VM
9
● It should use https → Google Compute Engine (NGINX + Let’s Encrypt) or Cloud
DNS + Load Balancer
● It should handling user registration and login → Google Compute Engine
(Our own app + Database) or Database Service (Cloud SQL or Firestore)
● It should handling user upload and playback audio → Google Compute
Engine (Our own app + Database) or Database Service (Cloud SQL or Firestore)
● It should handling files storage → Google Compute Engine (Our Own App
access to its storage) + Persistent Disk
@tegarimansyah
Pros and Cons
10
Pros
● Build like other IaaS or your own computer
● Great flexibility
● Always On
Cons
● Manage all by yourself
● Manual scale
@tegarimansyah
Service We Will Use
11
Approach #2: Serverless
* I’m not saying this is the best design for this scenario
@tegarimansyah
Serverless #1 App Engine
12
● It should use https → Google App Engine (Custom Domain)
● It should handling user registration and login → Identity Platform
● It should handling user upload and playback audio → Google App Engine
(Our own app) + Database Service (Firestore)
● It should handling files storage → Cloud Storage
Quickstart: https://cloud.google.com/appengine/docs/standard/python3/quickstart
@tegarimansyah
Pros and Cons
13
Pros
● Very fast for getting started -- only specify your app
● Automatic Scaling
● Able to scale down to 0 (Free if no request)
Cons
● Specific YAML setup
● Cold Start
● Only for specific language (Java, Python, PHP, Go, and Node.js)
@tegarimansyah
Serverless #2 Cloud Functions
14
● It should use https → Cloud Functions + API Management (Custom Domain)
● It should handling user registration and login → Identity Platform
● It should handling user upload and playback audio → Cloud Functions (Our
own app) + Database Service (Firestore)
● It should handling files storage → Cloud Storage
Quickstart: https://cloud.google.com/functions/docs/quickstart
@tegarimansyah
Pros and Cons
15
Pros
● Very fast for getting started -- only specify your function
● Automatic Scaling
● Able to scale down to 0 (Free if no request)
Cons
● Specific YAML setup
● Cold Start
● Only for specific language (Python, Go, and Node.js) and runtime
@tegarimansyah
Service We Will Use
16
Approach #3: Container Based
* I’m not saying this is the best design for this scenario
@tegarimansyah
Container Based
17
● It should use https → Cloud Run (Running Container with Knative) or Use
Google Kubernetes Engine
● It should handling user registration and login → Identity Platform
● It should handling user upload and playback audio → Cloud Run (Our own
app) + Database Service (Firestore)
● It should handling files storage → Cloud Storage
Quickstart: https://cloud.google.com/run/docs/quickstarts/build-and-deploy
@tegarimansyah
Pros and Cons
18
Pros
● Use our own dockerfile
● Integration with kubernetes cluster
● Able to scale down to 0 (Free if no request)
Cons
● Prior container (docker) knowledge required
● Only HTTP (80/443)
@tegarimansyah
Comparison
19
Task Compute
Engine
App Engine Function Run
Preparation Domain + DNS
Web Server
Runtime
App.yaml - Dockerfile
Code Full App Full App Function Full App
Deployment ssh gcloud app
deploy
gcloud functions
deploy ${fn_name}
--runtime python37
--trigger-http
gcloud builds submit --tag
gcr.io/${PROJECT}/{IMAGE}
gcloud run deploy
hello-broken --image
gcr.io/${PROJECT}/{IMAGE}
@tegarimansyah
Something Else We Should Consider
20
Operations
(Logging, Monitoring,
and Reporting, etc)
* Especially if our app going bigger
Networking
(VPC, Load Balancing,
DNS etc)
Data Analytics
(BigQuery, Data
Studio, etc)
Identity
(IAM, Secret
Manager, etc)
@tegarimansyah
I Want Free!
21
https://cloud.google.com/free
@tegarimansyah
I Want More Power! How Much I Need to Pay?
22
https://cloud.google.com/products/calculator
@tegarimansyah
Any Question? Put it in: https://sli.do
That’s All,
Let’s getting started https://cloud.google.com/gcp/getting-started
And enter event code: #91018
@tegarimansyah
Join us: https://www.meetup.com/GDG-Cloud-Surabaya/
Thank You!
Poke me https://t.me/tegarimansyah
This slide https://slideshare.com/tegarimansyah

More Related Content

PDF
Understanding IoT Data Protocol - PyCon ID 2018
PDF
IoT backend architecture
PDF
Building Applications with Eclipse IoT, Block by Block
PDF
The Bitreactive Case
PPTX
Drone data sync
PDF
Develop, deploy and manage your IoT Fleet with Balena - IoT Portugal Meetup
PPTX
ThingStudio_persys17
PDF
IoT with Google ecosystem
Understanding IoT Data Protocol - PyCon ID 2018
IoT backend architecture
Building Applications with Eclipse IoT, Block by Block
The Bitreactive Case
Drone data sync
Develop, deploy and manage your IoT Fleet with Balena - IoT Portugal Meetup
ThingStudio_persys17
IoT with Google ecosystem

What's hot (18)

PPTX
Defining an Open IoT Stack - Presented at IoT World 2015
PPTX
FIWARE Developers Week_IoT Agents with Thinking Things and OMA lightweight M...
PDF
2016 07-20-wp5-q2 f2 f meeting in berlin
PPT
FIWARE IoT Proposal & Community
PDF
Building an IOT app using MQTT
PDF
Gobot Meets IoT : Using the Go Programming Language to Control The “Things” A...
PDF
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...
PDF
S3 Server Hackathon Presented by S3 Server, a Scality Product, Seagate and Ho...
PDF
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
PDF
From localhost to the cloud: A Journey of Deployments
PDF
Training thethings.iO
PPTX
PDF
DevSecCon London 2018: Enabling shift-left for 12k banking developers from sc...
PPTX
Configuration & Recommendation
PDF
Beacosystem Talk @ MongoDB User Group Dublin @sos100
PDF
WP8 - Pilot – Testbed
PPTX
Multi-tenant web applications with ASP.NET Core
PDF
ITCamp 2018 - Gunnar Peipman - Multi-tenant web applications with ASP.NET Core
Defining an Open IoT Stack - Presented at IoT World 2015
FIWARE Developers Week_IoT Agents with Thinking Things and OMA lightweight M...
2016 07-20-wp5-q2 f2 f meeting in berlin
FIWARE IoT Proposal & Community
Building an IOT app using MQTT
Gobot Meets IoT : Using the Go Programming Language to Control The “Things” A...
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...
S3 Server Hackathon Presented by S3 Server, a Scality Product, Seagate and Ho...
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
From localhost to the cloud: A Journey of Deployments
Training thethings.iO
DevSecCon London 2018: Enabling shift-left for 12k banking developers from sc...
Configuration & Recommendation
Beacosystem Talk @ MongoDB User Group Dublin @sos100
WP8 - Pilot – Testbed
Multi-tenant web applications with ASP.NET Core
ITCamp 2018 - Gunnar Peipman - Multi-tenant web applications with ASP.NET Core
Ad

Similar to Walkthrough google cloud platform (20)

PDF
Google Cloud Platform Update
PDF
Introduction to Google Drive API
PDF
Serverless computing with Google Cloud
PDF
Powerful Google Cloud tools for your hack
PPTX
Cloud Computing
PDF
Introduction to serverless computing on Google Cloud
PDF
Exploring Google APIs with Python
PDF
Accessing Google Cloud APIs
PDF
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
PDF
Google's serverless journey: past to present
PDF
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
PDF
Mobile backends with Google Cloud Platform (MBLTDev'14)
PPTX
Gdsc muk - innocent
PDF
What cloud changes the developer
PDF
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
PDF
What is Google Cloud Platform - GDG DevFest 18 Depok
PDF
Serverless Big Data Architecture on Google Cloud Platform at Credit OK
PDF
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
PDF
Google I/O 2016 Recap - Google Cloud Platform News Update
PDF
Run your code serverlessly on Google's open cloud
Google Cloud Platform Update
Introduction to Google Drive API
Serverless computing with Google Cloud
Powerful Google Cloud tools for your hack
Cloud Computing
Introduction to serverless computing on Google Cloud
Exploring Google APIs with Python
Accessing Google Cloud APIs
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
Google's serverless journey: past to present
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
Mobile backends with Google Cloud Platform (MBLTDev'14)
Gdsc muk - innocent
What cloud changes the developer
Google Technical Webinar - Building Mashups with Google Apps and SAP, using S...
What is Google Cloud Platform - GDG DevFest 18 Depok
Serverless Big Data Architecture on Google Cloud Platform at Credit OK
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Google I/O 2016 Recap - Google Cloud Platform News Update
Run your code serverlessly on Google's open cloud
Ad

More from Tegar Imansyah (6)

PDF
Lessons Learned for Internet of Things for Students
PDF
Lessons learned for internet of things
PDF
Technology for Your Business
PDF
Understanding IoT with Cloud IoT Core
PDF
Google Assistant - GDG Surabaya DevFest 2018
PDF
DIY Home Smart Lighting System with Micropython - PyCon MY 2018
Lessons Learned for Internet of Things for Students
Lessons learned for internet of things
Technology for Your Business
Understanding IoT with Cloud IoT Core
Google Assistant - GDG Surabaya DevFest 2018
DIY Home Smart Lighting System with Micropython - PyCon MY 2018

Recently uploaded (20)

PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
E -tech empowerment technologies PowerPoint
PPTX
Internet___Basics___Styled_ presentation
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
Introduction to the IoT system, how the IoT system works
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
Introduction to Information and Communication Technology
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
artificialintelligenceai1-copy-210604123353.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Job_Card_System_Styled_lorem_ipsum_.pptx
presentation_pfe-universite-molay-seltan.pptx
E -tech empowerment technologies PowerPoint
Internet___Basics___Styled_ presentation
Sims 4 Historia para lo sims 4 para jugar
Introduction to the IoT system, how the IoT system works
Power Point - Lesson 3_2.pptx grad school presentation
newyork.pptxirantrafgshenepalchinachinane
Mathew Digital SEO Checklist Guidlines 2025
An introduction to the IFRS (ISSB) Stndards.pdf
Introduction to Information and Communication Technology
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
international classification of diseases ICD-10 review PPT.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
SAP Ariba Sourcing PPT for learning material
Paper PDF World Game (s) Great Redesign.pdf
SASE Traffic Flow - ZTNA Connector-1.pdf
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
artificialintelligenceai1-copy-210604123353.pptx

Walkthrough google cloud platform

  • 1. @tegarimansyah Walkthrough Google Cloud Platform GDG Cloud Surabaya #1 Meetup Webinar, 11 April 2020
  • 2. Tegar Imansyah Software & IoT Enthusiast About: Software Architect at Alterra Surabaya.py Organizer Advisor Interested in IoT, Linux, Web Spoke at PyCon Malaysia and PyCon Indonesia Get in Touch: github.com/tegarimansyah t.me/tegarimansyah linked.in/tegarimansyah @tegarimansyah 2
  • 3. @tegarimansyah Agenda ● GCP at a glance ● Project ideation ● Approach to implement the idea ● How much? Free? 3
  • 4. @tegarimansyah Any Question? Put it in: https://sli.do 4 And enter event code: #91018
  • 5. @tegarimansyah What is Google Cloud Platform? Google Cloud Platform (GCP), offered by Google, is a suite of cloud computing services that runs on the same infrastructure that Google uses internally for its end-user products, such as Google Search, Gmail and YouTube. Alongside a set of management tools, it provides a series of modular cloud services including computing, data storage, data analytics and machine learning. 5Source: https://en.wikipedia.org/wiki/Google_Cloud_Platform
  • 7. @tegarimansyah Sample Project: Cloud Recording Think like SoundCloud, everyone can put their record and hear each other. Features: ● It should use https ● It should handling user registration and login ● It should handling user upload and playback audio ● It should handling files storage 7
  • 8. @tegarimansyah Service We Will Use 8 Approach #1: Single VM * I’m not saying this is the best design for this scenario
  • 9. @tegarimansyah Single VM 9 ● It should use https → Google Compute Engine (NGINX + Let’s Encrypt) or Cloud DNS + Load Balancer ● It should handling user registration and login → Google Compute Engine (Our own app + Database) or Database Service (Cloud SQL or Firestore) ● It should handling user upload and playback audio → Google Compute Engine (Our own app + Database) or Database Service (Cloud SQL or Firestore) ● It should handling files storage → Google Compute Engine (Our Own App access to its storage) + Persistent Disk
  • 10. @tegarimansyah Pros and Cons 10 Pros ● Build like other IaaS or your own computer ● Great flexibility ● Always On Cons ● Manage all by yourself ● Manual scale
  • 11. @tegarimansyah Service We Will Use 11 Approach #2: Serverless * I’m not saying this is the best design for this scenario
  • 12. @tegarimansyah Serverless #1 App Engine 12 ● It should use https → Google App Engine (Custom Domain) ● It should handling user registration and login → Identity Platform ● It should handling user upload and playback audio → Google App Engine (Our own app) + Database Service (Firestore) ● It should handling files storage → Cloud Storage Quickstart: https://cloud.google.com/appengine/docs/standard/python3/quickstart
  • 13. @tegarimansyah Pros and Cons 13 Pros ● Very fast for getting started -- only specify your app ● Automatic Scaling ● Able to scale down to 0 (Free if no request) Cons ● Specific YAML setup ● Cold Start ● Only for specific language (Java, Python, PHP, Go, and Node.js)
  • 14. @tegarimansyah Serverless #2 Cloud Functions 14 ● It should use https → Cloud Functions + API Management (Custom Domain) ● It should handling user registration and login → Identity Platform ● It should handling user upload and playback audio → Cloud Functions (Our own app) + Database Service (Firestore) ● It should handling files storage → Cloud Storage Quickstart: https://cloud.google.com/functions/docs/quickstart
  • 15. @tegarimansyah Pros and Cons 15 Pros ● Very fast for getting started -- only specify your function ● Automatic Scaling ● Able to scale down to 0 (Free if no request) Cons ● Specific YAML setup ● Cold Start ● Only for specific language (Python, Go, and Node.js) and runtime
  • 16. @tegarimansyah Service We Will Use 16 Approach #3: Container Based * I’m not saying this is the best design for this scenario
  • 17. @tegarimansyah Container Based 17 ● It should use https → Cloud Run (Running Container with Knative) or Use Google Kubernetes Engine ● It should handling user registration and login → Identity Platform ● It should handling user upload and playback audio → Cloud Run (Our own app) + Database Service (Firestore) ● It should handling files storage → Cloud Storage Quickstart: https://cloud.google.com/run/docs/quickstarts/build-and-deploy
  • 18. @tegarimansyah Pros and Cons 18 Pros ● Use our own dockerfile ● Integration with kubernetes cluster ● Able to scale down to 0 (Free if no request) Cons ● Prior container (docker) knowledge required ● Only HTTP (80/443)
  • 19. @tegarimansyah Comparison 19 Task Compute Engine App Engine Function Run Preparation Domain + DNS Web Server Runtime App.yaml - Dockerfile Code Full App Full App Function Full App Deployment ssh gcloud app deploy gcloud functions deploy ${fn_name} --runtime python37 --trigger-http gcloud builds submit --tag gcr.io/${PROJECT}/{IMAGE} gcloud run deploy hello-broken --image gcr.io/${PROJECT}/{IMAGE}
  • 20. @tegarimansyah Something Else We Should Consider 20 Operations (Logging, Monitoring, and Reporting, etc) * Especially if our app going bigger Networking (VPC, Load Balancing, DNS etc) Data Analytics (BigQuery, Data Studio, etc) Identity (IAM, Secret Manager, etc)
  • 22. @tegarimansyah I Want More Power! How Much I Need to Pay? 22 https://cloud.google.com/products/calculator
  • 23. @tegarimansyah Any Question? Put it in: https://sli.do That’s All, Let’s getting started https://cloud.google.com/gcp/getting-started And enter event code: #91018
  • 24. @tegarimansyah Join us: https://www.meetup.com/GDG-Cloud-Surabaya/ Thank You! Poke me https://t.me/tegarimansyah This slide https://slideshare.com/tegarimansyah