How do Cloud Functions work? | Get to know Cloud Firestore #11

  Рет қаралды 124,262

Firebase

Firebase

Күн бұрын

Пікірлер: 100
@nickadams2361
@nickadams2361 2 жыл бұрын
This guy needs a raise and be in charge of all technical writing at Google. Absolutely excellent speaker and presenter
@AYlmaz-te9hb
@AYlmaz-te9hb Жыл бұрын
Definitely agree, never seen this good developer instructor
@masaokitamura
@masaokitamura 4 жыл бұрын
01:07 Why use Cloud Functions? 02:03 Summary of Cloud Functions 03:28 Returning Promises 04:13 Google Cloud Functions vs. Cloud Functions for Firebase (TS and JS only) 05:14 Restaurant Reviews example begins 05:23 Urban dictionary joke 05:50 Clients are untrustworthy by nature 06:39 Code Example in TypeScript 10:00 Infinite loops 10:55 "Cloud Functions has fixed my terrible culinary mistake" 12:12 Firebase deploy 12:51 Firebase deploy handles individual Function deploys that you would normally do with Google Cloud Functions 13:38 Top 5 Quirks 13:47 Quirk #1: Performance cold start 14:37 Quirk #2: Global variable out of sync on each server 15:21 Quirk #3: Global variables/libraries always loaded, slowing all cold starts 16:07 ...use lazy loading of libraries instead 16:17 Quirk #4: Order of function execution not guaranteed 16:57 Quirk #5: Duplicate events, use the unique eventID property which is the same across all duplicate function calls 17:52 Conclusion and next video topics
@energeticprogrammer6904
@energeticprogrammer6904 4 жыл бұрын
wow you are great
@danich46
@danich46 4 жыл бұрын
One of the coolest tutorial episodes I've ever watched! Keep going Todd, we love the way you bring us in the Firestore world!
@lalalarara9209
@lalalarara9209 5 жыл бұрын
I have been waiting for this series so badly
@adamm3122
@adamm3122 5 жыл бұрын
Ahhh I love this guy!!
@Bogdan-op2py
@Bogdan-op2py 4 жыл бұрын
He looks like the older version of Leonard Hofstadter from the Big Bang Theory
@SushmaSureshBabuSSB
@SushmaSureshBabuSSB 4 жыл бұрын
@@Bogdan-op2py exactly what I was thinking! Sounds like him too
@oliverraisz7672
@oliverraisz7672 3 жыл бұрын
@@Bogdan-op2py no, he's definitely Database Robin Williams
@codewithfelix3940
@codewithfelix3940 2 жыл бұрын
Jhus knw mn ..
@codewithfelix3940
@codewithfelix3940 2 жыл бұрын
when i saw him, i didn't even bother scrolling
@blackshirtsquad7883
@blackshirtsquad7883 3 жыл бұрын
This speaker is so good. I don't know what it is but i could listen to him talk about anything for hours
@CKC1024
@CKC1024 5 жыл бұрын
Man long time no see! Have been waiting you for long. Love your tutorials. Thank you
@michaelmartin1451
@michaelmartin1451 3 жыл бұрын
Anyone else notice the 'Club Data(bass)' 😂 incredible attention to detail!
@haidarrmehsen
@haidarrmehsen 4 жыл бұрын
When is the next video, did the series stop?? :( And Todd Keplerpann you are awesome in explaining things man!
@thatsalot3577
@thatsalot3577 2 жыл бұрын
These videos are always fun to watch.
@DanBorgia
@DanBorgia 5 жыл бұрын
I want that Firebase shirt!!
@jeantravassos
@jeantravassos 4 жыл бұрын
I really enjoyed this series! Very clarifying and funny!!
@DenisTRUFFAUT
@DenisTRUFFAUT 5 жыл бұрын
Excellent video, well explained as ever :) Good suggestion on Stripe / idempotency / eventID
@ilyabelsky5584
@ilyabelsky5584 4 жыл бұрын
after one week of playing with Firebase I could say it's as satisfying as playing in Factorio, but without any guilt that I waste my life. I'm kinda building Internet!
@TheSandeepSuresh
@TheSandeepSuresh 4 жыл бұрын
Please push the next episode of this series!!
@DaudKurnia
@DaudKurnia 4 жыл бұрын
Hi, talk about schedule notification with firestore, in my case, i want to give warning notification ex.5 minutes left, and when deadline coming i wanna change my data in firestore? is it possible? thank you
@boyakoosha
@boyakoosha 3 жыл бұрын
Best technical presenter ever
@1boompje
@1boompje 4 жыл бұрын
One of the best tutorial series!
@christianabrahamsanchezsan1717
@christianabrahamsanchezsan1717 3 ай бұрын
The infinite loop joke was amazing
@bitwisedevs469
@bitwisedevs469 4 жыл бұрын
Solid sample and very informative, as always you are the best!
@neilrara
@neilrara 3 жыл бұрын
Is it possible to use callable functions with Firestore? Like changing the content of a Firestore document by directly calling a callable function? Docs provide a sample only for Realtime Database. I was wondering if the same can be done with Firestore (without using the Firestore triggers).
@artemzhuravlenko9955
@artemzhuravlenko9955 5 жыл бұрын
Thanks for evеrythin. I spend all-day to saw that serious video. It was great!
@FredYang
@FredYang 4 жыл бұрын
The cleanUpReview can be deployed to more than two instances (two container), will that two instance handle the update at the same time? This could cost race condition or waste of processing, ist that right?
@manish76345
@manish76345 4 жыл бұрын
Sir, recently I used firebase authentication and hosting for my angular application they are simply awesome. I am also developed backend for that angular app using spring frame work. I wanna know how can use my backend rest api for my application
@aytunch
@aytunch 5 жыл бұрын
Hi Todd, Great video. I have a question: Why are always "triggers" shown when teaching about Cloud Functions? I always thought carrying all the client code related to Firebase and db logic to Cloud Functions would be very nice idea. It would keep the client code clean, make us not worry too much about safety rules. And we would be able to make updates without a client update if needed. That's why I am implementing my App to use http requests to Cloud Functions(custom cloud functions). But since it is never been promoted in your videos, I am a little skeptical. If I do that, would I have problems with Performance(cold start) or pricing? or something else? what are the pros/cons of carrying all Firestore crud and logic to Cloud Functions from client? Thank you very much
@nerdswhosell
@nerdswhosell 5 жыл бұрын
Just to let you know... I have done exactly what you said. I created an API using Cloud Functions for an app of mine. I did it because I wanted to keep Firebase (except auth) out of my client bundle so it’s small. So I make http requests to do all of my database work and some other things too. I have not noticed any speed issues so far in production. It actually is surprisingly fast... even when I tested on bad connections and old phones.
@aytunch
@aytunch 5 жыл бұрын
@@nerdswhosell Thank you very much for the valuable input. I am relieved now:) what about pricing though? Do you think it is worse compared to using Firestore through the client directly? Edit: I am using Flutter
@nerdswhosell
@nerdswhosell 5 жыл бұрын
Cool. I want to get deep into Flutter this year. But to your question... I don’t know. I mean you are adding another service into the mix so you will have to pay for the function invocations. But it depends on how big your app will be. I pay for the Flame plan and I think I get many millions of invocations which I don’t think my app will hit for a while. I am building a more robust version of my app which is a paid version and what I plan on doing for this one is only use functions for the small tasks like Todd gives examples of. For my API I am going to containerize it and use Cloud Run instead. I hope that helps in some way.
@aytunch
@aytunch 5 жыл бұрын
@@nerdswhosell Yes it helps a lot:) I wish you the best luck and success with your App. And I do think you will love Flutter even more once you get deep in to it. Right now I am struggling through deciding if I should move to Provider from Flutter_Bloc, or use them both or stay with Bloc. State management in my opinion is the part of Flutter which needs most interest by the community for it to become a leader in industry.
@ahmdevelopments49
@ahmdevelopments49 3 жыл бұрын
guys i am having cold start issue. my cloud functions need 5-8+ seconds for booting up the first time a user calls them. the second time it goes faster(0.2sec) any idea on how to avoid this cold starts?
@legend_mr_wayne
@legend_mr_wayne 5 жыл бұрын
Love the video, always good to know how things work, now I understand why cold start happens
@shakeelali9418
@shakeelali9418 2 жыл бұрын
hello sir, I am using the firebase function but when I call the function which is deployed in firebase I got [Error: UNAUTHENTICATED] back in the catch block.
@justo711
@justo711 5 жыл бұрын
I love using Firebase Functions!
@LifeCasts
@LifeCasts 5 жыл бұрын
How can I create a like system using Firestore. But Firestore allows one write per second per document? And is it good to use Firestore to store likes count and list of users who like because Firestore charges on Write and Read
@KHAGAPATIMAHANTA
@KHAGAPATIMAHANTA 5 жыл бұрын
#AskFirebase How to query Firestore documents startsWith a string like realtime database ?
@Exploremore658
@Exploremore658 4 жыл бұрын
So basically you need to learn typescript before being able to use cloud functions, right? How long would it take me to learn it in that case? Thanks
@Exploremore658
@Exploremore658 4 жыл бұрын
@@ToddKerpelmanCorp Thank you Todd. It's just that from now. I just know kotlin. So if I want to use cloud functions I will have to learn either type script or Javascript for creating advanced features in my app.
@juanpablogaticaaguero1948
@juanpablogaticaaguero1948 4 жыл бұрын
Where can I find the next video?? I need to know these 5 common scenarios! :)
@juanpablogaticaaguero1948
@juanpablogaticaaguero1948 4 жыл бұрын
@@ToddKerpelmanCorp Niiice! thanks for the reply!
@paulbartels8775
@paulbartels8775 4 жыл бұрын
Thanks Todd from 2020!
@DKPstudios
@DKPstudios 5 жыл бұрын
Can you quit Firebase, and get rid of Firebase, and just start an entire department for training and education - train on Oracle, Microsoft's services, Google services - you guys' videos and your documentation is decades better than anything else out there - literally love you guys and love the offering. Been using since 2013! I do have a quick question though - do you know or can reference a video on how to use Firebase in TypeScript? My googling skills have failed me. Can't seem to import firebase.
@xerzes5900
@xerzes5900 5 жыл бұрын
Have you found any thing yet?
@DKPstudios
@DKPstudios 5 жыл бұрын
XERZES from what I found you need a module framework (like Angular) to use it. If I figure out how to do it without, I’ll post here.
@xerzes5900
@xerzes5900 5 жыл бұрын
@@DKPstudios Thank you very much
@Arystosedesss
@Arystosedesss 5 жыл бұрын
Ok so we have some quirks like functions can be called twice or with different ordering. Previously you removed flame plan, so any bigger mistake during development stage can kill our project and finance too (without any possibility to easy STOP it if there is big issue with for example infinite loops. No, alerts are not a solution..). Awesome.. depression and neurosis, we are waiting! :/
@LetsStartABusiness
@LetsStartABusiness 4 жыл бұрын
This guy is a genius!
@RafaelCalhau
@RafaelCalhau 4 жыл бұрын
Excellent explanation, thank you man!
@lyjuvadassery8206
@lyjuvadassery8206 4 жыл бұрын
Hello Team Firebase! On the Cloud Firestore page of the Firebase Console, I don't see a way to start creating a Firestore database. The Create Database button has been replaced with the following text: "Ask a project owner to set up Cloud Firestore before using it for the first time"
@motelejesuolamilekan1950
@motelejesuolamilekan1950 4 жыл бұрын
Can one use cloud functions with realtime database?
@DodaGarcia
@DodaGarcia 3 жыл бұрын
"I have so much to live for, ᵒʳ ᵃᵗ ˡᵉᵃˢᵗ ᵒⁿᵉ ᵈᵃᵗᵃᵇᵃˢᵉ ᶜᵃˡˡ'ˢ ʷᵒʳᵗʰ" 😂😂😂
@cullenharris1837
@cullenharris1837 Жыл бұрын
This man is a national treasure
@makemypetgamedevprocess6475
@makemypetgamedevprocess6475 3 жыл бұрын
Love these explanations
@alvinvin00
@alvinvin00 5 жыл бұрын
4:57 me_irl, so can i make Cloud Function using Dart?
@alvinvin00
@alvinvin00 5 жыл бұрын
@@ToddKerpelmanCorp too bad it's not natively supported :(
@gregcounts4021
@gregcounts4021 4 жыл бұрын
@@alvinvin00 I agree. Given Dart's foundation support for Flutter I can only hope that some Googlers are hard at work on this issue.
@jonathangamble
@jonathangamble 4 жыл бұрын
@firebase If functions could accidentally run twice, wouldn't that mess up any counters?
@Operaatoors
@Operaatoors 4 жыл бұрын
Why can't I give two or more likes :D If this would be a Medium, I would Clap my trackpad out :D Great presentation!
@feryu17
@feryu17 4 жыл бұрын
im new using cloud functions in JAVA environment but recently my cloud function kill the process before the job is finishes, I know the support for java still in betha, but it would be nice if we have something like promise in javascrip, I hope see something like that in the future.
@colekillian00
@colekillian00 4 жыл бұрын
Awesome video. I'm trying out typescript with your suggestion!
@nikolavukovic5678
@nikolavukovic5678 2 жыл бұрын
this is great! you guys rule!
@costanj
@costanj 5 жыл бұрын
Wait a sec, doesn't serverless computing means I don't pre-allocate the number of resources I need from the could so I don't have to worry about scaling and maintaining the server? Sure security and deployment speed are nice when running our code on the server-side, but I'm still using the exact resources I need when running the code on the client-side.
@costanj
@costanj 5 жыл бұрын
@@ToddKerpelmanCorp oh right thanks :)
@pratyakshyt
@pratyakshyt 3 жыл бұрын
Awesome videos
@Firebase
@Firebase 3 жыл бұрын
Glad you like them!
@ninjaduck3534
@ninjaduck3534 4 жыл бұрын
Breathin heavy for your next video 🥵
@jerelix
@jerelix 5 жыл бұрын
I used dart for my firebase functions actually. Works great with flutter😏
@gregcounts4021
@gregcounts4021 4 жыл бұрын
Pls elaborate, this would be my preferred approach too. Thanks.
@supercheapme
@supercheapme 2 жыл бұрын
wanted to learn more about infinite loops and now im stuck in one, why does this always happen to me??
@false-prophet-abc
@false-prophet-abc 2 жыл бұрын
I believe Cloud Functions as of February 2022 supports Python? Could you please confirm?
@techsapphire
@techsapphire 4 жыл бұрын
Urgent question, Can I connect firebase without node or react just from plain javascript page?
@jakubwegrzyn3798
@jakubwegrzyn3798 4 жыл бұрын
Yep, you can
@techsapphire
@techsapphire 4 жыл бұрын
@@jakubwegrzyn3798 can you share any sample please
@jakubwegrzyn3798
@jakubwegrzyn3798 4 жыл бұрын
@@techsapphire There are plenty of examples available on web, even on their website
@sosaysthecaptain5580
@sosaysthecaptain5580 Жыл бұрын
I like how censorship is the example use case.
@SolidousMdz
@SolidousMdz 4 жыл бұрын
Hey, where is the "next video"?
@thiagoviana1641
@thiagoviana1641 4 жыл бұрын
Waiting for Cloud function cases uses...
@mendorock
@mendorock 4 жыл бұрын
Where is the code?
@marlonlom
@marlonlom 5 жыл бұрын
reuploaded?
@_GabrielNexT
@_GabrielNexT 5 жыл бұрын
New
@julioconradomarinardila3269
@julioconradomarinardila3269 6 ай бұрын
Excelente herramienta
@SergeyPatuk
@SergeyPatuk 5 жыл бұрын
Make unity plugin for cloud firestore !!!
@brianne2579
@brianne2579 2 ай бұрын
casually putting a cupcake at your database
@jeromearenas4857
@jeromearenas4857 3 жыл бұрын
That hate javascript joke got me haha
@LarsRyeJeppesen
@LarsRyeJeppesen 4 жыл бұрын
Annnnnnnnnd Functions as backend only works in the US.. still... unusable for non US hosting
@fernandoluis53
@fernandoluis53 4 жыл бұрын
Even in a politically-free, comp sci tutorial, Google is teaching how to censor words 😂😂😂😂😂
@ghazi1832
@ghazi1832 10 ай бұрын
hmm, gud vid
@lucasferrero123
@lucasferrero123 4 жыл бұрын
So funny!
@miguelalzate1142
@miguelalzate1142 4 жыл бұрын
hahahaha how can i get a t-shirt firebase?
@stukagamerxtreme
@stukagamerxtreme 2 жыл бұрын
👍🏻
@ctw-home
@ctw-home 5 жыл бұрын
ahh new 16"
@feiwhang
@feiwhang 3 жыл бұрын
Is it weird that I watch this for entertainment purpose?
@MaisUmSomente
@MaisUmSomente 3 жыл бұрын
recomendo AWS
5 uses for Cloud Functions | Get to know Cloud Firestore #12
19:47
How do Transactions Work? | Get to know Cloud Firestore #8
16:10
Serverless Computing in 100 Seconds
16:46
Fireship
Рет қаралды 297 М.
Cloud Firestore Data Modeling (Google I/O'19)
40:37
Firebase
Рет қаралды 175 М.
100 Firebase Tips, Tricks, and Screw-ups
24:31
Fireship
Рет қаралды 193 М.
Getting started with Cloud Functions
19:26
Firebase
Рет қаралды 58 М.
Security Rules! 🔑 | Get to know Cloud Firestore #6
22:39
Firebase
Рет қаралды 278 М.
GOOGLE CLOUD FUNCTIONS TUTORIAL FOR BEGINNERS USING NODE.JS
42:34
How To Avoid Big Serverless Bills
26:54
Theo - t3․gg
Рет қаралды 86 М.
FlutterFlow Cloud Functions: MUCH More Powerful Than You Think
33:10