How do we scale web applications?

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • 🤖 SaaS I'm Building: www.icongeneratorai.com/
    💬 Discord: / discord
    🔔 Newsletter: newsletter.webdevcody.com/
    📁 GitHub: github.com/webdevcody
    📺 Twitch: / webdevcody
    🤖 Website: webdevcody.com
    🐦 Twitter: / webdevcody

КОМЕНТАРІ • 100

  • @TheEchinox
    @TheEchinox Рік тому +74

    I'd be delightful if you created a similar-format tutorial in which you cover more on the implementations side:
    1) Api Gateways
    2). VPCs
    3) Public/Private Subnets
    4) NATs
    5) Load Balancers
    6) Regions, AZs and clusters
    7) etc...
    This one was the most straightforward brids-eye-view tutorial on the topic I've ever seen!
    You are a talented teacher. Keep it up!

    • @Nick-tv5pu
      @Nick-tv5pu 10 місяців тому +2

      That's a LOT of ground to cover! Pursuing a CompTIA Security+ and an intermediate AWS cert should cover your bases.

  • @xav_624
    @xav_624 Рік тому +46

    Happy that you reached the 100k mark. Well deserved. You produce quality content, and somehow 'down to earth'. It's cool to watch something actually useful, and not the classic 'todo app tutorials'. ✌

  • @JakeeReacher
    @JakeeReacher Рік тому +22

    Would love to see a system design course. Because I like your teaching style, specially your derivation where you start from simple procedures as it was probably done in the past, you show the issues of the procedures with eventually the solution of the problem and more modern procedures.

  • @goummoboris5194
    @goummoboris5194 Місяць тому +1

    From the ground up. You are surely a very good teacher.😊

  • @jamesevans6438
    @jamesevans6438 11 місяців тому

    Only just found your channel and loving the content, the speed, the rambles! really enjoyed this one, I've seen others explain this type of stuff in 5+ hours (which is not good)! Keep up the great work, it's so inspiring.

  • @mauric440
    @mauric440 8 місяців тому

    You choose each word you talk so wisely that your message is really straightforward. Congrats on your effort for put this knowledge online!

  • @Trippy7275
    @Trippy7275 Рік тому +5

    Congrats on the 100k well deserved mate - Keep them coming Cody! 🎉

  • @mrnevermind
    @mrnevermind 11 місяців тому +1

    Thanks Cody. Just subbed. I’ve been working web dev for over 10 years, but never done any DevOps or server managing, this was very helpful and informative

  • @ExonerativeKoala
    @ExonerativeKoala Рік тому +1

    Thank you. That was informative. You explained bigger concepts than I have seen before, but you made it easy to understand.

  • @yubtubtime
    @yubtubtime 9 місяців тому

    Precisely the kind of overview I was trying to find. Perfect 👌

  • @mohaniya15
    @mohaniya15 Рік тому +1

    These videos are so helpful. They helped me have a look inside something that i thought was a complete black box for me. Thank you so much for putting this out here.

  • @MizikeDM
    @MizikeDM 11 місяців тому +8

    There's another layer that might live between the api and the database - Redis / Memcache. They can allow your apis/ other backend services to cache data they retrieved from the database to reduce db load and queries against them tend to be a lot faster than queries against a traditional SQL database. They're also a separate service, so they can be shared by all your serverless functions / edge functions / api servers

  • @alisoltani2102
    @alisoltani2102 11 місяців тому

    This was a great description! Thanks so much !

  • @stuffedstuff7086
    @stuffedstuff7086 10 місяців тому

    Your explanations are soo clear and straight to the point. I love it. and these are some rare content as well ❤

  • @richa3350
    @richa3350 9 місяців тому

    Such a good overview for scaling applications for anyone who does application development but does not understand what comes next when applications receive excessive network traffic. Thankyou for creating this video!

  • @mateocastromc
    @mateocastromc 3 місяці тому

    I'm a non technical founder and this is so easy to follow that I got excited while watching the video. Thanks for putting this video together

  • @davidasiamah2898
    @davidasiamah2898 Рік тому

    I loved the rambling part the most :). Good stuff. Keep it up.

  • @jadeedstoresupport8916
    @jadeedstoresupport8916 10 місяців тому

    I find this approach of visually building the concept super-helpful.

  • @TheEchinox
    @TheEchinox Рік тому

    Beautiful work, brother!

  • @amershboul9107
    @amershboul9107 Рік тому

    I never miss any of your videos, great content keep it up 👏🎬

  • @ewwitsantonio
    @ewwitsantonio 2 місяці тому

    Excellent!! Thank you so much for sharing your insight

  • @LargeKepler
    @LargeKepler 8 місяців тому +1

    i want to thank you so much for this content. you do an amazing job of explaining and simplifying these concepts that aren't talked about enough. i would love to see more system design/the bigger picture of software engineering covered. thank you!🙏🙏

  • @MusantoSus
    @MusantoSus 11 місяців тому +1

    Wow, I rarely find somebody who explains this clearly.

  • @dariansoutherland225
    @dariansoutherland225 Рік тому

    Love the visual explanation

  • @kakakakaka7955
    @kakakakaka7955 Рік тому

    Great video. a lot of value thanks!

  • @igor9919
    @igor9919 Рік тому +1

    Quality stuff! Cheers!

  • @brrruski8436
    @brrruski8436 Рік тому +1

    Man I benefit a lot from your video❤ Clarify the system arch in my mind. Also I love the drawing tool😮 Plz keep doing videos like this🎉

  • @ukaszkiepas57
    @ukaszkiepas57 7 місяців тому

    wow - thank you very much buddy :) Awesome 20 minutes

  • @huge_letters
    @huge_letters Рік тому +1

    this was very insightful and interesting

  • @Izzat-bj1le
    @Izzat-bj1le 11 місяців тому +1

    I am a super noob in this field but u managed to give me bigger picture thank you. You have +1 sub

  • @mikef.606
    @mikef.606 Рік тому

    This is awesome 🙌

  • @thejet4244
    @thejet4244 9 місяців тому

    This video is extremely useful.

  • @tmanley1985
    @tmanley1985 Рік тому

    That's subscription worthy content right there boah. You've earned a sub.

  • @nebbbe3930
    @nebbbe3930 Рік тому

    Love your videos man

  • @user-io3ml5up6u
    @user-io3ml5up6u 3 місяці тому

    Best video yet

  • @petermckeever2360
    @petermckeever2360 Рік тому

    Congrats on 100K, Cody!

  • @maheshreddy4080
    @maheshreddy4080 Рік тому +7

    Can you make a tutorial of creating a video streaming app ? And thanks for sharing your knowledge with us .

  • @paperC_CSGO
    @paperC_CSGO 8 місяців тому

    Please do more overview stuff like this! Perfect for beginners like me

  • @mr.javascript1320
    @mr.javascript1320 Рік тому

    Gooood stuff !!!!! that was very informative !!!!!!!

  • @thelifeofbiraj
    @thelifeofbiraj Рік тому

    Congratulation brother , 100k Happy for you .. soon gonna hit 1M

  • @nikitastriuk
    @nikitastriuk Рік тому

    amazing content!

  • @sanyamjain04
    @sanyamjain04 Рік тому +1

    Congrats for 100k 🔥

  • @zakk6182
    @zakk6182 Рік тому

    Great video

  • @ethanansel-kelly3266
    @ethanansel-kelly3266 Рік тому

    I'm interviewing with a company that needs to scale so this is great information

  • @happyhome2523
    @happyhome2523 11 місяців тому

    more stuff like this please!

  • @happyhome2523
    @happyhome2523 11 місяців тому

    thank you :)

  • @noahg2
    @noahg2 11 місяців тому

    This content is lit, sure you can make another python app video similar to a million videos but something like this is very usefull to a person who works in small companies or complete beginners where very few coding standards are followed when it comes to writing any application.

  • @TadeasF
    @TadeasF 11 місяців тому

    I'm a data engineer getting into web development. Often, integrating stuff like firebase/supabase etc has been difficult for me compared to setting up pgsq + express + frontend which seemed as the easiest most powerful solution. Since, you know, I'm used to setting up vms, connecting stuff together. Using db as API only and not being able to mess with it seemed un-intuitive.
    Then I found about SSR/SSG, which blew my mind again haha.
    This video is a GEM for me. I've been wondering what would be more performant - nosql with horizontal scaling vs psql with vertical scaling, SSG on serverless combined with SSR.. This really helped me get my thoughts together. Thanks mate!
    What I'd say, though. When talking about DB performance, you have multiple factors which are very important - not only processing and memory + raw db performance (e.g. mongo vs pgsq). but also network outpu of given instance. without load balancer which allows you to increase your network throughput massively you're done. most VMs without autoscaling run on 1GB network. You're going to hit this super quickly, much quicker then TOUCHING, say, 4+ core VPS performance running either mongo/postgres. Could you maybe elaborate on the network side of thing? That could be really interesting video!

    • @TadeasF
      @TadeasF 11 місяців тому +1

      @jonasjonaitis8571 why do you feel the need to publicly demonstrate how much trouble you have understanding written text?
      I wrote that I'm new to web development, trying to pick it up. obivously i'm going to find out about a lot of new technologies, no matter how old they are.
      did this explanation help?

  • @abdulrehmanbaber2104
    @abdulrehmanbaber2104 8 місяців тому

    loved it.

  • @janibolkvadze1553
    @janibolkvadze1553 9 місяців тому

    Legend!

  • @SonAyoD
    @SonAyoD Рік тому

    Great video! Could you take a deeper dive into lamda functions and edge networking?

  • @jjrise
    @jjrise Рік тому

    great video

  • @framegrace1
    @framegrace1 11 місяців тому

    For any startup just starting. The the very few advices from a devops/systems engineer with 20 years in the bussines that will save you a lot of headaches and money in the future:
    For your online service apps:
    - Create 2 users for the DB connections, one readonly and another write only.
    - In whatever language you use create a DB handler for reading and a DB handler for writing, each one using the appropiate usernames. Don't, allow the write handler to be used for reads, in any case.
    - Avoid DB transactions. Any kind of external locking is prefered. (optimistic,etc...). Seriously, there are very few times you will really need them. (Counters, things like that).
    - Do not use stored procedures. NEVER.
    That's all. Thank me when you need to scale your app. Can't list all the benefits, but you'll see this decision will make everything a lot easier. From caching to locking and mostly MONEY.

  • @erickmwazonga8871
    @erickmwazonga8871 Рік тому

    Do more of these!

  • @mayankmaheshwari2544
    @mayankmaheshwari2544 6 місяців тому

    You are a G.O.A.T. tech youtuber

  • @JacobAbraham-twozerosix
    @JacobAbraham-twozerosix 11 місяців тому

    Nice talk!

  • @uta390
    @uta390 Рік тому

    great stuffs : D

  • @Goyo_MGC
    @Goyo_MGC Рік тому

    Great video on the subject Thanks ! Would have been maybe easier to understand with arbitrary values to illustrate your examples. Was really clear nonetheless :)

  • @Dswyy
    @Dswyy Рік тому +1

    What’s the best learning process for new concepts? Heavy practice for hours? Best comprehension techniques?

    • @WebDevCody
      @WebDevCody  Рік тому +1

      Depends on the concept. Sometimes I need to actually prototype something to understand it, other times I can just read about it an get a good enough picture of how it all works

  • @SeibertSwirl
    @SeibertSwirl Рік тому +3

    Good job babe!!! FIRST!!!!! 👑

  • @universe_decoded797
    @universe_decoded797 Рік тому

    Great explanation, is this like an API Gateway? If not maybe can you make a video ❤

  • @samirmishra9946
    @samirmishra9946 Рік тому +1

    Thank you for the amazing explanation! Now I have a clear idea of where k8s & docker come into use and why do we need experts like DevOps engineers.
    I do know some of the basic linux commands and how to deploy a web page or api inside a VM, but you are right, many developers may not know about this, and deploying an application can be another tedious task, as you might face another set of problems figuring out how to deploy it or accept traffic from the internet, etc.
    I have a question, do people expect full stack web developers to know the basic dev operations like deploying and maintaining the app? (on production)

    • @WebDevCody
      @WebDevCody  Рік тому

      I would say to be a full stack, you need to know how to build, deploy, and maintain an application in production. So this means being able to build the front end, backend, integrate with a database, host a database, run migrations on your database, deploy your app, monitor your app, explore production logs, get alerts when stuff fails. A lot of services exist which make the deploying / monitoring part super easy, so at least being able to deploy something to a live environment these days is a must imo.

    • @samirmishra9946
      @samirmishra9946 Рік тому

      @@WebDevCody Got it! Thank you so much! ❤

  • @amasoharnold4762
    @amasoharnold4762 Рік тому

    This topic is actually good i use to watch a lot of codedam videos like this breaking down technologies and how the work
    He did them on a board so this is really ok I appreciate the explanation

  • @kharabkar1827
    @kharabkar1827 3 місяці тому

    One question. As far as i know CDNs are implemented in the network by ISPs. How those CDNs that you mentioned are deployed? Are they as a service from a cloud provider or are deployed manually by e.g. redis?

  • @samirmishra9946
    @samirmishra9946 Рік тому

    I heard of a new tech recently called Vector databases, is it what might be the solution for edge databases?

  • @ivelinivanov3414
    @ivelinivanov3414 8 місяців тому

    Mate, this is very useful, thank you! As I'm watching this I am wondering how is this different for mobile applications ios and google play store. Basically your "UI" is stored on their servers and they take care of people downloading it and you just have to work work on scaling the backend api, right? I am talking about for example a React Native built mobile app. Let's say a giant social network app with millions of users. How would you built something like that?

  • @justice4all719
    @justice4all719 Рік тому

    Would a web hosting service like TMD take care of this if traffic volume increases fast? Is it the kind of things that would have to be done only if I would rent for example a dedicated server without services? Also what about the costs using say planetscale as db, Vercel for functions and another server for login/auth, wouldn't it be better to have a centralized hosting service with redundancy around the globe so DB, functions and everything is always close from one another? Sorry if it doesn't make sense, I'm a newbie, learning all of this :)

    • @WebDevCody
      @WebDevCody  Рік тому

      Idk much about tmd. It depends on the service you rent from them. If you just rent a vps, then no they won’t scale anything for you. Shared hosting would probably be worst since it’s a single server hosting everyone’s applications.
      In regards to using third party database and auth services, usually you can pick regions for these services and have everything close enough together that the latency won’t make much of a difference. Yes, having everything in the same data center will obviously be the fastest approach, and if you are ok writing your own auth and securing your user info, that might save you money and be faster in regards to latency. If you rather just pay a company to manage your auth, that can help you move fast at the start of the project so you can focus on features. There is a lot that goes into good auth, password reset, forgot password, Mfa, properly storing passwords, setting up jwt and sessions, cookies, etc. if your team can do all that, more power to you.
      Idk if anything one approach is better than any other approach, they all have trade offs

  • @tech3425
    @tech3425 Рік тому

    Isn't putting the db, functions and static files on the edge, basically putting a server there?

    • @WebDevCody
      @WebDevCody  Рік тому

      Yeah i mean a server has to host your stuff, edge servers are just located closer to your user “usually”

  • @kumarbt8915
    @kumarbt8915 2 місяці тому

    Can you please share end to end flow how to configure auto scaling my UI application running on. AWS

  • @r1konTheAutomator
    @r1konTheAutomator 11 місяців тому

    2:50 he drew an original PlayStation it looks like 😂

  • @haodeng9639
    @haodeng9639 9 місяців тому

    you are missing the db scaling, for example sharding or partition.

  • @codingsense
    @codingsense Рік тому

    it would be a good idea if you can make a practical example of this

    • @WebDevCody
      @WebDevCody  Рік тому

      Explain more of what you mean?

    • @codingsense
      @codingsense Рік тому

      @@WebDevCody you basically take a Todo app or what ever and you show how to scale it , I'm struggling with scaling a multi tenant app using mern stack of you could tell what are best practices of this kind of apps (you could combine multi tenant apps with scalability) thanks 🙏

  • @notfadeaway6617
    @notfadeaway6617 10 місяців тому

    "firestore from frontend/mobile app" should be considered as one of scaling application phase?

  • @KhaledKimboo4
    @KhaledKimboo4 Місяць тому

    You should deploy everything yourself you'll be grateful for how much you can learn. Even if they're not perfect. Taking the habit of abstracting everything makes you a tool hostage

  • @QckSGaming
    @QckSGaming Рік тому +1

    Can confirm, this is how the internet works at the current day. One thing that kinda irked me is your statement of "You don't really have to worry about this stuff, devops/systems/db engineers handle this"; If you throw your app over the wall with zero consideration about this stuff, it's gonna suck for every party involved (you, your devops guys, your customers and their users). I love that you shed light in to the cloud world as well.

    • @WebDevCody
      @WebDevCody  Рік тому +1

      I agree, everyone on the team needs to at least understand how all of this stuff works. I made that statement with the idea that most of my audience are beginners just trying to deploy their todo list next app, so I still don't think they need to worry about all of this... yet. They should just use a service like vercel, netlify, aws amplify to deploy their apps until they feel confident in diving into the deep end of the cloud world, because it can get pretty dang deep to be honest. What i've seen is certain individual enjoy doing this type of work, and others HATE it. It's also important to consider the size of the product and team in regards to when you need to start caring about this stuff more. On projects I work on, our contracts state we MUST use AWS to host everything, so my hands are tied to use AWS, but I sometimes would like to not waste a full week messing with terraform code.

  • @muskaos
    @muskaos 11 місяців тому

    Basic service would be a static web page running direct on server hardware, no javascript (the horror!) , no database. Just CSS. I know everyone is all about VM, and back end processing services, but not everyone needs that.

  • @vishalamle8330
    @vishalamle8330 11 місяців тому

    These are age old design concepts for very small starup running on monoliths… that also 10 years back…
    these days microservices are industry standard… K8S is not at all meant for monolith horizontal scaling as u r mentioniing… use of message driven architecture is very easy thede days like kafka to put between backend and DB…
    Your tutorials are good but please focus on industry wide used deisgns like microservices, event driven based etc. so that your audience will get actual enterprise level content…
    Nothing to disrespect you… Just a suggestion… keep up the good work 👍🏻

  • @gordonfreimann
    @gordonfreimann Рік тому

    great talk, well explained.

  • @SolelyCS
    @SolelyCS Рік тому +2

    Great Video! Congrats on 100k subscribers :)

  • @gauravvan
    @gauravvan Рік тому

    Congrats for 100k 🎉👏