Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Severless PB&J

Severless PB&J

From Functions-as-a-Service to Backend-as-a-Service, even Big Data-as-a-Service, Serverless is taking many different shapes. Learn what these mean and how Google Cloud Platform is building technology to make sure there's nothing standing between you and running your code. You'll see live demos of integration between Firebase, Cloud Functions, and more to build autoscaling apps in record time - all without managing servers or application runtimes.


Sandeep Dinesh

August 25, 2017

More Decks by Sandeep Dinesh

Other Decks in Programming


  1. Serverless Peanut Butter & Jelly & : Sandeep Dinesh @sandeepdinesh

  2. Who are we? Firebase Google Cloud Platform

  3. @sandeepdinesh Covering our *aaS

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

  5. @sandeepdinesh Google Cloud Functions A serverless environment to build and

    connect cloud services with code
  6. @sandeepdinesh Google Cloud Functions Automatic scaling No server management Only

    pay for what you use $
  7. @sandeepdinesh Cloud Functions Triggers Cloud Storage Cloud Pub/Sub HTTPS Stackdriver

  8. @sandeepdinesh Deploy from... Cloud Console UI $ gcloud functions deploy

    myFunc \ --stage-bucket functions-src \ --trigger-http Command line ◦ ◦
  9. @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!
  10. @sandeepdinesh Logging • ⇒ • ⇒ • ◦ ◦ ◦

    Monitoring • ◦ ◦ ◦
  11. @sandeepdinesh Tracing • • • require('@google-cloud/trace-agent').start(); Debugging • • •

  12. @sandeepdinesh Environment & native binaries • • • • •

  13. @sandeepdinesh Local development • • •

  14. @sandeepdinesh

  15. @sandeepdinesh Firebase The fastest way to build an app, grow

    your user base, and earn more money
  16. @bretmcg

  17. @sandeepdinesh Function better with Firebase... Cloud Storage (incl. Firebase) Cloud

    Pub/Sub HTTPS Stackdriver Logs Firebase Realtime Database Firebase Authentication Firebase Analytics Firebase Hosting
  18. @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.
  19. @sandeepdinesh Upload image Get download URL Write URL to Realtime

  20. @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.
  21. @sandeepdinesh Image URL Listen for changes on /images/{imageId} New message!

  22. @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.
  23. @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
  24. 24 # deploy your whole app: website, functions, db/storage rules

    $ firebase deploy ... # yeah, seriously, that's it Deploying your app with Firebase
  25. @sandeepdinesh DEMO

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