Slide 1

Slide 1 text

Serverless Peanut Butter & Jelly & : Sandeep Dinesh @sandeepdinesh

Slide 2

Slide 2 text

Who are we? Firebase Google Cloud Platform

Slide 3

Slide 3 text

@sandeepdinesh Covering our *aaS

Slide 4

Slide 4 text

@sandeepdinesh What is #Serverless https://goo.gl/UXU781

Slide 5

Slide 5 text

@sandeepdinesh Google Cloud Functions A serverless environment to build and connect cloud services with code

Slide 6

Slide 6 text

@sandeepdinesh Google Cloud Functions Automatic scaling No server management Only pay for what you use $

Slide 7

Slide 7 text

@sandeepdinesh Cloud Functions Triggers Cloud Storage Cloud Pub/Sub HTTPS Stackdriver Logs

Slide 8

Slide 8 text

@sandeepdinesh Deploy from... Cloud Console UI $ gcloud functions deploy myFunc \ --stage-bucket functions-src \ --trigger-http Command line ○ ○

Slide 9

Slide 9 text

@sandeepdinesh 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!

Slide 10

Slide 10 text

@sandeepdinesh Logging ● ⇒ ● ⇒ ● ○ ○ ○ Monitoring ● ○ ○ ○

Slide 11

Slide 11 text

@sandeepdinesh Tracing ● ● ● require('@google-cloud/trace-agent').start(); Debugging ● ● ● require('@google-cloud/debug-agent').start();

Slide 12

Slide 12 text

@sandeepdinesh Environment & native binaries ● ● ● ● ● ●

Slide 13

Slide 13 text

@sandeepdinesh Local development ● ● ●

Slide 14

Slide 14 text

@sandeepdinesh

Slide 15

Slide 15 text

@sandeepdinesh Firebase The fastest way to build an app, grow your user base, and earn more money

Slide 16

Slide 16 text

@bretmcg

Slide 17

Slide 17 text

@sandeepdinesh Function better with Firebase... Cloud Storage (incl. Firebase) Cloud Pub/Sub HTTPS Stackdriver Logs Firebase Realtime Database Firebase Authentication Firebase Analytics Firebase Hosting

Slide 18

Slide 18 text

@sandeepdinesh ● Store and serve user-generated content like images, audio, and video directly in your mobile app, using the Firebase SDKs. ● Resumable uploads and downloads are resilient to changes in network connectivity. ● All data is accessible from the Cloud Storage APIs.

Slide 19

Slide 19 text

@sandeepdinesh Upload image Get download URL Write URL to Realtime Database

Slide 20

Slide 20 text

@sandeepdinesh ● Enables synced data across connected devices in milliseconds to power realtime experiences in your app. ● Available when your app goes offline. ● Built on a cloud-hosted NoSQL JSON data structure.

Slide 21

Slide 21 text

@sandeepdinesh Image URL Listen for changes on /images/{imageId} New message!

Slide 22

Slide 22 text

@sandeepdinesh ● Use FCM APIs to build powerful programmatic messaging systems across Android, iOS, and the web. ● Easily manage notification campaigns. Schedule and send messages to engage the right users at the most relevant time. ● Target your users with Firebase Analytics audiences.

Slide 23

Slide 23 text

@sandeepdinesh ● CDN-backed and SSL-enabled static hosting, optimized for SPAs and PWAs ● Add your own custom domain for the low price of $0 ● Dynamic content with the help of Cloud Functions

Slide 24

Slide 24 text

24 # deploy your whole app: website, functions, db/storage rules $ firebase deploy ... # yeah, seriously, that's it Deploying your app with Firebase

Slide 25

Slide 25 text

@sandeepdinesh DEMO

Slide 26

Slide 26 text

@sandeepdinesh Thank you! Questions? Sandeep Dinesh @sandeepdinesh &