Firebase has SQL: Introducing Data Connect

Ғылым және технология

Learn how you can now use relational data from Postgres Cloud SQL in your client-side applications with a type-safe auto-generated SDK by using Firebase Data Connect.
Sign up for Data Connect → goo.gle/fb-data-connect
Speaker: David East
Watch more:
Check out all the Cloud videos at Google I/O 2024 → goo.gle/io24-cloud-yt
Check out out all the Firebase sessions from Google I/O → goo.gle/io24-firebase-yt
Check out all the Web videos at Google I/O 2024 → goo.gle/io24-web-yt
Subscribe to Firebase → goo.gle/Firebase
#GoogleIO
Products Mentioned: Cloud - Databases - Cloud SQL
Event: Google I/O 2024

Пікірлер: 173

  • @rahulgupta7720
    @rahulgupta7720Ай бұрын

    I cant wait for fireship take on this

  • @maheshjamdade1
    @maheshjamdade1Ай бұрын

    Great release Firebase team you are on 🔥

  • @lopsanggurung5870
    @lopsanggurung5870Ай бұрын

    In love with the new Firebase logo 😍😍

  • @corysmc
    @corysmcАй бұрын

    Firebase, you’ve done it again!! 👏👏👏

  • @guozhangliew7302
    @guozhangliew7302Ай бұрын

    Well done again David!

  • @DavidEast

    @DavidEast

    Ай бұрын

    🙏🙏🙏

  • @cristiantoma1500
    @cristiantoma1500Ай бұрын

    Sounds fantastic. Wake me up when C# is supported.

  • @otockian
    @otockianАй бұрын

    It's like some weird version of GraphQL

  • @DavidEast

    @DavidEast

    Ай бұрын

    I felt the same way at first. But the SDK generation + typesafety dev loop is so great.

  • @thomasmabika7291
    @thomasmabika7291Ай бұрын

    My goodness! Are Google Cloud pricing actually for real? Is this meant for anyone other than fortune 500 companies?

  • @AlmightyPyro

    @AlmightyPyro

    Ай бұрын

    where did you saw the prices?

  • @xelfix24

    @xelfix24

    Ай бұрын

    @@AlmightyPyro on the website in the description

  • @jonathonchambers6460

    @jonathonchambers6460

    Ай бұрын

    @@AlmightyPyro On the pricing page, it shows there is a 3 month trial and then "Google Cloud" pricing. Which links to the Google Cloud SQL page.

  • @hivepixels

    @hivepixels

    Ай бұрын

    @@jonathonchambers6460 they have a tone of different options. From $20 to $500/ month

  • @ChaseAnderson5k

    @ChaseAnderson5k

    29 күн бұрын

    You're either very poor, or looking at the wrong instance types. You can rent a SQL instance for a variety of prices. Compute I've gotten as low as like 5$ a month.

  • @aaronfree6796
    @aaronfree6796Ай бұрын

    SO EXCITED!!! Awesome job Firebase team, this is exactly what I felt like I was missing from Firebase.

  • @wobsoriano
    @wobsorianoАй бұрын

    Firebase, a supabase alternative

  • @cedricol

    @cedricol

    Ай бұрын

    Read that joke many times since Fireship made it yesterday.

  • @matthewbeardsley7004

    @matthewbeardsley7004

    Ай бұрын

    A hasura alternative...?

  • @danvilela

    @danvilela

    Ай бұрын

    @@matthewbeardsley7004 Amplify alternative

  • @dinoscheidt

    @dinoscheidt

    Ай бұрын

    A GraphQL alternative

  • @wobsoriano

    @wobsoriano

    Ай бұрын

    @@cedricol cool

  • @Mattwoods35
    @Mattwoods35Ай бұрын

    Just here to stay David is awesome

  • @atoumbrekouassi7924
    @atoumbrekouassi7924Ай бұрын

    Sounds promising ! This remember me the time Angular migrated to Typscript. GraphQL is no more dead 😅

  • @KyleWilliams
    @KyleWilliamsАй бұрын

    Impressed. Would like to see a price breakdown vs supabase now

  • @jrhager84

    @jrhager84

    Ай бұрын

    Just get Supabase. The price is astronomically different, at least based on what I looked at about 2 months ago. I doubt they've changed, and then you're in vendor lock. I'd run away from Firebase TBH

  • @hojdog

    @hojdog

    Ай бұрын

    ​@@jrhager84 I don't think so I've been using firebase for a product for 4 years and it still has lower monthly cost than Supabase's pricing. That was true also for a startup that we sold for 6 figures. I've been waiting for firebase to produce a postgres product for a while now - and have been mulling over how to move to supabase. Now that this is here, I'm much less likely to do so. Either way, you're vendor locked. Supabase may be OS but all your code is still designed for Supabase so what does it really change?

  • @dukeselwood
    @dukeselwoodАй бұрын

    This looks very interesting

  • @Z1Tracker
    @Z1TrackerАй бұрын

    Impressed !!! Love it.

  • @tom3fitzgerald
    @tom3fitzgeraldАй бұрын

    this is so amazing

  • @caeb-92
    @caeb-92Ай бұрын

    Wow now is a strong option i wish have this two years ago 😂 future looks promising

  • @mika52776
    @mika52776Ай бұрын

    love it

  • @benbowers3613
    @benbowers3613Ай бұрын

    Following a lot of the same patterns as EdgeDB, and I was just wishing there was a BaaS with a database like EdgeDB. Great stuff. Good luck making this competitively priced though

  • @nathandowner6007
    @nathandowner6007Ай бұрын

    This is going to change the game!

  • @rahulgupta7720
    @rahulgupta7720Ай бұрын

    The learning curve is a little steep for a beginner like me but I am so excited to try this out

  • @DavidEast

    @DavidEast

    Ай бұрын

    I think you'll find that it you can do quite a lot with just a little knowledge!

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    Often in engineering stuff looks more complicated than it is once you dive in and get your head around the basics. Good luck!

  • @kyngcytro
    @kyngcytroАй бұрын

    So much bleeding on the edge 😆 awesome stuff firebase

  • @matthewbeardsley7004
    @matthewbeardsley7004Ай бұрын

    Does it support GraphQl subscriptions?

  • @alexandrefaustino2448
    @alexandrefaustino244827 күн бұрын

    Love it but would love to see more features in firestore !

  • @JusticeNDOU
    @JusticeNDOUАй бұрын

    finally something useful from firebase, maybe i will migrate back to firebase once again

  • @rahulgupta7720
    @rahulgupta7720Ай бұрын

    Firebase is literally complete now

  • @friedpizza262
    @friedpizza262Ай бұрын

    AWS amplify has been doing some of these stuff, but seeing them in firebase is real cool

  • @Tonkuz
    @TonkuzАй бұрын

    The price seems very high though!

  • @rajeshpatil9884
    @rajeshpatil988419 күн бұрын

    Great 👍

  • @Herdian_weh
    @Herdian_wehАй бұрын

    keren 👏

  • @isurujn
    @isurujnАй бұрын

    Very interesting. Will it support migration for the underlaying PostgreSQL database in case if you want to move out like in Supabase?

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    Data Connect works with a Cloud SQL for PostgreSQL database, so you can connect to it using any tool that can talk to Postgres.

  • @justine_chang39
    @justine_chang39Ай бұрын

    WOAHHHHHH

  • @RossRawlins
    @RossRawlinsАй бұрын

    How will this scale compared to the nosql database you have in firebase? Is there going to be a way to move your old firebase db over?

  • @Frank_van_Puffelen

    @Frank_van_Puffelen

    Ай бұрын

    Auto-migration between these different data models is not planned, but you can write a custom migration with the APIs of course. And we do plan to eventually also connect to Firestore, which would make that even easier. firebase.uservoice.com/forums/948424-general/suggestions/48434618-cloud-firestore-datasource

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    It is a little different than NoSQL - you have a fixed size instance that handles as much traffic as its memory and CPU can handle. Cloud SQL can scale to really massive use cases, but it's not as automatic as you might be used to with e.g. Firestore. No automatic tools to move between dbs, but this is a request I keep hearing from folks. We'll think about it more.

  • @gswthc
    @gswthcАй бұрын

    Impressive! Now firebase is the alternative of supabase

  • @falmanna
    @falmannaАй бұрын

    I love the tooling! Are you going to open source these stuff?

  • @portalteam5832

    @portalteam5832

    Ай бұрын

    😂😂😂😂😂😂

  • @falmanna

    @falmanna

    Ай бұрын

    @@portalteam5832 obviously i was being sarcastic

  • @VladimirDjokic
    @VladimirDjokicАй бұрын

    wow 😃

  • @pamelar.r733
    @pamelar.r733Ай бұрын

    Is there a way to migrate from firestore to data connect?

  • @supbra1
    @supbra123 күн бұрын

    When will this be ready for production with documentation?

  • @pauldewit8088
    @pauldewit8088Ай бұрын

    This is crazy far out!!

  • @antl3x
    @antl3xАй бұрын

    Congrats, Firebase just discovered GraphQL.

  • @joaomelo9774
    @joaomelo9774Ай бұрын

    amazing! can we expect data connect inside firebase emulators?

  • @DavidEast

    @DavidEast

    Ай бұрын

    Oh yeah! It already is! I was using the local Data Connect emulator with a local postgres DB before I deployed to prod.

  • @joaomelo9774

    @joaomelo9774

    Ай бұрын

    @@DavidEast awesome. emulators are great for e2e testing and local dev iteration

  • @greatramu86
    @greatramu86Ай бұрын

    Some concepts are similar to SAP CDS

  • @roninstoreir
    @roninstoreirАй бұрын

    One of the reasons that we use SQL instead of NoSQL is transactions and isolation levels but I haven't heard about these futures in your presentation, do we have them or not?

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    Everything within a single query / mutation is performed inside a transaction, and we'll likely introduce some additional features for transactional mutations in the future.

  • @martinfreire6733
    @martinfreire6733Ай бұрын

    looks awesome! but the main unanswered question for me is: can I use another 3rd party sql tool to read that data? or will be only accessible through a firebase layer request?

  • @mbleigh

    @mbleigh

    Ай бұрын

    Yes you absolutely can. You have full access to the underlying Cloud SQL instance!

  • @AlloMission
    @AlloMissionАй бұрын

    Given how Google handled stopping the deep link feature and the current uncertainty surrounding the future of Flutter, Google appears to be an unreliable partner. Therefore, I prefer to use a traditional SQL provider that doesn't require a new way of implementation.

  • @anikTheOrange
    @anikTheOrangeАй бұрын

    What theeeee..... 🤯🤯🤯

  • @LukePighetti
    @LukePighettiАй бұрын

    What’s the lowest cost cloudsql instance? Are there plans to support generating flutter clients with data connect?

  • @Frank_van_Puffelen

    @Frank_van_Puffelen

    Ай бұрын

    Great question: cloud.google.com/products/calculator?hl=en&dl=CiRkNDc3NmFiYi00YjI4LTRjNjQtOThlOC04NWIzMGY3M2E1MzMQBxokNTdBODYwRTUtQjQ3RC00ODYzLUJBNTItNzEzNUEwQjMzQkU3 So a bit over 9 dollars. And yes, generating Flutter SDKs is planned - and will be available before/with the public preview later this year. DM me if you want to help me test it earlier :-)

  • @KevinSheppard
    @KevinSheppardАй бұрын

    I'm glad that they finally got relational database support, but I don't like the approach using GraphQL. Overall it seems overengineered.

  • @DavidEast

    @DavidEast

    Ай бұрын

    I really hope you'll give it a try and I think you'll see that the dev loop is designed to be simple rather than over-engineered.

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    I think they chose graphql because it's a flexible way for us to query what we want. In many ways graphql is great for clients and difficult for the API developer but in this case, firebase is the API developer and we are the client. But we do define our queries in advance in the backend. They forego the advantage of clients defining whatever query they want to make security easy. Which is a worthwhile trade, by having only certain queries available in advanced it's no more limited than a typical rest API.

  • @tekkkinho
    @tekkkinho19 күн бұрын

    It supports DML too?

  • @erperejildo
    @erperejildoАй бұрын

    Easy question: for a new project what would be better in terms of scalability and maintenance? SQL or Firestore?

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    It's hard to say without using it more. But my guess is firestore may be slightly easier still since you don't need to define backend stuff. But in terms of maintenance I think SQL will be better. Changing your data generates migrations and since you aren't binding your data model to your views in a denormalized database you don't have to refactor a bunch because you changed how you view your data. Some tasks are also easier, like searching text fields. In terms of scalability postgres scales for quite a while before you need to denormalize/duplicate/cache some data. I think the scalability arguments people use are over-hyped. I've written dozens of apps for people that never needed denormalization. The few that have, it was very minor things like one field. Granted if you become the next Facebook or something you may need more, but that's a good problem to have, and is something you can add then

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    One thing I missed is this is backed by cloudsql. So it probably doesn't have automagic for scaling instance size, at least that I know of. So firestore is probably easiest and best at scaling. There's still a lot of reasons I'd rather use this if it's any good though, which mostly relate to limitations and challenges in firestore. If your database is difficult or annoying to denormalize that's a great reason to use this.

  • @neociber24
    @neociber24Ай бұрын

    Can I just connect directly to the database when server side?

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    Yes, you can connect directly to the Cloud SQL database from a server, you can also issue arbitrary GraphQL queries to Data Connect from the server (but clients can only issue predefined queries).

  • @eddyvu8109
    @eddyvu8109Ай бұрын

    how does this support for mobile app game development?

  • @TheTuxtrons
    @TheTuxtronsАй бұрын

    Now the real question, whats the pricing for this?

  • @Frank_van_Puffelen

    @Frank_van_Puffelen

    Ай бұрын

    During the gated preview it's all free to use. We're really just looking forward for your feedback at this stage. Cloud SQL has established pricing, although we're adding a free trial period to it. Data Connect itself will use pay-as-you-go pricing with a *generous* free tier. Exact details are still being worked out, and will be announced when we go to public preview later this year.

  • @kanjuicy585
    @kanjuicy585Ай бұрын

    Ok, but do you have a data view where we can view all the data in our sql table? Or an sql query console, where we can see the results as a table?

  • @mbleigh

    @mbleigh

    Ай бұрын

    You can use SQL Studio in the GCP console to do direct queries on the underlying Cloud SQL database.

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    Yes since it sounds like there is an underlying SQL instance, it's probably possible to view your data in any SQL client.

  • @kanjuicy585

    @kanjuicy585

    Ай бұрын

    @mbleigh but do we have a table UI like Supabase?

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    @@kanjuicy585 idk supabase, but gcloud SQL doesn't currently. Based on firestore I'd assume they may end up having that kind of tooling, but I don't know for sure particularly in comparison to what other products have

  • @mbleigh

    @mbleigh

    Ай бұрын

    @@kanjuicy585 right now there's a GraphQL playground for executing arbitrary queries and in Cloud SQL console you can execute arbitrary SQL queries. No table explorer right now.

  • @itssidhere
    @itssidhereАй бұрын

    There should be an automaic migration from firestore to data connect postgresql

  • @alexon2010
    @alexon20105 күн бұрын

    isso tudo da um nó na cabeça!!!!

  • @marshallross
    @marshallrossАй бұрын

    Does it also build documentation?

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    Not yet, but it's definitely in the realm of possibility to do so. What would be your ideal form of generated documentation?

  • @Meetblakey
    @Meetblakey13 күн бұрын

    How would this work for B2B?

  • @nikitaklinchuk9650
    @nikitaklinchuk9650Ай бұрын

    Feels to me as Hasura

  • @gotxe
    @gotxeАй бұрын

    This is nice, really nice, but why not 2 months earlier 😅

  • @satkhalsa
    @satkhalsaАй бұрын

    Does Data Connect support realtime functionality? How about optimistic updates to data?

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    Not yet, but you can vote for realtime capabilities on our roadmap here: firebase.uservoice.com/forums/948424-general/suggestions/48434600-realtime-query-updates

  • @specialhitgamingtv2971
    @specialhitgamingtv2971Ай бұрын

    is this comming for mysql also?

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    It's not currently on our roadmap, but I'd encourage you to suggest it here: firebase.uservoice.com/forums/948424-general

  • @daviddomkar
    @daviddomkarАй бұрын

    Let's go GCP Linus

  • @ArielPettyjohn
    @ArielPettyjohnАй бұрын

    🤯

  • @inheritedarts
    @inheritedartsАй бұрын

    World is coming back to wait Rails give me 10 years a go! i am happy i am using Rails

  • @blablablabla29382
    @blablablabla2938211 күн бұрын

    Did this SQL is "Pay as you go" ?

  • @moosegoose1282
    @moosegoose1282Ай бұрын

    the only exciting thing during io

  • @oussamakh1801
    @oussamakh1801Ай бұрын

    This got heated up quickly, if I said that you have SQL now just use SQL why do u add all of this hassle

  • @collapsingspace
    @collapsingspace29 күн бұрын

    Ok they have brought SQL but not the experience of working with SQL, what's the point then ?

  • @halzter801
    @halzter801Ай бұрын

    Will it have a dart sdk?

  • @Frank_van_Puffelen

    @Frank_van_Puffelen

    Ай бұрын

    Yup, that's in the cards - and should be available before/with the public preview later in the year. You can vote for it here: firebase.uservoice.com/forums/948424/suggestions/48437954

  • @LifeCasts
    @LifeCasts7 күн бұрын

    Cannot find experiment dataconnect

  • @kldeb33
    @kldeb33Ай бұрын

    Firebase: now has AWS Amplify built in

  • @Taro5000

    @Taro5000

    Ай бұрын

    Exactly what I was thinking. I'm using amplify like this and it sucks. Will go with Supabase.

  • @user-xv8dn4nm5k
    @user-xv8dn4nm5kАй бұрын

    👍

  • @rob4715
    @rob4715Ай бұрын

    Interesting, but this video would be more useful to me if it gave a little context up front: pros and cons of Data Connect vs Firestore for different scenarios.

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    Pros are you don't have to use a denormalized document based database with certain limitations because all queries have to be highly performant queries because you pay per query. Cons are you have to use a relational database and have a bit more effort to define things up front, and may need to manage scaling a bit more and have more upfront cost (it's backed by a cloudsql instance? So idk if it can auto scale the same).

  • @BeefCurd
    @BeefCurdАй бұрын

    I just want to have an individual from the public select what data they want, pay, and then have a csv file of the data they selected. why is that so hard?

  • @SalarPro
    @SalarProАй бұрын

    I think the curve will be little steep

  • @davideast4360

    @davideast4360

    Ай бұрын

    Please sign up for the preview! We have spent a ton of time designing the dev loop to be simple and to provide tooling to help along the way. We'd love to hear your feedback.

  • @ithelightr3020
    @ithelightr3020Ай бұрын

    Yeah but how does firebase handle Role Base Access Control vs Supabase? The deal killer

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    Data Connect has a novel security model that allows for a combination of RBAC and ABAC and can be used to secure at both row and column level. It's one of the most exciting features of the product to me 🙂

  • @ithelightr3020

    @ithelightr3020

    29 күн бұрын

    @@michaelbleigh8737 can we get a comparison to supabase RBAC?

  • @utsavojha2953
    @utsavojha2953Ай бұрын

    This looks like hasura on steroids aka llm rag ❤🎉

  • @yeonjoonkim486
    @yeonjoonkim486Ай бұрын

    I hope there is an migration tool from firestore to data connect😅

  • @JH-bb8in
    @JH-bb8inАй бұрын

    Where's my Fireship video on this?

  • @DevSergeant
    @DevSergeantАй бұрын

    Wait what ?? I moved already to supabase...

  • @djasniverajaona9163
    @djasniverajaona9163Ай бұрын

    So they already use idx 🤔

  • @DavidEast

    @DavidEast

    Ай бұрын

    I use IDX for everything!

  • @djasniverajaona9163

    @djasniverajaona9163

    Ай бұрын

    @@DavidEast so you Google developers have early access to every product?

  • @basdfgwe
    @basdfgweАй бұрын

    There was a lot of jargon thrown around in this video... I have no clue what they are... And ive been developing wih firebase for quite a number of years.

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    A lot of it was graphql jargon, or normal SQL jargon. So if you haven't used either of those it makes sense it'd sound unfamiliar.

  • @ChaseAnderson5k

    @ChaseAnderson5k

    Ай бұрын

    Queries, mutations, migrations, so on. There was also some ai jargon I wasn't familiar with myself. The embedding stuff.

  • @eusouoviana
    @eusouovianaАй бұрын

    Oh good, Google learned what is GraphQL :D

  • @IgnacioAntonioJeriaGarrido
    @IgnacioAntonioJeriaGarridoАй бұрын

    we can use that with golang?

  • @ishaanmalhotra3008

    @ishaanmalhotra3008

    Ай бұрын

    Yup, I have the same question

  • @michaelbleigh8737

    @michaelbleigh8737

    Ай бұрын

    Our admin API is wire-compatible with GraphQL, so you can likely use a GraphQL library in Go to talk to it. We're still thinking about how we want to do Admin SDKs for Data Connect.

  • @bruh-qu2uh
    @bruh-qu2uhАй бұрын

    Firebase the supabase alternative

  • @alex14779
    @alex14779Ай бұрын

    why ?

  • @GrowthMindset212
    @GrowthMindset2127 күн бұрын

    well done, but it hasnt free tier and the cheaper is 9 usd per month. Not suitable for a starting hacker proyect, although they say they give me 3 months for free.

  • @perc-ai
    @perc-aiАй бұрын

    Theres no reason to use Supabase now

  • @mariol8831
    @mariol8831Ай бұрын

    Great but pricing…

  • @CrzyMan_Personal
    @CrzyMan_PersonalАй бұрын

    While incredibly cool, I'm not going to lie, the query CONSTANTLY shaking up and down as you write it and then pause and then write and then pause, is beyond frustrating.

  • @DavidEast

    @DavidEast

    Ай бұрын

    You're telling me. We didn't have much time to get the production done on this and all videos have to be done really early. This was a current bug and it's been fixed since then.

  • @iamtherealgee
    @iamtherealgeeАй бұрын

    Finally I can stop using Hasura

  • @luiscarlosricoalmada4296
    @luiscarlosricoalmada429617 күн бұрын

    Its SQL not Sequel!

  • @UwU-dx5hu

    @UwU-dx5hu

    7 күн бұрын

    No. Its squeeeel

  • @mikejohneviota9293
    @mikejohneviota9293Ай бұрын

    hahahaha before, from asking AI is supabase have onAuthChange to is firebase had RLS and RPC 😂😂😂😂😂😂😂

  • @ARESxWARLORD
    @ARESxWARLORDАй бұрын

    If we’re all getting replaced by ai who exactly are you making this for

  • @ChinmayPatil-ol6wg
    @ChinmayPatil-ol6wg15 күн бұрын

    you said postgress you said graph ql you said new mechanism so complex. why do i have to learn new process now. understand your users are end users even they love simplicity i even after having good experience in tech industry though this is so complex and the reason is i dont want to learn new think just to use firebase db either keep graphql or keep sql keep it simple when i dont have to invest my whole time to learn this new thing we developers love now things but dont expect us to learn new things every thime you launch everything.

  • @alexanderhemming6148
    @alexanderhemming6148Ай бұрын

    Is this real? April fools was over a month ago

  • @50kT
    @50kTАй бұрын

    Why does the studio look like a preschool

  • @Oncopoda
    @OncopodaАй бұрын

    Oh wow, thanks, I hate it. 🥰

  • @englishwadenilson
    @englishwadenilsonАй бұрын

    Honestly firebase outs everyone

Келесі