Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Introduction to Cloud Functions
Peter-John Welcome
February 07, 2018
Technology
0
22
Introduction to Cloud Functions
An Introduction talk about Google Cloud Functions done at GDGJohannesburg
Peter-John Welcome
February 07, 2018
Tweet
Share
More Decks by Peter-John Welcome
See All by Peter-John Welcome
pjwelcome
0
25
pjwelcome
1
37
pjwelcome
0
15
pjwelcome
0
32
pjwelcome
0
8
pjwelcome
0
21
pjwelcome
0
44
pjwelcome
0
86
pjwelcome
1
42
Other Decks in Technology
See All in Technology
askul
1
190
you
0
280
myajiri
0
310
gobeyond20xx
0
170
soracom
1
120
fufuhu
3
130
ayanadesu
0
350
lancers_pr
4
1.4k
tosh2230
2
170
shirayanagiryuji
1
170
hanacchi
0
150
iwashi86
53
23k
Featured
See All Featured
scottboms
251
11k
hatefulcrawdad
257
17k
searls
205
36k
qrush
285
19k
addyosmani
494
110k
brad_frost
157
6.4k
eileencodes
113
25k
jensimmons
207
10k
destraynor
146
19k
lauravandoore
437
28k
roundedbygravity
242
21k
nonsquared
81
3.4k
Transcript
Introduction to Cloud Functions Peter-John Welcome @pjapplez
What is Cloud Functions? • Serverless Environment (Backend Code) •
Microservice • Code as infrastructure
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
How does it work? Built on express, which is a
node web serving framework. • Http endpoints • Handles firebase event.
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
Languages
Time Demo
Unit Testing https://firebase.google.com/docs/functions/unit-testing
Running Locally $ firebase serve --only functions, hosting (Https endpoint
functions) $ firebase experimental: functions : shell --port 11111 ( function triggers- Firebase)
Running on CI/CD https://circleci.com/docs/2.0/deployment_integrations/#firebase
Thanks! Contact me: google.com/u/0/+PeterJohnWelcome Twitter : @pjapplez pjwelcome@gmail.com Peter-johnwelcome.co.za https://github.com/pjwelcome