Why I'm switching from Postgres to a real-time database

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2024
  • My Courses
    📘 T3 Stack Tutorial: 1017897100294.gumroad.com/l/j...
    My Products
    📖 ProjectPlannerAI: projectplannerai.com
    🤖 IconGeneratorAI: icongeneratorai.com/
    Useful Links
    💬 Discord: / discord
    🔔 Newsletter: newsletter.webdevcody.com/
    📁 GitHub: github.com/webdevcody
    📺 Twitch: / webdevcody
    🤖 Website: webdevcody.com
    🐦 Twitter: / webdevcody

ความคิดเห็น • 182

  • @ionelCristianLupu_
    @ionelCristianLupu_ 5 หลายเดือนก่อน +11

    Interesting project. Would love more details and the next steps a user needs to take in order to make their idea real

  • @jasonsouthin6981
    @jasonsouthin6981 5 หลายเดือนก่อน +1

    Your videos are increadly inspirational - thank you Cody. You kickstart my productivity every morning.

  • @LjupcheVasilev
    @LjupcheVasilev 5 หลายเดือนก่อน +2

    I've never tried a real time database before but the way you explain it makes so much sense. I'm definitely going try this now in a future video!

  • @brayancuenca6925
    @brayancuenca6925 5 หลายเดือนก่อน +3

    Digging the new thumbnails. Levelling up I see!

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      thanks!

  • @NaourassDerouichi
    @NaourassDerouichi 5 หลายเดือนก่อน

    Really interesting project! Wish you good luck with it.

  • @Bodom1978
    @Bodom1978 5 หลายเดือนก่อน +7

    Convex seems like a useful SAAS and pricing is not too bad. Will throw it into the toolbox 👍

  • @jz319
    @jz319 5 หลายเดือนก่อน

    love this project idea! keep the videos coming!

  • @psydook
    @psydook 5 หลายเดือนก่อน

    I understand what you've done. It makes sense to use BaaS instead of creating your own sockets ! I did the same in one of my projects. Super good video ! Love the content

  • @serkan_bayram
    @serkan_bayram 5 หลายเดือนก่อน +2

    The project looks pretty interesting, could you think to make a video about how should we utilize ChatGPT (or any other AI) to get what we want? What kind of prompting going on behind the scenes?

  • @willmakk
    @willmakk 5 หลายเดือนก่อน

    The automatic updates look sick. Would be cool to see a comparison video of different db types and why you'd pick one or the other.

  • @jowadev
    @jowadev 5 หลายเดือนก่อน +2

    Very interesting! I have two questions. What do you use to deploy your Next.js 14 app on AWS? OpenNext? AWS Amplify? Do all functionalities (server actions, etc.) on Next.js 14 work on AWS?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      I usually deploy using open next. Everything works on open next except the middleware acts a bit different compared to vercel, and streaming is experimental. I can't speak about amplify.

  • @thedoctor5478
    @thedoctor5478 5 หลายเดือนก่อน +3

    I use Supabase to do this now, which uses postgres. It has realtime websocket subs to tables. No manual work required (One line of JS). There's also an async http client and an s3-backed storage abstraction.

    • @khaledmohammad8671
      @khaledmohammad8671 5 หลายเดือนก่อน

      I tried setting up supabase with RDS horrible experience, you basically can't do that. So what options do you have have if your cloud stack is in AWS? And you want something managed? What did you go for?

  • @skyhappy
    @skyhappy 5 หลายเดือนก่อน

    Assistance with the project planning portion would be helpful. First, who is the target user? Second, what features should it have? Third, for each feature, what is the flow the user will go through to use it? Autogenerating mockups will also be helpful. FigJam AI is neat, you say "draw this and this", and it auto generates a diagram. Something like that for rapid idea + visual iteration would be neat.

  • @logantheyoyoman
    @logantheyoyoman 5 หลายเดือนก่อน +2

    Awesome video! Just wondering why you didn't use streaming for this? For example, you could stream a JSON structor that updates the parts of the plan that are available as they come in.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      As in run a server action and return an array with an unawaited promise? First I haven’t seen any good documentation on that in the next docs and I’m not sure if that’s even a supported approach of a hack that happens to just work. Second, I’m pretty sure actions cancel as I navigate (I’d need to test), which is very limiting because I want the flexibility to run the action on one page, then redirect to another page, then update as the results come in. Convex was just easier

    • @logantheyoyoman
      @logantheyoyoman 5 หลายเดือนก่อน

      @@WebDevCody makes sense! I was thinking steaming results via an api endpoint using the “edge” runtime. You could fetch the result client side and stream in the data as it’s available. Probably a lot more to manage and a lot more difficult then using convex.
      Seems like convex was easy to run with so definitely a good choice. Was just curious if you thought about streaming an as approach.

  • @rhysmaiden1253
    @rhysmaiden1253 5 หลายเดือนก่อน

    I took alot of inspiration from your hackathon project using convex and how little boiler plate backend code is needed.
    I was wondering if you could touch on how you structure your data differently compared to a relational database?
    I’ve found joins quite difficult in convex and end up making more database calls instead. But I think this is because of my table structure.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      what issues have you found just doing a .map and doing more queries to get related data? The convex team says the mutations and queries basically run on the same machine as the database, so they run very fast.

  • @ccj2
    @ccj2 5 หลายเดือนก่อน +1

    I can't save for later for some reason so commenting to remember to come back to this.

  • @yorgohoebeke
    @yorgohoebeke 5 หลายเดือนก่อน

    Hi! Thanks for this video. Could you make a video where you compare supabase and convex?

  • @fffantotal
    @fffantotal 5 หลายเดือนก่อน +1

    very intersting, Cody. Thanks for sharing. We have a similar setup but using Firebase RealtimeDB instead. The problem I'm running into is how to architect for testability with this. Any ideas or opinions?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      Testability for what, firebase?

    • @fffantotal
      @fffantotal 5 หลายเดือนก่อน

      @@WebDevCody unit/low-level integration tests for the component

  • @StephenRayner
    @StephenRayner 5 หลายเดือนก่อน

    Damn this is huge! I’ve written a call centre product with Twilio programmable voice. Im going to refactor it using this

  • @marekkabala5349
    @marekkabala5349 5 หลายเดือนก่อน +2

    I was thinking about the database for my app. I was in the middle planetscale or convex. I needed real time. With this video and your graph, I decided what to use. Firebase can be good options, but is Google today we have firebase next month, maybe not.😅

    • @MysticZA
      @MysticZA 5 หลายเดือนก่อน +1

      It's survived almost 12+ years I believe (granted not always under Google's ownership...but still!)

  • @hyper-stack
    @hyper-stack 4 หลายเดือนก่อน

    how did you do the sections loading like that?

  • @0xPanda1
    @0xPanda1 5 หลายเดือนก่อน

    I tried to login I get.
    Sign up unsuccessful due to failed bot validation. Please refresh the page to try again or reach out to support for more assistance.

  • @roylaw2866
    @roylaw2866 4 หลายเดือนก่อน

    Great vid! Is it possible to do a comparison between auth0 with clerk

  • @jasondavis87
    @jasondavis87 5 หลายเดือนก่อน

    Hey man, can you do a video on how you develop your UI?

  • @kpopcat_official
    @kpopcat_official 5 หลายเดือนก่อน +26

    I think supabase has realtime as well. It would be great if you could compare those technologies.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +6

      from what I understand, supabase requires you to write logic to subscribe to rows changes specifically, vs convex automatically re-runs your queries when any of the database queries you do under the hood update. It's another abstraction over realtime data which makes it so much easier. Also typescript support is much better last time I used supabase's client libraries

    • @kpopcat_official
      @kpopcat_official 5 หลายเดือนก่อน

      @@WebDevCody Thank you, I just checked convex pricing model, they didn't specify any additional cost for the realtime data. On the other hand, supabase realtime can only support 500 websockets connection even you pay $25/m which seems quite expensive. Do you understand what make them so different? Why are the websocket connection convex much more cost effective?

    • @MysticZA
      @MysticZA 5 หลายเดือนก่อน

      @@WebDevCody Sounds more like Firebase's RTDB/Firestore then perhaps?

    • @MysticZA
      @MysticZA 5 หลายเดือนก่อน

      I see you mentioned that actually

  • @rodrigorb2630
    @rodrigorb2630 5 หลายเดือนก่อน +1

    Sup Cody. I can see that maintaining websocket connections with convex for this project makes sense, but do you have any info on scalability? Would these connections scale to a million concurrent users?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +2

      No clue about how well convex scales, you’d want to ask their team about that. My use case outlined in this video is for my small side project. I’m assuming they can handle a lot of concurrent websocket connections

    • @twitchizle
      @twitchizle 5 หลายเดือนก่อน

      I need unlimited scalability for my 0 users.

  • @tsatsuadogla-bessa8732
    @tsatsuadogla-bessa8732 5 หลายเดือนก่อน +1

    How did you create the graphics for the landing page of the marketing page?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      We found existing landing page sections I think. There are tons of free resources out there

    • @tsatsuadogla-bessa8732
      @tsatsuadogla-bessa8732 5 หลายเดือนก่อน

      @@WebDevCody Thanks for the quick reply, I was actually referring to the short video that showcases the webapp on the homepage…

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      @@tsatsuadogla-bessa8732oh that was made using screen studio, it's a paid software to record your screen and make great marketing videos

    • @tsatsuadogla-bessa8732
      @tsatsuadogla-bessa8732 5 หลายเดือนก่อน

      @@WebDevCody Thank you very much! Also after this video finally decided to try convex for a small side project for my church! Will let you know how that goes

  • @andrewaj8417
    @andrewaj8417 5 หลายเดือนก่อน

    Do you use a Langchain? It has a possibility to output valid json, so you dont need to recall openai for the correct outputs

    • @skyhappy
      @skyhappy 5 หลายเดือนก่อน

      Don't use langchain, look up the article titled "The Problem with Langchain". I can't link it in comments or else it'll get deleted.

  • @celsochaves_
    @celsochaves_ 5 หลายเดือนก่อน

    Another great video!! Thanks for sharing it!!
    I was wondering how Convex compares with Vercel?? Have you used it enough to say Convex is a better option??

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      convex and vercel are two completly different category of tech. Vercel is a host, convex is a BaaS (including the database and file storage).

    • @celsochaves_
      @celsochaves_ 5 หลายเดือนก่อน

      ⁠@@WebDevCodythanks for the clarification! I need to learn more about it.

  • @asadmehboob1300
    @asadmehboob1300 5 หลายเดือนก่อน +8

    Can we use supabase instead of convax?

    • @emmanuelezeagwula7436
      @emmanuelezeagwula7436 5 หลายเดือนก่อน

      you can use whatever you like.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +2

      Sure, it doesn’t compare to the dx of convex from what I’ve seen. The supabase subscriptions require listing out lower level database insertions, table names, etc. and I found supabase typescript support to be kind of crappy

  • @martijnjansen5388
    @martijnjansen5388 5 หลายเดือนก่อน

    Wondering, and am not sure if you said it in the video, but is this Convex something you going to use as a standard now or is it optional when building projects?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +2

      It’s a paid BaaS, so it’s not a standard. I’m just saying I’m using it for this project because the tech aligns with the project needs

    • @martijnjansen5388
      @martijnjansen5388 5 หลายเดือนก่อน

      @@WebDevCody right! That makes sense, cool that your showed us! Thanks Cody 💪🏻

  • @saadowain3511
    @saadowain3511 5 หลายเดือนก่อน

    Thanks a lot. ❤

  • @grimm_gen
    @grimm_gen 5 หลายเดือนก่อน

    Firebase also has a realtime database, I use firebase mainly for mobile development

  • @Christopher-lb6rf
    @Christopher-lb6rf 5 หลายเดือนก่อน

    Have you used Supabase? How does Convex compare?

  • @hanankevich5762
    @hanankevich5762 4 หลายเดือนก่อน

    Awesome video

  • @additionaddict5524
    @additionaddict5524 5 หลายเดือนก่อน

    I'd be *very* interested in learning about the sst setup, how to learn aws cdk, the github deploy etc. (happy to pay if you make into a course)

  • @SeibertSwirl
    @SeibertSwirl 5 หลายเดือนก่อน

    Good job babe!!!

  • @yuris10101
    @yuris10101 5 หลายเดือนก่อน

    i'm interested about pros and cons of convex vs traditional real time db like Firebase

  • @sirisaac8727
    @sirisaac8727 5 หลายเดือนก่อน

    Is this custom ML's or just wrapping gpt?

  • @horosin
    @horosin 5 หลายเดือนก่อน

    Add an option to regenerate sections of the project with additional suggestions. Let us iterate on the plan.

  • @biswajit-k
    @biswajit-k 5 หลายเดือนก่อน

    I am sorry for my lack of understanding, but why can't we just update our UI directly when actions are complete and successful(like a fetch API call), why are we sending updates to convex and being dependent on it?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      When you run a next server action your page has to wait until the action finishes before you can redirect. Secondly, you can run concurrent actions in nextjs (at least a proper way to do that is not outlined in their docs). Third, it’s not outlines if actions should be used for async functions; there are ways to stream in the results from your actions, but I’ve seen strange timeout issues due to it.
      Overall I’d avoid server actions for any async tasks.

  • @ilijanl
    @ilijanl 5 หลายเดือนก่อน +2

    You could have put hasura before the postgres and you instantly would have a graphql api with subscriptions + authz. Additionally full type safety with codegen😊

    • @skyhappy
      @skyhappy 5 หลายเดือนก่อน

      graphql subscription uses websockets?

    • @ilijanl
      @ilijanl 5 หลายเดือนก่อน

      @@skyhappy yes

    • @skyhappy
      @skyhappy 5 หลายเดือนก่อน

      @@ilijanl what is authz?

  • @_the_one_1
    @_the_one_1 5 หลายเดือนก่อน

    Sounds interesting! Is there any reason why not choosing Firebase or Supabase?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      I find convex superior, and I'd avoid google products; they kill to many services all the time

    • @_the_one_1
      @_the_one_1 5 หลายเดือนก่อน

      @@WebDevCody sounds reasonable! Personally I love Supabase more and it's not a Google product but nice to know about convex.

    • @sands_45fx83
      @sands_45fx83 5 หลายเดือนก่อน

      @@WebDevCody Been using firebase for quite sometime. A real game changer ... Google kinda sucks when it comes to killing products but till this far firebase has been reliable .

  • @matthewbeardsley7004
    @matthewbeardsley7004 5 หลายเดือนก่อน

    You could keep Postgres and use hasura in front, that gives you realtime graphql subscriptions.

  • @xreed8
    @xreed8 4 หลายเดือนก่อน

    I dont quite understand what the importance or practical difference is between normal db (postgress/"non" real time DB) vs real time DBs. Wouldnt you just fetch/query each refresh or view? Or is that potentially too costly for apps with large customer bases (millions of customers), hence the need for a realtime db?

    • @WebDevCody
      @WebDevCody  4 หลายเดือนก่อน +1

      Imagine you have a page which shows a poll and user votes on answers. Anytime someone votes, you’ll need to loop through all users actively on the page and emit websocket events any time someone votes. Then the users ui needs to refresh your grab the latest votes. To achieve this you have to write a lot of extra websocket code and server infrastructure.
      With convex, you write one query, and that query automatically updates any time the database data changes.

  • @patolorde
    @patolorde 5 หลายเดือนก่อน

    Can you make tutorial on convex? I did a basic setup but im kinda lost

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      I have one on my channel

  • @Tanner-cz4bd
    @Tanner-cz4bd 5 หลายเดือนก่อน

    Do you have supabase crud tutorial

  • @Mankepanke
    @Mankepanke 5 หลายเดือนก่อน +3

    If I understand this correctly, it seems you switched away from PostgreSQL not because of limitations in Postgres, but because of limitations in Next.js. Is that correct?
    Your whole diagram looks like a pretty standard backend with Postgres, so Im wondering where the problem is.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +3

      the problem is how do I update the UI the instant data processing finishes on my api. For that, I need polling, or SSE, or websockets. I personally didn't want setup my own websocket server or the logic for emitting events when jobs finish, so I opted for using a realtime BaaS which takes care of all of that for me.

    • @Mankepanke
      @Mankepanke 5 หลายเดือนก่อน

      @@WebDevCody Ah, that makes sense. Thank you!

  • @infocyde2024
    @infocyde2024 5 หลายเดือนก่อน

    Nice man.

  • @suryaiyyappan4244
    @suryaiyyappan4244 5 หลายเดือนก่อน

    What is the use of real time database in this contex?

  • @juanmacias5922
    @juanmacias5922 5 หลายเดือนก่อน +1

    real-time databases are so nice, that's why I love Firebase Firestore lol

    • @sands_45fx83
      @sands_45fx83 5 หลายเดือนก่อน

      Been using firebase for quite sometime. A real game changer

  • @kumarvishalben
    @kumarvishalben 5 หลายเดือนก่อน

    supabase does have realtime updates as well as file storage

  • @fave1201
    @fave1201 5 หลายเดือนก่อน

    I didn't like the icons, designs and images that were generated. Is it possible to have different prompts for generating them or have chatgpt borrow inspiration from other websites?
    But it is a nice product for brainstorming project ideas.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      thanks for the feedback!

  • @Hiperultimate
    @Hiperultimate 5 หลายเดือนก่อน +2

    So convex is basically like Firebase?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      No clue, I don’t touch google tools, but I know convex argues they are a better firebase

    • @Hiperultimate
      @Hiperultimate 5 หลายเดือนก่อน

      Yeah I heard you say you havent used Firebase later in the video @@WebDevCody

  • @SabLiJunior
    @SabLiJunior 5 หลายเดือนก่อน

    What's theme you're using?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      bearded theme stained blue

  • @andrewaj8417
    @andrewaj8417 5 หลายเดือนก่อน

    Like an experimental idea for the project to go further.
    Each section connect to its own AI agent and tell it to implement those ideas.
    Later, we'll need global agent, that will put the project together.
    Make it short - experimental stuff how the project idea can become real project, almost fully managed by AI agents.

  • @daviidon
    @daviidon 5 หลายเดือนก่อน +1

    Firebase has all that plus auth and stripe integration...Though it doesn't have client generation so the dx for convex is superior in that regard.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      🤷‍♂️ I've never used firebase; I'm not a fan of google products

    • @perc-ai
      @perc-ai 5 หลายเดือนก่อน

      @@WebDevCody brother u need ot try it can ez build products under

    • @skyhappy
      @skyhappy 5 หลายเดือนก่อน

      Firebase has no foreign keys while convex does. Make data modelling way easier with convex. Also auth isn't a big difference when things like clerk exists. even simpler than firebase acutally.

  • @Mathes881
    @Mathes881 5 หลายเดือนก่อน

    Is convex similar to supabase or pocketbase?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      Similar to firestore

  • @richardgeddes630
    @richardgeddes630 3 หลายเดือนก่อน

    Using Redis as intermediate storage and Postgres as final storage, would probably get similar performance.

  • @greendsnow
    @greendsnow 5 หลายเดือนก่อน

    What's wrong with react-query + pocketbase?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      React query isn’t real time, so convex is gonna give me a websocket event at the moment the data I need to listen for changes, but let me know if pocket base provides real time data updates

  • @funnynews341
    @funnynews341 2 หลายเดือนก่อน

    does it realtime update?

  • @cas818028
    @cas818028 5 หลายเดือนก่อน

    Looks like there pro plan only goes to 50gb of storage. Also I thought firebase and Supabase also had this feature? Prisma orm is building a feature like this but you got to pay for it

  • @darialyphia
    @darialyphia 5 หลายเดือนก่อน +1

    Convex is pretty goated not gonna lie

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      💯

  • @oneito947
    @oneito947 5 หลายเดือนก่อน

    have you checked our SurrealDB?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      nope I haven't heard of it

    • @oneito947
      @oneito947 5 หลายเดือนก่อน

      @@WebDevCody then check it out, you'll be amazed at its versatility as a database

  • @cambabyfacecam
    @cambabyfacecam 5 หลายเดือนก่อน

    you need to submit this to YC bro

  • @CheeseStickzZ
    @CheeseStickzZ 5 หลายเดือนก่อน

    Good choice. postgres and RDBMS in general are mostly for strict atomicity and transactions. (Banks, fintech, etc) Your use case is defo not a good fit for postgres

  • @Roman221ololo
    @Roman221ololo 5 หลายเดือนก่อน

    Isn’t hasura better? It has same realtime features that are based on graphql subscriptions

  • @David-qr2dk
    @David-qr2dk 5 หลายเดือนก่อน

    A sort of Firestore from Firebase.

  • @suryaiyyappan4244
    @suryaiyyappan4244 5 หลายเดือนก่อน

    I don't understand why use web socket,we can use different request for things .

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      why not use web sockets?

  • @DigitalKelvin
    @DigitalKelvin 2 หลายเดือนก่อน

    I use Firebase quite a bit...

  • @akosbalint3485
    @akosbalint3485 5 หลายเดือนก่อน

    Convex should open his system to have the self hosted opportunity. I am afraid of vendor locking in long term.
    If Convex shuts down his service, I have to do the same time...

  • @fullstack-jack
    @fullstack-jack 5 หลายเดือนก่อน

    Thanks for introducing me to Clerk, amazing DX so far.

    • @martijnjansen5388
      @martijnjansen5388 5 หลายเดือนก่อน

      Clerk is really cool, amazing tool! It saves you so much time.

  • @ILoveAmerica1123
    @ILoveAmerica1123 5 หลายเดือนก่อน

    Stop playing with my emotions!

  • @o_glethorpe
    @o_glethorpe 5 หลายเดือนก่อน

    Is there a reason why are you not using firebase? did you even considered? our is just not too new enough?

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      I don’t touch google tools personally

  • @kabriid
    @kabriid 5 หลายเดือนก่อน

    I don't get it. Why do you need to wait 2 minutes for everything to finish? Why not just generate initial metadata and directly navigate them to the page where subsequent actions will occur? Since you're already using WebSockets, anything that needs to listen for real-time updates will still do so

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      I'm not sure what you are confused about, that's exactly what I demoed in this video. I click create plan in the modal, it redirects me to the plan page, the events come in as the actions finish, my UI updates.

    • @kabriid
      @kabriid 5 หลายเดือนก่อน

      @@WebDevCody I apologize for commenting in the first minute. You mentioned that you wait two minutes for everything to finish before navigating to another page, and then proposed a real-time database as a solution. I was pointing out that a similar result can be achieved with what I mentioned, but since you're using Nextjs server actions, as mentioned in the comments, it prevents navigation, making my suggestion irrelevant. However, I still wish you could explain why a similar result can't be achieved without a real-time database like Convex. I'm new to Next.js, so pardon my ignorance.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      @@kabriid yeah so a similar result could be achieved without convex, but it would require either doing polling from the front end (a bit inefficient but easy to implement where you keep querying your API to see when the sections are done), you could do Server Sent Events which work fine by require a persistent connection which doesn't really work well with serverless deployments, or the other approach is you setup your own websocket server and you send events to your client's browser as the sections finish but this requires either managing your own websocket server or using a third party service (like pusher) to make it easier to push events to the browser.
      out of all those options, I decided I rather just use a service that already have websockets built in and a very easy interface for having my UI refresh when stuff finishes.

  • @YouHaveTrouble
    @YouHaveTrouble 5 หลายเดือนก่อน

    Man doing anything to avoid server sent events for like 2 videos straight now

  • @eshw23
    @eshw23 5 หลายเดือนก่อน +65

    I miss the old thumnails, they seemed more authentic.

    • @beakerbkr
      @beakerbkr 5 หลายเดือนก่อน +36

      I get that but this space on TH-cam is very competitive. Creators need to stand out and draw new viewers in. If they don’t, their channel will stagnate likely die
      Id rather see Cody continue making videos and the content behind the thumbnail is still great!

    • @dejangegic
      @dejangegic 5 หลายเดือนก่อน

      ​@@beakerbkrI get what you're saying. But just check where you have more views

    • @beakerbkr
      @beakerbkr 5 หลายเดือนก่อน

      @@dejangegic when Linus tech tips stopped using clickbait titles and wacky thumbnails their viewership declined steeply. They quickly went back to their click bait video titles and thumbnails

    • @neociber24
      @neociber24 5 หลายเดือนก่อน +6

      I'm here for the videos, but not gonna lie this thumbnail bring more of my attention

    • @brayancuenca6925
      @brayancuenca6925 5 หลายเดือนก่อน +1

      @@beakerbkrexactly!

  • @Tanner-cz4bd
    @Tanner-cz4bd 5 หลายเดือนก่อน

    Doesn't supabase have real-time

  • @avwie132
    @avwie132 5 หลายเดือนก่อน

    I really don’t understand why a db switch is needed for this. The issue you’re solving you’re solving in the wrong architecture layer.
    Now you’re tied to a proprietary DB SAAS.

  • @insensibility
    @insensibility 5 หลายเดือนก่อน

    Can I work for you for free as your apprentice/assistant?

  • @rtorcato
    @rtorcato 5 หลายเดือนก่อน +3

    Just use supabase realtime and stick with Postgres

  • @RegalWK
    @RegalWK 5 หลายเดือนก่อน

    But Postgres also can be real time

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      with what, pg_eventserv ? I'd rather not have to think about reading through setup guides when I can just use a BaaS in like 5 minutes.

  • @suikast420
    @suikast420 5 หลายเดือนก่อน +1

    You JS guys are funny. Really funny. We have a defintion of real time in software development. What are your
    boundadiers?
    Realtime in internet with unpreidcable latentencies. Common. Say how do you do it.
    The main part is JS, TS ans so are misplaced languages for backend dev.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      JS developer can create an entire start up company in a week 🤷‍♂️
      ...go off though

    • @suikast420
      @suikast420 5 หลายเดือนก่อน

      @@WebDevCody others not?
      Crud is simple. Very simple.
      The single reason why the folks doing js at the backend is the madness to dont want learn an appropriate language for the backend.
      Prototyping is easy. What about maintainability, security, code protection, dependency managent.
      Dude you need to download the whole node repo for a fucking hello World.
      And the worst thing you are propagating is a db that only available as a cloud service?
      You don't got it that is a horror story of an architecture. One company is closing in your business is gone.
      What about data governance?
      I should go off?
      Think about your education.

    • @suikast420
      @suikast420 5 หลายเดือนก่อน

      ​@WebDevCody you don't get my points dude.
      That's not about elitism or evangelism of an approach.
      Then persuade me with your wisdom.
      1. Convex is a cloud only solution right? Why I should trust you my data?
      2. What is if your little company gone. Then my business is gone as well right?
      3. That is your defintion of real-time in your doc.
      What makes Convex realtime?
      Convex’s realtime database tracks all dependencies for every query function. Whenever any dependency changes, including any database rows, Convex reruns the query function and triggers an update to any active subscription on the client
      You are kidding me. Don't you?
      Real time gives you gutanties about processing the whole stuff within defined boudaries. And you must do chek of your code if you can hold this boundaries. You will do it with js. I will know how.
      You can say that your db is fast. But realtime is somewhat other.
      4. And again. Js is pain in the ass for backend. Why the stuff with webassemly is comming more and more popular? The future of js even for frontend is something like a byte code for the browser. Backend needs more the fast clicki clacki stuff.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      ​@@suikast420 I'm sorry your feel me making a video about javascript and using a BaaS is leading people down a wrong path. Like I mentioned, I'm doing what works for my side project. If someone else watches this video and thinks postgres is bad or using a BaaS is the proper solution every single time, that's on them. My project has specific needs, I has limited time to work on these side projects, and my current skill set is mainly node and javascript. I've shipped code to production for many years that uses nodejs, so I think your ridicule of javascript and node is a bit harsh. Every language can accomplish the job if you know how to use it.

    • @skyhappy
      @skyhappy 5 หลายเดือนก่อน

      ​@@WebDevCodyyou were too generous in your response to this guy who criticizes with 0 substance

  • @oleksiistri8429
    @oleksiistri8429 5 หลายเดือนก่อน

    whats so special about postgres ? why people use it ? i hate that role and template model and it does not provide any major benefits over mysql in terms of performance

    • @nirnullz
      @nirnullz 5 หลายเดือนก่อน

      I've heard that PostgreSQL excels in handling complex queries, thanks to features like materialized views.
      Moreover, it boasts various specialized data types (e.g., BSON, XML, geospatial), stored efficiently as binary data.
      Extensions empower users to add custom features, including data types, authentication logic, and stored procedures in languages like Python.
      Additionally, some even add supports for REST APIs and real-time pub/sub on top of Postgresql.
      As a free and open-source enterprise database akin to Oracle or MSSQL Server,
      it provides a cost-effective alternative for those seeking to move away from pricier enterprise databases,
      even though not every user may find its myriad features essential.

  • @blender_wiki
    @blender_wiki 5 หลายเดือนก่อน

    Because you don't need to care about your data?

  • @rawper23
    @rawper23 5 หลายเดือนก่อน +1

    Oh God now he’s putting weird facial reaction thumbnails in all his videos. The previous one looks like he’s holding in a fart.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +1

      I was holding a fart; how else could I make a realistic facial expression?

    • @rawper23
      @rawper23 5 หลายเดือนก่อน

      @@WebDevCody Well then please promise a more realistic farting expression in the next one.

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน +3

      @@rawper23 I’ll buy some more beans and coliflower, ill keep you updated

  • @user-gh4lv2ub2j
    @user-gh4lv2ub2j 5 หลายเดือนก่อน

    I don't understand how you can't do this with postgres and webhooks....
    OMG... this is TSQL all over again... triggers in the database...

    • @WebDevCody
      @WebDevCody  5 หลายเดือนก่อน

      You can, I decided not to, it’s that simple

  • @mihaillepadatu8256
    @mihaillepadatu8256 5 หลายเดือนก่อน

    Legend 🫡