How to build YouTube like website with AWS?

  Рет қаралды 20,937

Mehul - Codedamn

Mehul - Codedamn

Күн бұрын

Пікірлер: 77
@codedamn
@codedamn 3 жыл бұрын
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 жыл бұрын
I love how you explained the AWS tools. A further training on this from you would be amazing! Thank you for your wonderful teachings!
@KDCloudy
@KDCloudy 3 жыл бұрын
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?
@JenilCalcuttawala
@JenilCalcuttawala 3 жыл бұрын
+1
@arpanghoshal2579
@arpanghoshal2579 3 жыл бұрын
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.
@dcolum23
@dcolum23 2 жыл бұрын
This video was fantastic for understanding the entire workflow. Extremely well explained.
@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.
@Ayush1397
@Ayush1397 3 жыл бұрын
super knowledgeable video! Hoping to see more underlying infra related video soon like this one!
@JenilCalcuttawala
@JenilCalcuttawala 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 2 жыл бұрын
is it as cost effective as spot instances? really want to know.
@jasper5016
@jasper5016 Жыл бұрын
Very nice video. Thanks. Please bring more such content.
@saurabhshukla2605
@saurabhshukla2605 3 жыл бұрын
Great video, learnt allot, a code implementation means everything in action will be great to watch 😁😁😁
@JohnWeland
@JohnWeland 7 ай бұрын
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
@binihalex8097
@binihalex8097 Ай бұрын
Thanks man. Very informative
@abhishekvishwakarma9045
@abhishekvishwakarma9045 3 жыл бұрын
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. 👍
@geekthegeek730
@geekthegeek730 3 жыл бұрын
Man man man! i really liked this video. I am building one with the same architecture. 🔥
@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...
@sachin_dev
@sachin_dev 11 ай бұрын
What about the serverless architecture with aws ECS. Is that still relevant? which one is more preferred EC2 or ECS ? And why? Thanks
@codetech6099
@codetech6099 3 жыл бұрын
Do more videos like this about backend and architecture ... ❤️❤️
@d33p4k5
@d33p4k5 3 жыл бұрын
Learned a lot
@leanprogrammer
@leanprogrammer 3 жыл бұрын
More videos like these please!!! 😎
@aashishpaudyal5306
@aashishpaudyal5306 2 жыл бұрын
can you suggest which instance type would be most suitable for this. Please.
@YatheeshRaju
@YatheeshRaju 3 жыл бұрын
curious to know how much is your aws bill ? can you share the approximate value of running your full infra
@codetech6099
@codetech6099 3 жыл бұрын
Can you share some resources about architecture , so we can also learn ..more on these types of topics. Like scalability , availability etc
@ijpterror77
@ijpterror77 3 жыл бұрын
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 !
@leebarnard3898
@leebarnard3898 2 жыл бұрын
Hi, how could you adapt this to work with audio instead, or in addition to video? Thanks
@okeyshourovroy2769
@okeyshourovroy2769 3 жыл бұрын
Please make a course on this topic. It will help a lot.
@shramlearn
@shramlearn Жыл бұрын
Great video
@suryakantasahoo9935
@suryakantasahoo9935 3 жыл бұрын
Great video !!
@kunalsanjaybutiya5944
@kunalsanjaybutiya5944 3 жыл бұрын
Please make a series of video on this topic
@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 2 жыл бұрын
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.
@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........
@amanagarwal2022
@amanagarwal2022 3 жыл бұрын
For the development purposes are the aws services available on local dev machine??
@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.
@OnlyJavascript
@OnlyJavascript 3 жыл бұрын
finally, youtube got some really useful videos. ty for the content. can u make one for payment gateways too?
@TheRn35
@TheRn35 2 жыл бұрын
Just wanted to understand. Why not use lambdas instead of EC2?
@akashrajpurohit97
@akashrajpurohit97 3 жыл бұрын
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
@Venkatesh-vm4ll
@Venkatesh-vm4ll 2 жыл бұрын
What is the difference between your architecture and media convertor
@aashishpaudyal5306
@aashishpaudyal5306 2 жыл бұрын
cheaper
@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...
@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 жыл бұрын
Lambda has hard limits on storage and 15 minute execution time
@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 KZbin, 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
@venkatesh2788
@venkatesh2788 3 жыл бұрын
Will u make this into a code
@Sonu-tg6tg
@Sonu-tg6tg 3 жыл бұрын
Thanks for such awesome videos, always waiting for your new videos, will be glad to get t-shirt giveaway
@tejasnikam3287
@tejasnikam3287 2 жыл бұрын
Very helpful
@goodstuff2read
@goodstuff2read Жыл бұрын
Is this channel still active? Have you ever deployed this with any DRM so that users cannot download the videos?
@avegeta1
@avegeta1 3 жыл бұрын
How do you put the msg back into queue when spot instances are taken down by AWS?
@codedamn
@codedamn 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
@tora3492
@tora3492 3 жыл бұрын
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.
@ExpoDev_Dash
@ExpoDev_Dash 5 ай бұрын
Love it
@shastri3303
@shastri3303 Жыл бұрын
Damn Good
@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
@t-rex4040
@t-rex4040 3 жыл бұрын
grt tutorial
@realcirno1750
@realcirno1750 Жыл бұрын
why is cloudfront so expensive? T_T
@mdjahidulislam9205
@mdjahidulislam9205 3 жыл бұрын
thanks.
@omlondhe
@omlondhe 3 жыл бұрын
Noice vedio 😁
@arpandas461
@arpandas461 3 жыл бұрын
Can we use FIREBASE instead of AWS.... ????
@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 😆
@lakshman587
@lakshman587 3 жыл бұрын
COMMENTED FOR T SHIRT GIVEAWAY!! :)
@mysoregopinathshantanu8800
@mysoregopinathshantanu8800 3 жыл бұрын
May the like be on this comment.
@RahulKumar-eq3ev
@RahulKumar-eq3ev 28 күн бұрын
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.
@hammad8965
@hammad8965 3 жыл бұрын
💚
@aadarshktofficial
@aadarshktofficial 3 жыл бұрын
11 9 after point
@gm_youtube7
@gm_youtube7 3 жыл бұрын
🧐🧐🧐
@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
GraphQL vs REST APIs | What's the Best Kind of API?
14:57
Mehul - Codedamn
Рет қаралды 29 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
This is *exactly* how much it costs to run our tech startup on AWS
22:26
Mehul - Codedamn
Рет қаралды 26 М.
Top 10 VS Code Productivity Hacks | VS Code Tips And Tricks
14:02
Mehul - Codedamn
Рет қаралды 17 М.
Raspberry Pi versus AWS // How to host your website on the RPi4
8:39
Web Server Concepts and Examples
19:40
WebConcepts
Рет қаралды 266 М.
5 System Architecture Questions For Web Developers [Interview Level]
1:13:49
programming projects that taught me how to code
9:49
isak
Рет қаралды 314 М.
How To Create The YouTube Video Player
1:23:28
Web Dev Simplified
Рет қаралды 186 М.
Highly Scalable Backend with AWS  + MongoDB [Architecture video]
14:27
Mehul - Codedamn
Рет қаралды 15 М.
Build with Me: Launch a website on Amazon S3 | AWS Project
8:04
Tech With Lucy
Рет қаралды 132 М.
How to Use AWS S3 with NodeJS?
30:39
Piyush Garg
Рет қаралды 60 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН