Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
firebase cloud functions
Search
Nitish Phanse
October 28, 2017
Technology
63
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
firebase cloud functions
Firebase and cloud functions talk given at Google dev fest mumbai 2017
Nitish Phanse
October 28, 2017
Other Decks in Technology
See All in Technology
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
450
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
250
サブエージェントと Claude Mods で作る独自 Advisor ツールの話
kenichiodo
2
160
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
190
Tofu-Controller lightning talk @ Containerday 2026
gionn
0
100
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
130
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
330
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
940
AI時代のPRレビューにどう向き合うか?
kairim0
1
240
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
120
Featured
See All Featured
Docker and Python
trallard
47
4.2k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Facilitating Awesome Meetings
lara
57
7.2k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Everyday Curiosity
cassininazir
0
350
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Fireside Chat
paigeccino
43
4.1k
A designer walks into a library…
pauljervisheath
211
25k
How to make the Groovebox
asonas
2
2.5k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Transcript
Powering Your Apps With Firebase Cloud Functions + =
Nitish Phanse Senior Developer @ Kyepot @nitish24p
None
My site works on localhost now what
Serverless • No provisioning • Event Driven • Auto scale
None
Cloud Functions • Code hosted in the cloud • Node
JS environment v6.9.1 • Connects to other google services like firebase. (req, res) => …
Authentication Database Hosting Storage Performance Functions Test Lab https://firebase.google.com/
Use cases of Firebase CFs • Real time database sanitization
• Integrate with third party APIs • Analytics service • Cloud messaging
Let’s get started
Let’s get started
Let’s get started
Let’s get started
None
None
None
None
None
None
Function Triggers • Realtime Database / Firestore Triggers • Firebase
Authentication Triggers • Cloud Storage Triggers • HTTP Triggers • Firebase Analytics Triggers
Database trigger • onWrite , onCreate, onUpdate • Path specific
• Event data object (event.data)
Database trigger • onWrite , onCreate, onUpdate • Path specific
• Event data object (event.data) OOPS !!!
None
ref(‘/posts/{id}’)
ref(‘/posts/{id}’) Trigger function Modifies event object
ref(‘/posts/{id}’) Trigger function Modifies event object ref(‘/posts/{id}’)
ref(‘/posts/{id}’) Trigger function Modifies event object ref(‘/posts/{id}’)
Prevent infinite loops
Prevent infinite loops Flag your data
Prevent infinite loops Flag your data Break function execution
Authentication trigger • New user signs up / signs in
• Event data object (event.data)
Storage trigger • functions.storage.object() changes in default bucket • Event
data object • other metadata
HTTPS trigger • Each function name => Url • GET,
POST, PUT, DELETE • Terminate with send(), redirect(), end().
Putting it all together User 1
Putting it all together Sign up User 1 ref(‘/users’) ref(‘/fcmtokens’)
Putting it all together Sign up User 1 ref(‘/users’) ref(‘/fcmtokens’)
Putting it all together Sign up User 1 ref(‘/users’) ref(‘/fcmtokens’)
push to analytics
Putting it all together Sign up User 1 ref(‘/users’) User
2 ref(‘/fcmtokens’) push to analytics
Putting it all together Sign up User 1 ref(‘/users’) User
2 ref(‘/messages’) ref(‘/fcmtokens’) push to analytics
Putting it all together Sign up User 1 ref(‘/users’) User
2 ref(‘/messages’) Fetch Tokens Send notifications to all Users ref(‘/fcmtokens’) push to analytics
The pain • Deployment takes time • Realtime logs are
delayed in production • Accidental tight coupling
Thank you @nitish24p say hi.