$30 off During Our Annual Pro Sale. View Details »

Introduction to Cloud Functions

Introduction to Cloud Functions

An Introduction talk about Google Cloud Functions done at GDGJohannesburg

Peter-John Welcome

February 07, 2018
Tweet

More Decks by Peter-John Welcome

Other Decks in Technology

Transcript

  1. Introduction to Cloud Functions
    Peter-John Welcome
    @pjapplez

    View Slide

  2. What is Cloud Functions?
    ● Serverless Environment (Backend Code)
    ● Microservice
    ● Code as infrastructure

    View Slide

  3. Why Cloud Functions?
    ● Auto Scaling up and down based on load
    ● Pay as you go
    ● Authenticated access to Firebase and Google Services (ML/ NLP)
    ● Fully managed system

    View Slide

  4. How does it work?
    Built on express, which is a node web
    serving framework.
    ● Http endpoints
    ● Handles firebase event.

    View Slide

  5. Cloud Functions Integration
    ● Http Endpoints
    ● Firebase host for dynamic serving of content
    ● Crashlytics
    ● Cloud pub/sub
    ● Firebase Auth,Cloud Messaging, Analytics ,Cloud Storage, RT Database ,
    Firestore

    View Slide

  6. Languages

    View Slide

  7. Time
    Demo

    View Slide

  8. Unit Testing
    https://firebase.google.com/docs/functions/unit-testing

    View Slide

  9. Running Locally
    $ firebase serve --only functions, hosting (Https endpoint functions)
    $ firebase experimental: functions : shell --port 11111 ( function triggers- Firebase)

    View Slide

  10. Running on CI/CD
    https://circleci.com/docs/2.0/deployment_integrations/#firebase

    View Slide

  11. Thanks!
    Contact me:
    google.com/u/0/+PeterJohnWelcome
    Twitter :
    @pjapplez
    [email protected]
    Peter-johnwelcome.co.za
    https://github.com/pjwelcome

    View Slide