How to build YouTube like website with AWS?

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 77

  • @codedamn
    @codedamn  3 года назад +10

    Start Learning Full Stack Development on codedamn: cdm.sh/fullstack

    • @sammas533
      @sammas533 3 года назад

      Do you know when the DevOps path will be available on your site pls?

  • @coderxchris5099
    @coderxchris5099 3 года назад +4

    I love how you explained the AWS tools. A further training on this from you would be amazing! Thank you for your wonderful teachings!

  • @arpanghoshal2579
    @arpanghoshal2579 3 года назад +6

    This was awesome one question why not cut down the complexity related to maintaining SQS, launching EC2s and downscaling them, etc by using aws lambda instead.
    The flow would be like this:
    Content uploaded to source bucket -> triggers lambda -> lambda spins up ffmpeg does the conversion and copies to destination s3 bucket -> users request videos from destination bucket.
    With lambda, you have to pay only for what you use, so I think it's cheap and scales very well. The only possible issue might be aws lambda can run for max 15min, so converting big video files might be problematic but even for that, we can use "AWS batch" which is similar to lambda but does not have this 15min limitation.
    In any case, I think it would cut down the complexity of the current architecture.

  • @KDCloudy
    @KDCloudy 3 года назад +22

    Great video - so much to learn from this than regular system design videos haha. I got some front-end questions: which player are you using? Custom built or open source like Shaka/Videojs? Also any plans to shift to HLS/DASH in future?

  • @dcolum23
    @dcolum23 2 года назад

    This video was fantastic for understanding the entire workflow. Extremely well explained.

  • @binihalex8097
    @binihalex8097 18 дней назад

    Thanks man. Very informative

  • @Ayush1397
    @Ayush1397 3 года назад

    super knowledgeable video! Hoping to see more underlying infra related video soon like this one!

  • @parinav10
    @parinav10 3 года назад

    This is something exquisite, love the fact that you've tried out the Whiteboard approach. Would certainly be looking forward to more videos from you.

  • @jasper5016
    @jasper5016 Год назад

    Very nice video. Thanks. Please bring more such content.

  • @JenilCalcuttawala
    @JenilCalcuttawala 3 года назад +3

    Damn good.! Keep this architecture series alive...
    I am really curious about one particular thing where you chose EC2 and not Fargate? According to some rough calculation, Fargate seems to be a better option for this scenario.

    • @aashishpaudyal5306
      @aashishpaudyal5306 Год назад

      is it as cost effective as spot instances? really want to know.

  • @JohnWeland
    @JohnWeland 6 месяцев назад

    I would love to see this expanded or "split" to show handling a live stream as well. This would be great for VODs but thinking about it there would (have to) be differences in a live stream as the file would be constantly in transit (RTSP?), but then you would almost need live transcoding for your viewers sake. Finally after the stream the same process would happen as above for storing the VODs

  • @saurabhshukla2605
    @saurabhshukla2605 3 года назад

    Great video, learnt allot, a code implementation means everything in action will be great to watch 😁😁😁

  • @d33p4k5
    @d33p4k5 3 года назад +1

    Learned a lot

  • @geekthegeek730
    @geekthegeek730 3 года назад

    Man man man! i really liked this video. I am building one with the same architecture. 🔥

  • @leanprogrammer
    @leanprogrammer 3 года назад

    More videos like these please!!! 😎

  • @codetech6099
    @codetech6099 3 года назад +1

    Can you share some resources about architecture , so we can also learn ..more on these types of topics. Like scalability , availability etc

  • @kunalsanjaybutiya5944
    @kunalsanjaybutiya5944 3 года назад

    Please make a series of video on this topic

  • @okeyshourovroy2769
    @okeyshourovroy2769 3 года назад

    Please make a course on this topic. It will help a lot.

  • @abhishekvishwakarma9045
    @abhishekvishwakarma9045 3 года назад +1

    Oh, really Nice and detailed HLD explanation of an application like YT 🔥seems like it is more complex than we think but you made it very crystal clear for a newbie in HLD like me. One video on what design patterns should a react developer (or full-stack moving to NextJS) should know to be a better developer. 👍

  • @evitimirp
    @evitimirp 2 года назад

    good video,i'm trying to gather info to understand what i need to know to make my first project which is a fake money poker site, something similar needs to happen since everytime a table is created there probably needs to be an es2 instance that runs the table or something.

  • @shramlearn
    @shramlearn Год назад

    Great video

  • @ijpterror77
    @ijpterror77 3 года назад +2

    Hi mehul thanks for the video amazing explanation !! Can you just make a practical video on how this works from front to back with MERN application cuz ter r no such videos out there which in terms of scalable apps , it will be much more helpful !

  • @codetech6099
    @codetech6099 3 года назад

    Do more videos like this about backend and architecture ... ❤️❤️

  • @YatheeshRaju
    @YatheeshRaju 3 года назад +1

    curious to know how much is your aws bill ? can you share the approximate value of running your full infra

  • @suryakantasahoo9935
    @suryakantasahoo9935 3 года назад

    Great video !!

  • @sachin_dev
    @sachin_dev 10 месяцев назад

    What about the serverless architecture with aws ECS. Is that still relevant? which one is more preferred EC2 or ECS ? And why? Thanks

  • @OnlyJavascript
    @OnlyJavascript 3 года назад

    finally, youtube got some really useful videos. ty for the content. can u make one for payment gateways too?

  • @tejasnikam3287
    @tejasnikam3287 2 года назад

    Very helpful

  • @aashishpaudyal5306
    @aashishpaudyal5306 Год назад

    can you suggest which instance type would be most suitable for this. Please.

  • @ExpoDev_Dash
    @ExpoDev_Dash 4 месяца назад

    Love it

  • @VinothKumar15
    @VinothKumar15 2 года назад

    Can you tell. How the video resume or continue watching capture with timestamp saved with user profile and again start with what reaming left to watch...

  • @tora3492
    @tora3492 3 года назад +2

    actually, 1080p is good. 4K is not required.

    • @Tarunyadav976
      @Tarunyadav976 3 года назад

      why not?

    • @tora3492
      @tora3492 3 года назад

      @@Tarunyadav976Everything is perfectly visible in 1080p. Also the render time is less, computing power required is less. Occupies less storage.

  • @mdjahidulislam9205
    @mdjahidulislam9205 3 года назад

    thanks.

  • @chinmoykr
    @chinmoykr 2 года назад

    You forgot to add the storage fees for s3 buckets. Basically in this structure you are paying twice on storage . Although it is quite low but you are paying twice, one to store raw videos on s3 bucket no 1 and another is to store processed videos...

  • @TheRn35
    @TheRn35 2 года назад

    Just wanted to understand. Why not use lambdas instead of EC2?

  • @Sonu-tg6tg
    @Sonu-tg6tg 3 года назад

    Thanks for such awesome videos, always waiting for your new videos, will be glad to get t-shirt giveaway

  • @KrishnenduKDG
    @KrishnenduKDG 3 года назад

    Thanks a lot for this informative video... But I have one question... As You said that anybody can upload a .txt instead of a video and then the thing which happens is that it keeps on failing multiple times until it is shifted to DLQ... Now as fro every processing,we need an EC2 Bucket to be created... So Failing multiple times causes multiple EC2 Buckets to be created... Now to avoid this, can't we check it beforehand before uploading it in the first S3 Container.. Like what I try to convey is that, what if we try to setup an error and exception check before even uploading the video in the S3 Container... maybe that could be setup using an EC2 Server as well before the S3 Containers........

  • @Venkatesh-vm4ll
    @Venkatesh-vm4ll 2 года назад

    What is the difference between your architecture and media convertor

  • @akashrajpurohit97
    @akashrajpurohit97 3 года назад +2

    Thanks for sharing this mehul. I'm curious about one thing, you use ASG to start/stop EC2 instances for processing as you mentioned, Did you consider using docker + kube to do this task?
    If yes then what was the factor to go ahead with this architecture over the docker + kube one.

    • @codedamn
      @codedamn  3 года назад

      For starters I didn’t know how to work with kubernetes. I’ve tried to understand kubernetes but find another simpler solution in most cases

  • @manan5
    @manan5 3 года назад

    Hey, So I had a doubt. Why do u use the first s3 bucket. Like u could do something like have a proxy server setup and while its uploaded, The video can be sent as a passthrough stream to backend server. And When one server maxes out, it can spin up another one. And add it to the proxy via runtime api and when the processing is finished it can directly upload it to the production s3 bucket.

    • @aashishpaudyal5306
      @aashishpaudyal5306 Год назад

      to do that you it should be able to transcode in realtime and cannot be interrupted so you cannot use spot instances where you can save money.

  • @venkatesh2788
    @venkatesh2788 3 года назад +1

    Will u make this into a code

  • @leebarnard3898
    @leebarnard3898 2 года назад

    Hi, how could you adapt this to work with audio instead, or in addition to video? Thanks

  • @amanagarwal2022
    @amanagarwal2022 3 года назад

    For the development purposes are the aws services available on local dev machine??

  • @t-rex4040
    @t-rex4040 3 года назад

    grt tutorial

  • @shastri3303
    @shastri3303 Год назад +1

    Damn Good

  • @sheeraz1022
    @sheeraz1022 3 года назад

    Can we use Lambda function instead of launching Ec2 machine for every video, wouldn't it be more efficient or cost effective?

    • @codedamn
      @codedamn  3 года назад +2

      Lambda has hard limits on storage and 15 minute execution time

  • @avegeta1
    @avegeta1 3 года назад

    How do you put the msg back into queue when spot instances are taken down by AWS?

    • @codedamn
      @codedamn  3 года назад +3

      You don’t. Instead, on the EC2 while you’re processing the video you set a timer to keep the message in queue “invisible”. If your EC2 crashes or dies for some reason sqs will stop receiving the visibility message and would automatically make the message visible in a few minutes

  • @sreekumarmenon
    @sreekumarmenon 3 года назад

    why did you prefer ec2 instead of lambdas?

    • @codedamn
      @codedamn  3 года назад

      Lambdas have a hard 15 minute timeout limit and very limited (512MB) disk space available

    • @sreekumarmenon
      @sreekumarmenon 3 года назад

      @@codedamn Thanks, clear presentation

  • @souravdas423
    @souravdas423 2 года назад

    what is the work of ffmpeg & ec2 there. When uploading we directly upload in s3 with suppose multer. Store the link in mongodb and when the user wants we can just send the link in front=end and show the video with a video tag. Can anyone please explain why it won't work?

    • @codedamn
      @codedamn  2 года назад

      It would work but raw video files are rarely something you want to ship to the user directly. For instance, a 4K60FPS video shot on iPhone would be 4GB for only 10 minutes of video. When you upload it on RUclips, youtube would process it in the same resolution with same FPS but at a much much smaller file size so that everyone could watch it

    • @souravdas423
      @souravdas423 2 года назад

      @@codedamn Ok got it. Thanks man. I really love your videos and recommend all my friends to your channel

  • @goodstuff2read
    @goodstuff2read 11 месяцев назад

    Is this channel still active? Have you ever deployed this with any DRM so that users cannot download the videos?

  • @realcirno1750
    @realcirno1750 Год назад

    why is cloudfront so expensive? T_T

  • @aadarshktofficial
    @aadarshktofficial 3 года назад

    11 9 after point

  • @lakshman587
    @lakshman587 3 года назад

    COMMENTED FOR T SHIRT GIVEAWAY!! :)

  • @omlondhe
    @omlondhe 3 года назад

    Noice vedio 😁

  • @hammad8965
    @hammad8965 3 года назад

    💚

  • @VijayKumar-pd7vv
    @VijayKumar-pd7vv 3 года назад

    Finally I can stream my game's to my friends and show them whose fault was.. To lose the game lol 😆

  • @mysoregopinathshantanu8800
    @mysoregopinathshantanu8800 3 года назад +1

    May the like be on this comment.

  • @arpandas461
    @arpandas461 3 года назад +1

    Can we use FIREBASE instead of AWS.... ????

  • @gm_youtube7
    @gm_youtube7 3 года назад

    🧐🧐🧐

  • @RahulKumar-eq3ev
    @RahulKumar-eq3ev 2 дня назад

    Show ads in your codedamn website videos in your platform after every 30 sec or 1 min duration this way you can make the video for free or make some courses free through ads implementation and users get the some courses for free and there be chances the user subscribe because of ads to pro membership. Profit from both side from user and from you also.

  • @videocorner2498
    @videocorner2498 3 года назад

    Make some video on hacking

  • @linccodes
    @linccodes 3 года назад

    A programmer who uses a whiteboard to teacher, my lecturer... Nice hair style btw ❤️

  • @officialnizam
    @officialnizam 3 года назад

    random comment XD