No video

To Realtime or Not? | Get to know Cloud Firestore #10

  Рет қаралды 116,503

Firebase

Firebase

5 жыл бұрын

Should you use realtime listeners in Cloud Firestore, or one time-fetch calls? In this episode of Get To Know Cloud Firestore, Todd explains the difference between these two methods for fetching data, what kind of impact they would have on your app's performance and battery usage, and how to structure your app to take advantage of a real-time data listener.
Get Realtime Updates → goo.gle/2Y54Enl
This video is also subtitled in Chinese, Indonesian, Italian, French, German, Japanese, Korean, Portuguese, and Spanish.
More episodes on Cloud Firestore → goo.gle/Cloud-...
Subscribe to Firebase → goo.gle/Firebase

Пікірлер: 81
@BreakingBarriers2DIY
@BreakingBarriers2DIY 3 жыл бұрын
Every time I see this gentleman on a video thumbnail...I know I'm in for an enlightening experience full of understanding of the problems and worries that I have.
@toastrecon
@toastrecon 5 жыл бұрын
These videos are invaluable. Thank you for producing such clear content!
@AnimateLogo
@AnimateLogo 5 жыл бұрын
The Reddit example for one-time fetch call was spot on. I kept trying to find a use case for it the entire video. Thanks, Todd!
@Mambo56783
@Mambo56783 5 жыл бұрын
On the other hand. Now I would like to see Reddit in real time.... at least to see how irritating it is. But having some sense of how much is currently going on in real time would be interesting.
@Kevin-yw5qr
@Kevin-yw5qr 3 жыл бұрын
@@Mambo56783 you can now, and its just as annoying as you guessed.
@willroberts1891
@willroberts1891 Жыл бұрын
😮
@Apoka03
@Apoka03 4 жыл бұрын
Woah dude I had totally stopped using real-time because I had freaked out when I saw many documents get returned every time a single one of them had changed. This sure clarifies things lol.
@NGC7603
@NGC7603 4 жыл бұрын
The most clear and informative video I've seen in a long time, please keep making these!
@justdavebz
@justdavebz 5 жыл бұрын
great high-level explanation
@flonmackenzie2876
@flonmackenzie2876 5 жыл бұрын
Any more of these videos by Todd coming out? They are great. Keep em coming.
@codinginflow
@codinginflow 5 жыл бұрын
That was very enlightening, thank you
@tanaykamath1415
@tanaykamath1415 4 жыл бұрын
yeah ikr!!,your channel too!
@rckahale
@rckahale 3 жыл бұрын
Great to find you here Sir!
@tuyenvokhac7943
@tuyenvokhac7943 3 жыл бұрын
Idol
@roycelennox9211
@roycelennox9211 3 жыл бұрын
@Hector Kyson You are welcome =)
@DheerajRijhwani
@DheerajRijhwani 5 жыл бұрын
Need more videos on 🔥 ☁️ firestore database structure and querying.
@orange_machine264
@orange_machine264 5 жыл бұрын
This was a great video! Very helpful. Also, I need to buy one of those shirts
@JonatanWitoszekk
@JonatanWitoszekk 4 жыл бұрын
Awesome video! Made me completely rethink caching solution used in my app.
@video.jomichaelis
@video.jomichaelis 5 жыл бұрын
This was very understandable! Thanks👍🏼
@kevinliu6002
@kevinliu6002 5 жыл бұрын
Robin Williams, Software Engineer at Google. He's back!!!!!!
@SociedadAndroide
@SociedadAndroide 5 жыл бұрын
Awesome video Todd
@egopak
@egopak 3 жыл бұрын
I had to come back to this video a couple of times to finally make up my mind about Realtime vs. Not
@tilakmadichettitheappdeveloper
@tilakmadichettitheappdeveloper 4 жыл бұрын
9:12 it happens "automagically"
@DKPstudios
@DKPstudios 5 жыл бұрын
Will Firebase ever support indexing and query or will we always have to use a third-party integration to create a search feature in our apps. It's easy enough to break a title of a book or something in an array and perform a query on that, but searching for a specific word in a description is expensive because you either have to break the description up into an array, or use one of these third parties.
@Jason-ul9tq
@Jason-ul9tq 5 жыл бұрын
Automagically does sound impressive! 9:12
@kpertsev
@kpertsev 5 жыл бұрын
en.m.wikipedia.org/wiki/Jargon_File
@immortaleternal5125
@immortaleternal5125 5 жыл бұрын
I'm in, i am loving it and all that... but i often find myself unable to convince my employer to use firebase because i fail to answer all their "What if?s", which are mostly related to server cost and what happens when exceeding the free plan's limits.
@Kubaguette
@Kubaguette 3 жыл бұрын
I love this guy, I love firebase, I would like to hug him sooo much and thank the team behind firebase haha :)
@rupayanc
@rupayanc 4 жыл бұрын
hi ... is there any king of logger which i can use to monitor the no of reads and writes in firestore?
@rckahale
@rckahale 3 жыл бұрын
I love how i get to understand concepts & laugh at the same time.
@ectoid6316
@ectoid6316 5 жыл бұрын
Any idea if there is support for Go, there were a few samples that I found, which seemed to be still in development. However the website says // Snippet coming soon. Any info on the matter ?
@baixartv
@baixartv 4 жыл бұрын
Another level of explanation. Thanks!
@jesselima_dev
@jesselima_dev 5 жыл бұрын
I love these videos. Very technical and fun. :D
@ProfessionalTycoons
@ProfessionalTycoons 3 жыл бұрын
such a good series of video
@_dinesh
@_dinesh Жыл бұрын
Thank you for the explanation. The question is.... Under the hood does firestore use websockets to push the data to the client? Or is it GRPC.. The term listener seems pretty generic.
@lokisingh9944
@lokisingh9944 5 ай бұрын
he's really good
@taufeekahmadkhan3953
@taufeekahmadkhan3953 6 ай бұрын
Does this liveSync works on same thread or different thread?
@SteveKovacs
@SteveKovacs 7 ай бұрын
This seems perfect for my use case until he brought up pagination/infinite scroll example. Can someone explain why that would make a difference? Or direct me to the explanation of that? Thanks ahead of time.
@ginger-viking
@ginger-viking 4 жыл бұрын
I love these videos
@AmitJayant
@AmitJayant 3 жыл бұрын
Very informative video. Thanks. Btw... where can i get that t-shirt?
@laudijksterhuis
@laudijksterhuis 2 жыл бұрын
Automagically... love it 😂
@tockra95
@tockra95 2 жыл бұрын
How high is the traffic if there is no update in the collection? Does a onSnapshot generates traffic throw ping and some other internal reasons?
@magnet1te
@magnet1te 5 жыл бұрын
Fantastic video series!!! Now I want to do realtime in Flutter but I have a problem... Flutter Firestore plugin has no 'onSnapshots'. It has a 'snapshot' and a 'listener'. 'Snapshot' does not seem to start the listener. And theFlutter widget StreamBuilder seems to manage listening, turning it on and off. Have I misunderstood it all or is it a simple workaround?
@basketballico508
@basketballico508 5 жыл бұрын
Hi, if I write data offline, this update the cached data and then sync with server, but when is offline the user can write data that break the security rules and the cached data is wrong 😞, when is online the new sync remove this wrong data, but I don't like this :(, I want to show also a permission denied error when is offline
@AnimateLogo
@AnimateLogo 5 жыл бұрын
Todd explained a similar scenario in another video. Look it up.
@DenisTRUFFAUT
@DenisTRUFFAUT 5 жыл бұрын
Good point. Validating some rules offline could be possible with a strong CSP (ensuring no JS alteration on client side), but to really evaluate rules you would have to download the rules validator (I mean, js files are already super fat, nearly 1 Mb). Plus, you still won't be able to validate rules that make database reads ('cause you are offline)
@8Kexperience
@8Kexperience 4 жыл бұрын
Awesome explanation! Quick question: realtime make sense when multiple clients working on same data, realtime is keeping everything synced. What about single device, when I call set or update on same client/browser tab I get the update too. Is it costing me extra read.
@flechs-software
@flechs-software 4 жыл бұрын
Find an answer on this?
@8Kexperience
@8Kexperience 4 жыл бұрын
@@flechs-software nope
@flechs-software
@flechs-software 4 жыл бұрын
@@8Kexperience FWIW: I found a relevant SO question here: stackoverflow.com/questions/55919435/do-local-writes-to-firebase-rtdb-or-firestore-with-attached-listeners-cost-a-rea But I don't think the answer is correct :/
@8Kexperience
@8Kexperience 4 жыл бұрын
@@flechs-software :'(
@manjunathpatil2489
@manjunathpatil2489 3 жыл бұрын
Tq u sir u saved my week
@EnglishTurkishExpert
@EnglishTurkishExpert 3 жыл бұрын
Any example (in java) to use addSnapshotListener with LiveData? I am trying to observe when and if data changes in FireStore database and failing miserably. There is almost no examples on the net. I found a few but they are in Kotlin, which I have no idea how to convert them into Java code.
@inaglimpse
@inaglimpse 4 жыл бұрын
Thanks for the great content. A question: does realtime listeners will be triggered on changes to subcollections? I have an issue but don't know why my listener is not triggered.
@sushantchandla
@sushantchandla 4 жыл бұрын
Thanks ... 😄😄😄😄
@guasaentertainment9694
@guasaentertainment9694 3 жыл бұрын
But if I need to make a call in real time within another. For example, I want the comments to be heard when new Posts are added and in turn I want the comments of each post to be heard in real time. Thanks
@matthiasgehrmann1573
@matthiasgehrmann1573 5 жыл бұрын
thx !
@shubhamsharma0099
@shubhamsharma0099 4 жыл бұрын
pls tell me that how to update OR send player vectors (movements) to my real time database in firebase asa i'm trying to make a simple multiplayer game using firebase RTDB and also how top get that movement value back to show other players in realtime? pls help there i no such tutorial for this
@guanacodevs
@guanacodevs 5 жыл бұрын
Automagically!!!
@duanehodges3146
@duanehodges3146 4 жыл бұрын
How do I only get new documents from firebase using .onSnapshot when used with .limitToLast for pagination I'm trying to implement a chat app with infinite scroll using Firebase. The problem is that if I don't empty my messages array when a new message is added then they're duplicated. If I empty the messages array then it doesn't keep the previous messages.
@bazoozoo1186
@bazoozoo1186 5 жыл бұрын
what is name of this guy? I want to search and watch all his videos. there is no name even at the description :(
@MrDasebasto
@MrDasebasto 4 жыл бұрын
Todd Kerpelman
@intentionalvideos456
@intentionalvideos456 4 жыл бұрын
Hi Guys, This one time fetch means normal http calls we will be making right the real time means calls through cloud class , Am i correct ?
@JnanadasKKunjan
@JnanadasKKunjan 5 жыл бұрын
thanks
@godrugal1
@godrugal1 5 жыл бұрын
in android for example, if I have a real-time listener in an activity A, and if I went to activity B then I went back to activity A. will Activity A read all the data again or will it read all data from cache and only get updates from the updated documents? from what I know is that it will read all data again is that right?
@ranjeetkumaryadav3978
@ranjeetkumaryadav3978 3 жыл бұрын
​@@ToddKerpelmanCorp Can you explain "ton of time elapsed"? If user navigates 10 times between going from A to B to A in span of two mins,then how many times it will get the all data gain from server.
@Kevin-yw5qr
@Kevin-yw5qr 3 жыл бұрын
10:50 speak of the devil, Reddit just rolled out that feature and its incredibly annoying.
@aminelouni
@aminelouni 3 жыл бұрын
*The one million dollar question :* How to paginate in real time
@seccat
@seccat Жыл бұрын
OK, let's do this... Leroy Jenkins!
@el7284
@el7284 3 жыл бұрын
Amazing, but still way too expensive
@lidory98
@lidory98 3 жыл бұрын
Anyone knows this guy name by any chance?
@yeilmusic
@yeilmusic 4 жыл бұрын
so i need remove listener for avoid 30 minuts offline .. :/ ?¿?¿
@planktonfun1
@planktonfun1 Жыл бұрын
You don't have to sell it to me, I already bought it
@lukecross5439
@lukecross5439 4 жыл бұрын
Firestore is better than Realtime Database in everything?
@afj9966
@afj9966 4 жыл бұрын
9:11 auto-magically
@AymanShaabanELsayedDEVELOPER
@AymanShaabanELsayedDEVELOPER 4 жыл бұрын
Hi, @Todd Kerpelman Please help me,i need to support my firestore java chat app with fcm Give me an link that helps me, Thanks
@too-many-phils
@too-many-phils 9 ай бұрын
realtime UX is much more complicated than this presumes. I strongly disagree it should be the default experience
@modoestudiopa2062
@modoestudiopa2062 2 жыл бұрын
This was useless for me, not that the information wasn't well presented, or the info itself was useless, the useless part is that seeing that this is in the page of the documentation for the topic, I was expecting at least a little bit of code explanation
@hawarhekmat1174
@hawarhekmat1174 2 жыл бұрын
Flutter and firebase the magic 🪄✨🪄✨
@Firebase
@Firebase 2 жыл бұрын
We're so glad you enjoyed the video, Hawar! Check out more episodes on Cloud Firestore here: goo.gle/Cloud-Firestore 😎
@hawarhekmat1174
@hawarhekmat1174 2 жыл бұрын
@@Firebase thank you so much, I'm enjoying it more than anything.
How do Cloud Functions work? | Get to know Cloud Firestore #11
18:21
Cloud Firestore Data Modeling (Google I/O'19)
40:37
Firebase
Рет қаралды 172 М.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 9 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 101 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 39 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Firestore Data Modeling - Five Cool Techniques
11:44
Fireship
Рет қаралды 254 М.
Is Supabase Legit? Firebase Alternative Breakdown
8:16
Fireship
Рет қаралды 348 М.
How Do I Paginate My Data? | Get to know Cloud Firestore #7
10:16
What is FireStore and Real Time database Vs FireStore
9:35
Hitesh Choudhary
Рет қаралды 58 М.
Security Rules! 🔑 | Get to know Cloud Firestore #6
22:39
Firebase
Рет қаралды 270 М.
Faster Firestore via Data Aggregation
9:28
Fireship
Рет қаралды 61 М.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 9 МЛН