Slide 1

Slide 1 text

Introduction to Cloud Functions Peter-John Welcome @pjapplez

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

Languages

Slide 7

Slide 7 text

Time Demo

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

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