powering your apps via google cloud platform
TRANSCRIPT
Agenda
Overview of Google Cloud PlatformPower your apps using APIsDemo : Cloud EndpointsLive Demonstration : IoT Project with Cloud Endpoints
2
Google Cloud Platform4
Storage
Cloud Storage Cloud SQLCloud
Datastore
Compute
Compute Engine
App Engine
App Services
BigQueryCloud
EndpointsContainer
Engine
Power Computation5
Compute
Compute Engine
App Engine
Storage
Cloud Storage
Cloud SQLCloud
Datastore
App Services
BigQueryCloud
Endpoints
Storing What You Want, However You Want6
Storage
Cloud Storage Cloud SQLCloud
Datastore
Compute
Compute Engine
App Engine
App Services
BigQueryCloud
Endpoints
Building Robust, Intelligent Systems7
App Services
BigQueryCloud
Endpoints
Storage
Cloud Storage
Cloud SQLCloud
Datastore
Compute
Compute Engine
App Engine
Range of services / tools / solutions8
https://cloud.google.com/docs/
Click To Deploy
When to use App Engine?9
When to use? Capabilities
● Automatic resource provisioning
● Java, Python, PHP, Go, ...
● Identity, Memcache, Task Queue, Mail, ...
• Focus on your application
• Managed environment
• Build micro-services
App Engine Managed VMs (Beta)10
● App Engine productivity - on VMs
○ More flexible, powerful
● Bring your own○ Dependencies○ Runtime (Docker container)
● What’s new?○ Load Balancing○ Autoscaling○ Cloud SDK Integration
● Local Dev Environment
Managed VMs - Features11 Feature App Engine hosting Managed VM hosting
Instance startup time Milliseconds/Seconds Seconds/Minutes
Maximum Request Timeout 60 seconds 24 hours
Background threads Yes, with restrictions Yes
Background processes No Yes
SSH debugging No Yes
Scaling Manual, Basic, Automatic Manual, soon Automatic
Writing to local disk No Yes, ephemeral
Customizable serving stack No (Java7) Servlet 3.1, Java7, Java8, Java9, Node, Dart,...)
Automatic in-place security patches
Yes Yes
Network access Only via App Engine services (includes outbound sockets)
Yes
Supports installing third party binaries
No Yes
Requires Modules No Yes
Pricing Based on Instance hours Uses Compute Engine Pricing for each VM
Cloud Endpoints12
• Build Server side logic on full power, management free App Engine platform
• Expose standards based REST interfaces with built in Authorization
• Use auto-generated, strongly typed, mobile optimized client libraries for Android, iOS and web.
Why Cloud Endpoints ? 14
Building an API is not easy ! Design + Implement + Deploy your API Scale ! Manage Infrastructure ! Support multiple mobile clients (iOS,
Android,JavaScript…) Security ? You need some tooling that helps you
Create API as per best practices Be able to scale by meeting your client needs
Cloud Endpoints Demo
Track Temperature from various stations Temperature Value in C Date / Time Weather Station Name
Create an API for Temperature Logging Local Testing of the API via API Explorer Use Android Studio Project + Google Cloud
Module for all of the above
15
Live Demo of IoT Application
ArduinoLM 35 Temperature SensorPython App interfacing to ArduinoStoring its data in Google Cloud Datastore via Cloud Endpoints
16
Temperature Logger Application17
Serial API
Python App that talks to Arduino over Serial
Port, gets the Temperature value
and uses Cloud Endpoints API to push
data into Google Cloud.
Export to Cloud Storage
Analyze
Save
Google Cloud Pricing Calculator
https://cloud.google.com/products/calculator/
18
Google Cloud Platform – Get Started
Get started immediately$300 Credit for 2 monthsVisit http://cloud.google.com and click on Start your free trial
Documentation : https://cloud.google.com/docs/
Github : http://googlecloudplatform.github.io/
19