NEW Firebase Features Just Dropped

Sdílet
Vložit
  • čas přidán 18. 10. 2022
  • Firebase just announced a bunch of big new features like SSR hosting for Next.js, aggregation queries for Firestore, an extensions marketplace, and more in at Firebase Summit 2022.
    Become a PRO member at fireship.io/pro to see these features in action.

Komentáře • 194

  • @jjaaccekk
    @jjaaccekk Před rokem +636

    am I the only one who thinks that Jeff has taught a text to speech model his voice and he has been using that in his videos for some time?

  • @Max-dd3eb
    @Max-dd3eb Před rokem +292

    For those wondering about the cost of the count() firestore function, it’s going to cost 1 document read for every 1000 documents the function reads, so it’s very cheap to use. If your wondering where I found this, a firebase developer answered this question during a q&a at the summit event

  • @sidforreal
    @sidforreal Před rokem +40

    Omg I remember 4 year ago creating a project and could find any simple way to count documents. Can’t believe they took so long for this 😅

  • @wlockuz4467
    @wlockuz4467 Před rokem +7

    Note: Firebase functions are not included in the free plan anymore, you still get 2 million function invocations for free but you have to upgrade to their pay as you go plan. You can't set a limit on the number of invocations, you can only set notifications for a certain $ budget.
    So if you wrote some bad code, your card might rack up some serious charges.
    One such example is having a firestore trigger on a document update, but this trigger modifies the document again. This type of pattern will cause an infinite chain of function invocations.

  • @shep9194
    @shep9194 Před rokem +39

    The collection size is awesome, firestore finally learned how to count

  • @shadown1992010
    @shadown1992010 Před rokem +24

    During #AskFirebase they said that COUNT() would cost one read per 1000 documents!

  • @YuriG03042
    @YuriG03042 Před rokem +10

    Counting documents is literally the biggest reason why i use MongoDB over Firebase on my projects. Implementing pagination without knowing your document count is hell and I've implemented several ways to circumvent it (even writing to a JSON file every time a document is deleted/created!). This certainly levels the playing field now.
    Hopefully the aggregation queries also allow us to chain filtering, because that's also something that MongoDB does better.

  • @user-rg1jp2us4o
    @user-rg1jp2us4o Před rokem +11

    I'm a bit disappointed they still didn't add search. Google, the search engine company, is yet to add search to firebase.
    I do see potential with extensions though, maybe the people could provide what google seemingly can't.

    • @John-qt6qk
      @John-qt6qk Před rokem

      And they won't son, You betta go to MongoDB I just did

  • @BaldeepSingh24
    @BaldeepSingh24 Před rokem +8

    When i used Firebase for a project, i found it to be so easy and cool. Like real time updates, authentication and so much more that i wondered why someone would write a backend for a small application but then i found that it couldn't even count ffs. Atleast that is no longer an issue.

    • @alb12345672
      @alb12345672 Před rokem +2

      Could get extremely expensive too. We replaced it with Postgres and websockets. Some things it just couldn't do for us.

  • @DominikGiroux7
    @DominikGiroux7 Před rokem

    Thank you so much! I hadn't had the time to watch the summit

  • @elijahstorm9740
    @elijahstorm9740 Před rokem +4

    Literally so awesome! These features have been something I wanted for so long!!!

  • @toastrecon
    @toastrecon Před rokem +3

    Very cool! Looking forward to the new courses.

  • @JeanDidier
    @JeanDidier Před rokem +3

    Support for Next is huge addition

  • @himbary
    @himbary Před rokem

    Thanks for keeping us updated Jeff

  • @ricko13
    @ricko13 Před rokem +5

    Ok but still no default full text search without extensions...

  • @fourlokouva
    @fourlokouva Před rokem

    jam packed with info!!! the only channel I actually slow down to 0.75x

  • @ourtrishan8884
    @ourtrishan8884 Před rokem +1

    Love from Kolkata, India. You are awesome Jeff! ❤️❤️❤️

  • @DanielTames
    @DanielTames Před rokem +1

    Amazing!!
    each time getting better and better

  • @shortkeys73
    @shortkeys73 Před rokem +1

    Go to 1:14:00 of the Summit, I asked the exact question about the cost of aggregation queries. They said you get charged 1 read per 1000 documents counted.

  • @volmitsoftware7986
    @volmitsoftware7986 Před rokem +17

    Blocking as in a non-blocking event.
    The blocking function has nothing to do with rejecting signups, it has to do with (blocking) the "process" of signing up to run your function before the user is fully created instead of listening on event which would happen AFTER the user signs up. This essentially allows you to ensure all docs are created before the user finishes signing up.

    • @benaloney
      @benaloney Před rokem

      Pretty sure this is incorrect ^
      They're described as running synchronously during the signup flow, and if you throw a specific error, it will block the signup, thus rejecting...

    • @lizerd
      @lizerd Před rokem +2

      @@benaloney They’re talking about reasoning behind its name, not what it can also do by design. Synchronous call = Blocking.

  • @nikolazivkovic5707
    @nikolazivkovic5707 Před rokem

    i really apreciate your help with dowloanding this software

  • @itssidhere
    @itssidhere Před rokem +3

    The main problem in my opinion about ttl is you need an explicit timestamp for the expiration date. When you use server timestamp you can't really add a duration on FieldValue, you have to rewrite the expiration date Incase you use FieldValue. It would be great if they gave an option to specify a timestamp and a duration, so that we don't have to add a separate timestamp

  • @gducrash
    @gducrash Před rokem +3

    This is one of the bases of all time!!!1

  • @Tonaldo90
    @Tonaldo90 Před rokem

    This even fortifies my earlier thought that this channel is just disguised Firebase ad channel

  • @drtron1507
    @drtron1507 Před rokem

    Great compilation!

  • @dinysanchez
    @dinysanchez Před rokem

    wow this is some powerful stuff. I’m so excited! Always a fan of firebase and fireship. Jeff please make a video of Angular universal and firebase hosting please please 🙏.

  • @flonmackenzie2876
    @flonmackenzie2876 Před rokem +2

    OMG the hours I have spent writing and testing count functions. Finally!!!

  • @user-jchjkitv77896
    @user-jchjkitv77896 Před rokem +2

    Wow this is the update I have been waiting for

  • @stockiten3369
    @stockiten3369 Před rokem

    I can't believe how much time I invested in writing my pagination logic because the query does not have a count method to get the query length in total! FINALLYYYYYY!! data.count() has been implemented!
    thank you jeff for the amazing video
    thanks firebase for the hard work

  • @thomas6502
    @thomas6502 Před rokem

    (One of my favorite walled gardens.)

  • @anweshandev
    @anweshandev Před rokem +2

    As soon as I joined the firebase summit, I knew Jeff's new video 😄

  • @forno_nicolas
    @forno_nicolas Před 11 měsíci

    1:33 I heard that 1000 "counts" equals 1 document read on Firebase CZcams channel...
    Note: the price is not fractional... If you count 50 "counts" in a query, that equals 1 document.

  • @hyderoxxx
    @hyderoxxx Před rokem +2

    Finally I can get rid of my "counters" collection 😱

  • @rafaelzasas9421
    @rafaelzasas9421 Před rokem +2

    Support for SSG and SSR hosting channels is also on the way. Stay tuuuned

  • @RoystonMalcomber
    @RoystonMalcomber Před rokem +1

    COUNT! COUNT! COUNNNNNNNNNNTT!!!!
    There's something really wrong, when in 2022, I'm excited about a document store offering count functionality.

  • @chinmayghule8272
    @chinmayghule8272 Před rokem +1

    I didn't understand most of it but all this sounds pretty cool. 👍

  • @tntg5
    @tntg5 Před rokem

    I can finally get rid of some machinery I have put in place that increment/decrement a value for each collection when I create or delete data.
    The question is, will we be able to query a collectiom with ordering and pagination? Like get from XXX, order by ZZZ desc, page 0, limit 100 ?

  • @andreschubert4400
    @andreschubert4400 Před rokem +2

    Thought about using supabase for my next project but these changes are awesome! So I might stick with firebase 🎉

    • @charlesm.2604
      @charlesm.2604 Před rokem +1

      Document collection count is billed 1 read by 1000 documents.
      Self host supabase.

    • @poolkrooni
      @poolkrooni Před rokem

      @@charlesm.2604 Self-hosting supabase is pretty limited compared to the service offering :/

  • @ludologian
    @ludologian Před rokem

    And I will see you in the nex ....
    Going fast

  • @BlaQsheeeP
    @BlaQsheeeP Před rokem

    "Laughs in Django"

  • @luichyluichy
    @luichyluichy Před rokem +1

    Nice!

  • @maskman4821
    @maskman4821 Před rokem

    Awesome 😍

  • @karuppusamy.d
    @karuppusamy.d Před rokem +1

    Please make a video about how to host the next.js app on firebase with advantages and disadvantages of both

  • @temptrue3322
    @temptrue3322 Před rokem

    all features are tightly coupled and price tiers on each one of them

  • @NinjaNuggets21
    @NinjaNuggets21 Před rokem

    I’d really love a UI that looks like an excel sheet. Supabase seems to have this.

  • @desirechiduku964
    @desirechiduku964 Před rokem +2

    😅quick question how do you manage 2 Accounts + a school?

  • @_vicary
    @_vicary Před rokem

    Finally a count? I feel lucky for leaving it alone all these years.

  • @manunowo214
    @manunowo214 Před rokem

    Just simply put the code, it works! thanks!

  • @pendragonscode
    @pendragonscode Před rokem

    hell that's cool!

  • @rubenheymans1988
    @rubenheymans1988 Před rokem

    public extensions is huge ! nice updates however no full text search too bad

  • @wenxuanchen4694
    @wenxuanchen4694 Před rokem

    Actually huge update

  • @yoshcode
    @yoshcode Před rokem +7

    This is cool but what I really want from firebase is just better performance. The bundle size is too big and should be even more modular. It adds too much overhead to your Lighthouse performance scores, even when you are using the latest versions of firebase/firestore

    • @beyondfireship
      @beyondfireship  Před rokem +19

      I'm using Firebase on fireship.io and have a smaller bundle than hello world react. The key is to split firestore from the bundle if possible

    • @Max-dd3eb
      @Max-dd3eb Před rokem +4

      Yeah the size of the SDK is huge, but there are ways around it. First, you could use the firebase lite sdk for a smaller size but less features. Or like Jeff said, use dynamic import for the firebase functions/modules needed. If your using nextjs you can create a firebase context provider, wrap your app in it and dynamically load the provider. Add a hook to the data you want from the provider and bam, the code isn’t part of the initial bundle and you can use the hook anywhere in the app to get your db/app data you want without extra size

    • @hi9313
      @hi9313 Před rokem +1

      You can lazy loan both firestore and firebase. It's a pain still tho that they have not got the bundle size down over the years. I tried different solutions, and deferring both with lazyloader is the key to getting perfect lighthouse scores. Using nextjs to build static means I can get homepage loading instantly, and then by the time user navigate to another page firestore is up.

  • @core-hacked
    @core-hacked Před rokem

    0:44 there is a typo: NEXT IMAGE *OPTIMZATION*

  • @dongums
    @dongums Před rokem

    wow I just ask him in Twitter about this yesterday

  • @ajfalo-fi3721
    @ajfalo-fi3721 Před rokem +1

    But are those features available on the free tier?

  • @lucasgiunta8874
    @lucasgiunta8874 Před rokem +9

    Do you think the SSR hosting will be possible with Astro SSR as well ? Or it is only specific to next and angular ssr ? Like to access to the users from the astro props and share sessions you showed would be amazing.

    • @loic8939
      @loic8939 Před rokem

      i bet there will be an option to configure the deployment steps individually, don't you think?

    • @charlesm.2604
      @charlesm.2604 Před rokem

      Firestore has always had modern approaches so it wouldn't surprise me if all of this deployment stuff would be tightly integrated with the CD pipeline tools you're using.

    • @JamesDaniels0
      @JamesDaniels0 Před rokem +1

      Astro will likely be leaning on the Vite integration in the mid-term, given their (and our) roadmaps. We're closely watching what Vite's abstractions over SSR will be, once a clear pattern emerges we'll jump on it.

    • @charlesm.2604
      @charlesm.2604 Před rokem

      @@JamesDaniels0 Well wasn't Vite created after the former project that the Astro team was working on ?
      I'm pretty sure Vite started out as a continuation of Astro team's build tool for which the development got abandoned.

    • @JamesDaniels0
      @JamesDaniels0 Před rokem

      @@charlesm.2604 not sure on the history there. I’ve not followed it as closely as I should, historically speaking. I’ve been very busy on the Firebase side working on the tooling by which we can ship the integrations.
      Vite certainly seems to be taking the ecosystem by storm & making our lives easier.
      Since we’ve added first class support, any framework that uses Vite should “just work” on Firebase-even if it’s not explicitly called out.

  • @MysterCannabis
    @MysterCannabis Před rokem

    Will you update the course?

  • @danvilela
    @danvilela Před rokem

    Awesome news! Now.. if they dont mess with my firebase menu collapsing it automatically I would be really grateful!

  • @yogenp
    @yogenp Před rokem

    Finally, can deploy NextJS apps to firebase hosting.

  • @sachin_dev
    @sachin_dev Před rokem

    🔥🔥

  • @sanesanyo
    @sanesanyo Před rokem +1

    When deploying the NextJS app on Firebase with this new hosting, do API routes get deployed as well? I am not sure about it but just wondering. I have a NextJS app which I have deployed using Cloudrun but using all other firebase functionalities so it would be awesome if I can also deploy the whole thing using Firebase hosting.

    • @misterbelgic
      @misterbelgic Před rokem

      Same Q here. Did you find an answer? I tried hosting but if it deployed the API routes as well, I'm not sure how to access them..

    • @sanesanyo
      @sanesanyo Před rokem

      @@misterbelgic Nope i haven't. Did you see if it deployed those API routes as cloud functions? Could you access the API routes from your components? If not then I guess they are not deployed. My sense is that you have to deploy the API routes as cloud functions yourself and hosting bit in this case is more server side rendering of static pages. I am going to explore it more in future ans will let you know as soon as I figure it out

    • @JamesDaniels0
      @JamesDaniels0 Před rokem +1

      API routes will be deployed alongside the static content in a Cloud Function ;) Happy coding!

    • @misterbelgic
      @misterbelgic Před rokem

      @@sanesanyo I only see one cloud function which is the ssr one that's automatically generated

    • @sanesanyo
      @sanesanyo Před rokem

      @@JamesDaniels0 Thanks

  • @josemurillorios
    @josemurillorios Před rokem

    I wonder if some of these features will be available in their REST API

  • @briantep458
    @briantep458 Před rokem

    anything that sounds or looks cool will kost me money!!!!

  • @rahulsawant_pikachu
    @rahulsawant_pikachu Před rokem

    🔥

  • @DreamersLab
    @DreamersLab Před rokem +1

    search is still missing.... I thought they were gonna add it.

  • @mulwelimushiana8388
    @mulwelimushiana8388 Před rokem

    I'm disappointed that they didn't include full database search 😓

  • @matt5g
    @matt5g Před rokem

    So with the new doc count feature, I'm going to assume this will make reading a random document a lot easier, is that right or am I thinking about this wrong? Any thoughts are appreciated

    • @deneychuk1
      @deneychuk1 Před rokem

      It will make knowing how many documents in query/collection much cheaper(about 1000 times cheaper than what it has been)

  • @KartikTech2020
    @KartikTech2020 Před rokem

    i have an application built using nextjs but, i can't get currentUser on server side, in firebase docs i cant understand how to get res.locals

  • @codediporpal
    @codediporpal Před rokem

    LOL, quickly getting a count of the number of object in a collection???? It's like we're finally reinventing basic tech from 40 years ago! But hey, at least we get to deal with 20 configuration files! Progress!!!

    • @thienhuynh7962
      @thienhuynh7962 Před rokem

      To get a count in firebase requires you to iterate through the entire collection, which means 1 read per doc and it gets very expensive. Firebase’s solution is to reduce the read 1000 times less but still get the actual count of all docs in the collection if you use the count prop.

  • @azatecas
    @azatecas Před rokem +1

    firebase released all this because pocketbase had that cool eye automation

  • @adolfjamesurian6510
    @adolfjamesurian6510 Před rokem

    Is firebase hosting + nextjs with ssr free? Since it needs to run server side code will it cost price?

    • @JamesDaniels0
      @JamesDaniels0 Před rokem

      If you deploy with SSR or any other features that require a backend (e.g, Image Optimization), your project will need a payment method and will cost you money once you exceed the free tier of 2 million req/month.

  • @PubuduDodangoda
    @PubuduDodangoda Před rokem

    for for for 🤣
    Asking for for forever

  • @rea9lizer
    @rea9lizer Před rokem

    BTW now I hope Google fixes GCP web interface, it's unacceptably lagging..

  • @dani3l3_
    @dani3l3_ Před rokem

    nice

  • @misterbelgic
    @misterbelgic Před rokem

    If you create a pages/api route in Next.js, how do you access that same endpoint once it's hosted on firebase. Anyone know?

    • @JamesDaniels0
      @JamesDaniels0 Před rokem

      you can just hit the /api/*** url, if the CDN cache is missed it will fall through automatically to a backing Cloud Function

    • @misterbelgic
      @misterbelgic Před rokem

      @@JamesDaniels0 That's what I've been trying but doesn't seem to be working. I dunno if the root url is meant to be different maybe?

    • @JamesDaniels0
      @JamesDaniels0 Před rokem

      @@misterbelgic file a bug on the firebase-tools repo, happy to look into it

  • @WilliamWelsh
    @WilliamWelsh Před rokem

    Crazy that it took this long to be able to just import or export data, but also crazy that we have to go into the ugly Cloud UI app outside of Firebase

  • @duttaoindril
    @duttaoindril Před rokem

    The count function can actually get really expensive. If you have a 1000 users requesting a count of a query, and the number is greater than a 1000, like 10000 let's say, that's 10 reads per user, which means 10000 document reads per user reading a count, at ay time. Assuming an user reads a count of 1 query a day, that's 6 cents every 10 days for showing 1 number greater than 10000 to a 1000 users. If you have 10 numbers like this, that's easily 6 cents a day, or almost $2 a month. If you grow to 10000 users, that's $20 a month.

    • @euboid
      @euboid Před rokem +2

      For an app with 10,000 monthly active users, $20 shouldn’t be horribly expensive.

    • @thienhuynh7962
      @thienhuynh7962 Před rokem

      That’s kinda cheap actually…

  • @Karaku5
    @Karaku5 Před rokem +2

    SSR will also work with nuxt?

    • @JulienReszka
      @JulienReszka Před rokem

      I want to know too

    • @JamesDaniels0
      @JamesDaniels0 Před rokem

      Yes, Nuxt is a work in progress! We should be ready to deploy your apps soon

  • @AbdullahAbdullah-je4uw
    @AbdullahAbdullah-je4uw Před rokem +1

    still no support for any other language except for JS for firebase functions.

  • @user-dh1gm3kl6j
    @user-dh1gm3kl6j Před rokem

    Why are you the only one on CZcams how scale code editor enough for conveniently reading code on iPhone 7 screen?

  • @shamaldesilva9533
    @shamaldesilva9533 Před rokem +1

    Still no full text search 😖😖😪

  • @Arthur_Morgan_007
    @Arthur_Morgan_007 Před rokem

    I don't know why but my app just stopped loading just 18 hours after its first deployment. I was in a free tier.

  • @neociber24
    @neociber24 Před rokem

    Great content,
    But I'm curious about how is this channel different from fireship, because this video could be a "the code report"

  • @cryptophrenik8968
    @cryptophrenik8968 Před rokem

    I heard he coded a custom AI version of himself and flew to the Mars habitat he had remote AI powered robots building these last 6 months. He is sippin on top shelf margaritas in his BioDome reading our comments and chuckling to himself I suspect.

  • @nonstopper
    @nonstopper Před rokem

    Youre saying we get to finally leave Vercel. Thank god

  • @xDMrGarrison
    @xDMrGarrison Před rokem

    I couldn't care less about whatever the hell Firebase is, but you are hilarious so I'm just gonna watch the video.

  • @cmdv42
    @cmdv42 Před rokem

    🙌💯✨

  • @Ca-rp7bv
    @Ca-rp7bv Před rokem

    I'm waiting the next firebase update in 2028

  • @cloutdevelopers8633
    @cloutdevelopers8633 Před rokem

    Firebase is Fire, Google just fired the ship.

    • @erickheredia8910
      @erickheredia8910 Před rokem

      How so? I'm more exited by the incumbents (Supabase, Appwrite, Realm) than Firestore.

    • @cloutdevelopers8633
      @cloutdevelopers8633 Před rokem

      @@erickheredia8910 Yeah bro, do what makes you feel happy. I love firebase, especially firestore, made me more money, I have ever dream. More updates means more money

  • @itspawanpoudel
    @itspawanpoudel Před rokem

    Any one suggest me for best tutorial for firebase & React

  • @dinoscheidt
    @dinoscheidt Před rokem

    Has firebase GraphQL now? Dropped it for that reason four years ago

    • @attesilen4893
      @attesilen4893 Před rokem

      What do you mean by asking if _Firebase_ has GraphQL? Nothing is stopping you for using GraphQL in a cloud function.

  • @TheHasanJr
    @TheHasanJr Před rokem

    Vercel may go bankrupt!

  • @potsuaye69
    @potsuaye69 Před rokem

    from the start of watching fireship to now i always thought firebase was a site Jeff owned but turns out its not

  • @xylvnking
    @xylvnking Před rokem +7

    As a new dev with no budget i just desperately want to be able to set a spending limit. I know there's ways to handle it, but it's all a lot more difficult than it is to get going so makes deploying any real app a potential disaster and raises the complexity floor by a lot. I would literally just not be able to pay a large bill, so I can't take the risk that google would forgive it.

    • @TheMitchingHour
      @TheMitchingHour Před rokem +3

      I totally agree. I'd be happy to pay if I could set a limit, but without a safety net I just don't have the confidence that something won't go wrong.

    • @charlesm.2604
      @charlesm.2604 Před rokem

      Self host open sourced alternatives

    • @xylvnking
      @xylvnking Před rokem

      @@charlesm.2604 Yeah I've been looking at supabase. It's just a bummer because my needs are so simple and I have them all covered already with firebase, except being able to set that limit.

    • @xylvnking
      @xylvnking Před rokem

      @@charlesm.2604 Yeah I started asking myself the same thing. I use next which satisfied the api needs I have, and I've actually been using the Notion api recently since I already use the software a lot and have the unlimited plan. For my needs it honestly might be enough haha. I used cloudinary for a project recently too and it was great.

    • @charlesm.2604
      @charlesm.2604 Před rokem +1

      @@xylvnking I wasn't aware of the existence of Notion it seemed like a complete collaboration tool. I'll ask my team to look into it and potentially integrate it in our pipeline.
      If you're learning I'd still suggest you to mess around with back-end stuff. Just doing side silly projects like a local file streaming server, some (web)socket-involved software (chat, notification system, collaboration editing, etc...) or even just a simple social media mock-up.
      It's gonna help you a whole lot later on. :)

  • @achalxyz
    @achalxyz Před rokem

    Firebase Summit 2023: We'll be shutting down Firebase within a month.

  • @lucaban
    @lucaban Před rokem

    What about Nuxt?

    • @JamesDaniels0
      @JamesDaniels0 Před rokem

      It's on the way! Nuxt3 RC broke a couple things on us in the lead up to Firebase Summit, so we put it on the back burner until the dust settled from the launch.

  • @vsDizzy
    @vsDizzy Před rokem

    I didn't followed but I have two questions. Is DESC sort implemented already? Are awkward "shallow" security rights still there? Thanks.

  • @shateq
    @shateq Před rokem

    Jeff, you made a man out of me

  • @youcefmoulla1828
    @youcefmoulla1828 Před rokem +1

    And no FullText Search yet

    • @beyondfireship
      @beyondfireship  Před rokem +3

      I don't think it ever will natively, but there are extensions for meillisearch, algolia, and typesense.

    • @youcefmoulla1828
      @youcefmoulla1828 Před rokem

      @@beyondfireship You are right, the extensions market will change everything , thank you for reply ❤

    • @user-jchjkitv77896
      @user-jchjkitv77896 Před rokem

      What about better filters like mongo db

  • @monkaSisLife
    @monkaSisLife Před rokem

    I love all these Tools but unfortunately you can use pretty much none of them because of EU-GDPR