Why I'm moving my side project from Vercel to AWS

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • TLDR: I like to waste time and use AWS for trying to save $20 🤣
    💬 Discord / discord
    🔔 Newsletter newsletter.web...
    📁 GitHub github.com/web...
    📺 Twitch / webdevcody
    🤖 Website webdevcody.com
    🐦 Twitter / webdevcody

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

  • @WebDevCody
    @WebDevCody  Год назад +39

    Just to clear things up, aws has an option to click through their amplify dashboard for deploying your next application and connecting it to auto deploy on pushes to your git repo.
    What I’m doing in this video is more complex and probably unnecessary for a small side project. I’m a fan of decoupling the code from the deployment, creating automated ci/cd pipelines, infrastructure as code, etc. if you just want to write code and have it deploy, amplify, netlify, railway, fly.io, etc are all good options.

    • @focusotter
      @focusotter Год назад +2

      Happy to chat on how the Amplify CLI can be used as the IaC tool of choice. If wanting to go even more separated, Amplify integrates really well with the CDK. I'd be happy to chat on that as well :)

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

      @@focusotter any clue if it works with terraform? I’m not a big cloudformation fan and don’t like tools that use it

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

      @@WebDevCody A common approach I've seen is for a team to create a separate backend (similar to how you did) in Terraform, and then in a separate repo use Amplify Hosting to automate CI/CD, and connecting domains to route53. To connect the two, Amplify also has web and mobile libraries that can be used on the frontend that take in backend values (API endpoints, cognito userpool Ids etc) so that the two can talk to one another :)

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

      With this setup are you being billed for the bandwidth for your website at AWS amplify rates or just normal Cloudfront rates

  • @ricko13
    @ricko13 Год назад +176

    I've always avoided using AWS because I feel overwhelmed by the huge amount of configurations it has. And I'm scared I'll end up getting charged $5000 just for accidentally configuring something I shouldn't have

    • @neoflyboy
      @neoflyboy Год назад +11

      they may create a bot/crawler to hit your application and generate money... the money making machine of the richest man on Earth...

    • @gavinlew8273
      @gavinlew8273 8 месяцев назад +13

      Yeah, you'd need to attend a course just to "understand" the pricing plan.

    • @user-yh3nj2nr6b
      @user-yh3nj2nr6b 8 месяцев назад +7

      aws sucks

  • @FelipeRodrigues-zh3gx
    @FelipeRodrigues-zh3gx Год назад +111

    Would love if you could make some kind of tutorial series going from: creating your next.js application (just a blanket application as example) to deploying on amazon like this. Anyway, thanks for the video!

    • @mixyyy
      @mixyyy Год назад +6

      This would be super helpful!

    • @SonAyoD
      @SonAyoD Год назад +5

      Yeah this a great idea, I’m very much interested in devops too

    • @WebDevCody
      @WebDevCody  Год назад +36

      I’ll try to make something like that if I have time

    • @anasazkoul4899
      @anasazkoul4899 Год назад +3

      I definitely agree with guys here, I mean I was listening to you and myself as a beginner have always been wondering about deployment and whether big companies deploy the same way I do on Netlify or whatever and you just answered my questions but where to start ? I have no clue.

    • @WebDevCody
      @WebDevCody  Год назад +5

      @@anasazkoul4899 I don’t think big companies usually would not use netlify or vercel other platform as a service. Usually they tons of existing systems and a custom company wide process they use things like aws or azure to deploy their services.

  • @focusotter
    @focusotter Год назад +48

    Hey! Focus Otter here from the AWS AppSync team, formerly Amplify team 👋 Would love to hop on stream or just a general chat to show how Amplify can streamline this process. While it's possible to do it the way you showed in the video, it's not the recommended way and can be streamlined in a comparable way to Vercel (without the $20/month charge, and without Serverless framework).

    • @bernhardsmuts2265
      @bernhardsmuts2265 Год назад +9

      PLEASE Do more amplify courses and tutorials... I have been using AWS Amplify for the last year and a half, and it's getting a lot better but the docs are very "brief", and assume a lot of AWS knowledge (Thus making it hard for beginners to get going on) and there is very little on the new V2 Transformer for GraphQL. I really think there is a good market for Amplfy, it just needs more tut videos. I am still picking through Nadir Dabit's videos to try and get the relationships working on Appsync (Just my 2 cents)

  • @PASTRAMIKick
    @PASTRAMIKick 9 месяцев назад +7

    my rule is that if I'm doing something for mostly learning and the harder alternative has benefits, I will always go for the harder stuff, I learn more and in this case save some cash, thanks for the insight.

  • @rustystrings0908
    @rustystrings0908 Год назад +17

    I am a software engineer at a large enterprise, I use AWS on a daily basis to power a mobile app that had 200,000 active users last month. I'm about to do nearly the same thing you're doing here with all these services to deploy a web app soon, which will have double if not triple the traffic. Learning AWS, becoming a solutions architect and actually using all the services has increased the possibilities for me to build anything there.

    • @WebDevCody
      @WebDevCody  Год назад +3

      That’s cool, yeah there is a lot to learn, good luck on your project!

  • @DamirSecki
    @DamirSecki Год назад +5

    done this couple of times over the year and lost my mind how mind bogglingly complicated AWS deployment is... and then connect the emails, DKIMs, etc... oh my dear.... when I learned about vercel and tried it out.... I prefer paying $100 pm (even though I pay only $20 - for many project within the same user)... since my hour of time is worth much more... and my piece of mind... VERCEL ftw! So glad it exists and is soooooo easy to do anything... just works!

  • @pwbandwidth
    @pwbandwidth Год назад +12

    I always preach Terraform to people for this reason. Why click through an endless sea of GUIs (especially as a complete beginner), when you can just pull down somebody's template, fill in some variables, run terraform apply, and just have it set all this up for you? It's really great, and I'd recommend everybody learn some Infrastructure as Code tool, it will save you so much time especially as you build confidence with it.

    • @WebDevCody
      @WebDevCody  Год назад +4

      Yeah, terraform is nice. I want to try CDK out or Pulumi. IaC is critical on any project with more than a handful of services, and even more important if your project needs multiple environments dev, stg, test, prod. We use terraform at work to deploy all of our application to AWS. If you're doing click ops, you'll regret it later when you accidentally change something and you forget what you changed.

    • @tech3425
      @tech3425 Год назад +2

      @@WebDevCody Coming from Cloudformation yaml, CDK is heavenly

  • @mprync
    @mprync Год назад +4

    My TLDR; Time is FAR more valuable than money.
    The TLDR in your description is pretty accurate for this video :D. If you value $20 more than days of work and configuration, then this approach will definitely suit you, and the maintenance of it amounting to many man hours + an extra few people to hire (DevOps) costing magnitudes more than $20 lol.
    Vercel's "per user" billing is related to users who can access your Vercel dashboard, and not developers actively coding on the nextjs app. It is per user because Vercel gives you analytics and metrics out the box, these things aren't free to serve a whole team of people, especially querying that data manually, which they allow. $20 is literally nothing to anyone in our profession. $20 for a nice, fast and responsive observability dashboard for all my apps? No problem from me.
    The actual problem is the bandwidth pricing, it's pretty high compared to AWS but lets be real, the magnitudes of convenience and time saved (i.e man hours) managing your infra, I think the cost is more than reasonable.
    If you did all this yourself on AWS, you will be paying more to hire people to maintain it all if you factor in everything detail of time / money with hiring etc. If you don't hire people to save money, you'll never get to market in time. Its all a balancing act.

    • @WebDevCody
      @WebDevCody  Год назад +4

      I agree to an extent. You can get an entire next app deployed to aws with very little effort. Vercel gives shitty logs, aws has cloudwatch which tracks production logs for as long as you want. The tricky part is if you app gains traction, you have to upgrade to enterprise vercel which I hear becomes thousands a month

  • @Val-tf8nx
    @Val-tf8nx Год назад +23

    I ended up moving from Vercel to Railway because of this "non-commercial" thingy, and I'm happy so far. It gives you $5 credit each month, you pay if only it goes beyond that. Perfect for small business websites.

    • @keent
      @keent Год назад +5

      been using Railway and Vercel both!
      For developing phase i would still use Vercel to not eat up my Railway credits. I may use Railway instead of Vercel if i would push it on production.

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

      ​@@keent hello, my fullstack app queries performance are slow and currently deployed in vercel. Will my fetch queries perform better if I move it to Railway?

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

      ​@@alexiskenalvarez3764Are you using Prisma? The high response time might be because of cold starts, look it up... Prisma uses a Rust binary as querie emgine and that makes colds starts take a lot of time.

  • @omomer3506
    @omomer3506 Год назад +3

    Lol the echo WTf thing is perhaps the single most relatable thing i have seen on any coding channel lol, 😅

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

      hahaha my exact thoughts...lost in the sauce

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

    I know it wasn't the focus of the video but the first few mins you spent breaking down the pricing for vercel was so good. I really enjoyed that and learnt something for my own stuff as well.

  • @EddyVinck
    @EddyVinck Год назад +5

    I've been learning AWS for similar reasons. Currently chipping away at a web scraping project!

  • @cas818028
    @cas818028 Год назад +3

    We wanted to use Vercel at my previous company till they told us we are looking at 33k a year. We brought it in house into Azure. Saved a ton and now I also use aws for everything

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

    Thanks! Am I alone who using simple VDS + Nginx for this simple homepages.?
    - No worries about huge cost
    - Host multiple website to share the fix cost
    - No booting time for lambda function
    For sure, all this is not intended to be scaled, like simple homepages :-)

  • @cas818028
    @cas818028 Год назад +4

    Amplify also has first class support for Next and Next 13. You can go pretty far with just the amplify CLI. They also have a amplify studio which is a web GUI to manage all that for you. Looks similar to fire base

  • @rainx0r
    @rainx0r Год назад +2

    1:35 when vercel says $20/user/month, that's per user that has access to the vercel dashboard and is allowed to do stuff on it, not user of your app. usage limits etc are completely independent and are found by scrolling on that page, the free tier has 100GB of bandwidth, vs the Pro tier that has 1TB of bandwidth included. if you're not pulling 100gb you only need to go pro as you said if you're hosting a commercial app (and care about breaking their TOS)
    2:35 if you're using more than 1TB of bandwidth you get charged $40 per extra 100gb, which is also on the usage limits section of that page if you scroll down, no need to contact sales. it does seem a little pricey though say if you're pulling 1.5TB it's $220. a cost comparison with AWS would be nice, though since vercel is using AWS under the hood (their cloud prodict is just a fancy devops company on top of it really) I can't imagine it'd be too different, but maybe it is? again that'd be something that'd've been nice in a "vercel vs aws" video

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

      Good points, yeah I’ve just been hosting my stuff on amplify. Obviously a worst dev experience, but I think my apps been running for 2 weeks and I owe like .001 due to build minutes or something

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

      If I deployed to Vercel, what is the 100GB that I could pull ? Assets like images ???

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

    Firebase is what you’re looking for. Free easy hosting of static files like this, with SSL automatically built in.

  • @crftr-com
    @crftr-com Год назад +4

    A level explanation of how much $20/mo can save a solo dev. That said, I also prefer being close to the infra. My current go-to IaC framework is Pulumi. I can define all these little finishing details in JS and keep them in git along with the app code. It works for me.

  • @andre-le-bone-aparte
    @andre-le-bone-aparte Год назад +1

    Would be cool to see a video on each of those AWS services!

  • @andre-le-bone-aparte
    @andre-le-bone-aparte Год назад +1

    just found your channel. excellent content - another sub for you sir!

  • @Kevin-fl4rn
    @Kevin-fl4rn Год назад +3

    Amazon looks so complex. Would love to see a beginner walkthrough with deploying a full stack app

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

    Hey Cody, I would love to see you create videos about programming paradigms and maybe some more advanced aspects that come with them. Would greatly appreciate it 🙏👍

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

    Worth noting : Lots of companies (including some of my employers) use serverless. It might not be perfect. But its hella better than "without" 🌹

  • @loganlandonline
    @loganlandonline 5 месяцев назад

    AWS bandwidth is an insane cost (at scale). If you are able to able to Dockerize it there are better options. Vultr or DO have fixed bandwidth costs for an extra bit of work.

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

    I did a lot of this stuff for my final project in college and felt like it was a silly project because I really didn't comprehend all of the steps to set up on amazon but I actually followed what you were saying pretty well so maybe it wasn't too bad 😅

  • @brokenmold
    @brokenmold Год назад +3

    That is “suggested” usage, also look at the deeper price breakdown page for incremental usage… Enterprise is just that, Enterprise.
    Sidenote: Vercel is a really nice UI running ontop of AWS Lambda (set to edge). The only lock-in is learning to work with AWS in the first place. Also AWS adds up fast than you would think by looking at the pricesheet(s).

  • @SeibertSwirl
    @SeibertSwirl Год назад +2

    Good job babe! Love ya

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

    Did a bunch of stuff in serverless when it was the hotness, it was the best way to get infrastructure up in AWS for lambda since learning how to make cloud formation processes seems to be the alternative and sucks. I think for people starting a project it sounds like going to vercel route might be the best option until you need to fine tune the resource management or the deploy pipeline because imagine having to setup all the AWS stuff before you even know you want to continue the project lol.

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

      for sure, it's a LOT of work doing things "correctly" in AWS. You'll need either CDK, CloudFormation, or Terraform to do IaC. Then you'll need an automated CI/CD pipeline to deploy those changes when you merge to main. For more smaller projects, you just need a merge main & deploy type of process, but for larger teams and larger projects, usually the complexity of the pipeline requires more control over deploying to your infrastructure from what I've seen.

  • @Andres-it2du
    @Andres-it2du Год назад +1

    I understood "personal or non-comercial" as literally that - either any personal (commercial or not) or non-commercial (personal or team i.e non-profit).
    Edit: I've looked at it and it's strictly non-comercial, they have a Fair Use page where you can learn more, but tldr is anything that generates you income exluding asking for donations is not allowed on the Hobby plan

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

      so a landing page for my business that has a form that clients can submit to contact me, does that generate me income? probably you could argue yes right? or if their app helps me build a newsletter which I end up selling courses on, probably right? that's my main concerns.

    • @Andres-it2du
      @Andres-it2du Год назад

      @@WebDevCody yeah that sounds like something they would consider generating you income. Personally I would just pay the 20 bucks cause I'm not a devops by any means and it's not really that much money if it's for a business.
      As for the bandwidth thing the 20 bucks plan and the enterpise plan are pay-as-you-go model, it's 40 bucks per 100GB after the limit is reached. Kinda expensive, but also a tb a month is a buttload of data and if you are shipping that it's probably worth it to invest in learning AWS, but most usages are gonna be way below that.
      Nice video btw, thanks!

  • @charliesta.abc123
    @charliesta.abc123 Год назад +1

    I'll be sticking with my VPS deployments using docker swarm thanks.

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

      Probably a better option to be honest

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

      Well then you loose the whole „pay as you go“ thing as you pay for unused ram/cpu, etc on your vps

  • @Hiperultimate
    @Hiperultimate Год назад +2

    This is kind of a scary video for me lol

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

    Hey man. Nice video! Here is my two cents: I'd rather spend time working on frontend and backend than hosting. As someone with little time, not needing to worry about CI or Docker or SSL is worth the code quality or performance you give up by using a metaframework like sveltekit and a hosting site like railway. As long as you aren't facebook, most problems like realtime or database can be fixed by using a low-cost tier api or resource from an external company. AWS may be the gold standard for large scale companies but my side project doesn't need to worry about kubernetes. Additionally, having access to less resources forces you to write more efficient code. For the time being, I'm fine without AWS

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

      That’s fine and those are good arguments. On a smaller team or project, you don’t want to use aws. But even with vercel, they don’t provide production logs, so you’ll end up needing another third party service to handle logs. They don’t handle file uploads, so you’ll end up using another third party service for file upload. AWS has all of those necessities from a single account which is why I’m in favor for it. Amplify gives you logs by default via cloudwatch.

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

    Really interesting to see how you managed to deploy your project on Amazon!

  • @keent
    @keent Год назад +2

    Railway is the Vercel for full stack hosting, you can spin up a "project" like databases, node apps, frontend on there.
    They have "per usage" pricing and no "non-commercial" rule.
    And they gave you 5$ free credit per month.

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

      yeah I've used them on a couple of side projects. I like railway a lot. I just decided to go the hard core route for this project. I'm using DynamoDB and SES anyway which are AWS services, so might as well get everything deployed to AWS imo.

  • @jaycee254
    @jaycee254 25 дней назад

    i know this is over a year old. but would using CHATGPT help in getting this set up in AWS?

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

    @15:14 I've been seeing this a lot lately on Australian Web Dev jobs. The employer will want AWS experience, CI/CD pipelines etc. in some cases even marked as a requirement.
    Going to attempt to deploy my next project through AWS for these reasons, definitely intimidating but I think it will be worth it. Also, the cost savings are great, especially as most of my deployments are just simple applications for my portfolio, which most likely will get very few hits at all.

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

    We’re in the process of moving to AWS and LightSail from metal servers - cost saving is silly cheap moving to AWS

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

      Oh nice I would have thought bare metal servers would be cheaper in the long run but maybe I’m wrong. I guess it all depends on the amount of traffic you have and computation needs.

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

    Yeah, charging per user is a bit of stretch. At the end, they should only charge on what’s being used. Perhaps Vercel needs a bit more competition

  • @ko-Daegu
    @ko-Daegu Год назад

    2:53
    if you scrolled down you will see them telling you: Then $40 per extra 100 GB for bandwidth once you pass the 1T

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

    Can you please do a tutorial on details of how you actually deployed the project on AWS?

    • @WebDevCody
      @WebDevCody  Год назад +7

      yeah, I can do a full project walk through when it's in a better state

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

      @@WebDevCody Please do!

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

    Quick question: why not using Railway? I have seen you using it a couple of times. They charge per usage, they are not serverless nor edge but I mean you can always setup a CDN for that

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

      Yeah that’s an option as well, I just decided to use aws since I’m also using s3 and ses and dynamo. Just keep it as centralized as possible

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

    Dude ngl, I've spent the last few weeks trying to figure this exact stuff out, for hosting my first express backend.
    Just like you said, all of these services are so linked. Like if you want to get into lambda, that leads you into api gateway and iam. And then if you want to host this reliably you get into serverless and then cloudformation cause of the reduced abstractions, and then AWS CDK.
    I really have to say, as a beginner, this is real intimidating and took me weeks to figure out.
    But on the other hand, with hindsight, it feels like my trial by fire

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

      I mean, you can use AWS amplify and it'll abstract that all away from you, but learning how to do all of this in a cloud provider is good experience. Larger companies tend to choose AWS or Azure for hosting their applications to help centralize all their resources. If all you plan to do is host a next app and need a database, you could just use Railway and call it a day.

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

    Not everyone wants to be a cloud or DevOps engineer. They just want to code, so I get the attraction that Vercel gives. I however, want to learn DevOps and serverless stuff so learning all these steps (no matter how complicated) doesn’t really faze me.

  • @2u841r
    @2u841r Месяц назад

    very helpful vidoe, thank you

  • @abdulrehmanbaber2104
    @abdulrehmanbaber2104 9 месяцев назад

    best video ever. i was just thinking about learning next application to aws.
    one question, do you have ec2 instances running here.
    2nd can you also gave me a quick guide of how to become dev ops engineer, what are the core requirements of that field. ?

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      No ec2 instances from what I understand; this was using amplify. To become devops play around with IaC tools like terraform, cdk, learn as many aws services as you can, learn about ci pipelines, etc

  • @dytra_io
    @dytra_io 2 месяца назад

    is there any friendly course that you recommend for web developers to getting start with aws ?

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

    The subscription critique isn’t as important as you make it out in the video, every business that offers products of that sort do that.

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

      Sure, but other business offer pay for use. I like the pay for what you use model personally. But like I said, 20 a month isn’t bad if you’re running a legit business with paying users.

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

    Make a tutorial for setting up T3 on AWS with setting up Lamda & Serverless Aurora 🤞🏻

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

    Well... I guess you convinced me to use Vercel instead of AWS. If larger corporations need a dedicated person(s) to manage AWS, that's like a 100k+/year per hire. Why not avoid the hire and redirect the expense to Vercel and keep the dev teams moving quicker? It seems like your video builds the case to go with Vercel and not AWS.

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

      Yeah I could see that. Using aws isn’t always easy and requires a lot of cloud infra knowledge. If you’re on a small team, using a platform as a service will help you move faster up front for sure

  • @AndreFerreira-xt5nl
    @AndreFerreira-xt5nl Год назад

    "Talk about the pros and the benefits"

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

    Dude, ill pay for a course on that, fr

  • @leetkhan
    @leetkhan 9 месяцев назад

    I’m not sure what’s your point? If you wanted to save money or transparent pricing then there’re plenty providers. Digital ocean, Linode etc etc.

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

    nice video. Does the code that you showed in the video different from your Github repo? Do you plan to update it? cause I'd love to see it.

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

      Yeah I want to tweak it up but I’ll commit and push maybe tonight or tomorrow

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

      @@WebDevCody that'd be awesome, thanks!!

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

    The whole charging for user from a hosting company simply doesn’t make any sense, and it encourages teams to have a single account.

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

    Cloudflare pages is free for commercial use for static sites (anything without backend code) and there's basically no point of scaling where it costs you money it seems. and it also supports next in edge mode but I'm guessing you have to use their serverless function things which do cost money eventually but probably competitive idk. And it's pretty easy to setup though I've never used it for next myself because I'm still earlier on in learning web dev.

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

      yeah, there are a bunch of awesome services out there. I'd consider myself an aws engineer at this point, so I'm ok putting in the extra elbow grease to deploy to AWS at this point. If AWS becomes too annoying.

  • @paulonteri
    @paulonteri 9 месяцев назад

    Why don't people just use firebase?

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

    The cost savings are totally negated by the maintenance and build costs. Just my opinion.

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

    Excellent! thanks.

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

    Did you think of using cloudflare pages / workers ?

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

    I've deployed a nextjs application with just using amplify. What's the benefit of going your way and having the frontent end and api decoupled?

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

      Decoupling is good if you have separate front end and backend teams or plan to write your backend services in other languages such as go. I’m just playing around with aws at this point, but you’d want to just use amplify to host your next app, I wouldn’t do what I’m doing unless you like extra complexity

  • @davidb.6271
    @davidb.6271 Год назад

    Plot Twist, Vercel is hosted on AWS

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

      Yup

    • @davidb.6271
      @davidb.6271 Год назад

      @@WebDevCody I also migrated my web client infrastructure to AWS (nextJS static app), because it was too heavy for Cloudflare Pages and Netlify/Vercel weren't successful most of the time during deployments.
      Pushing static files to S3, exposing via a Cloudfront distribution gave me the best response time, for lowest cost in the end.

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

    So why not use Netlify? You can use the free option and still have a commercial application.
    AWS is good for bigger companies because of its scaling options.
    Digital Ocean and other smaller VPS options are good for start ups.
    I honestly still don't understand why exactly AWS out of all the other alternative options out there which are cheaper.

    • @WebDevCody
      @WebDevCody  Год назад +3

      Because aws is fun to waste hours playing with

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

    I don't know a ton about AWS since I haven't dealt with hosting that much but why wouldn't something like EC2, S3, DynamoDB work with this web app? Is it not a good approach or something?

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

      I’m using dynamo to track registered users. I avoid ec2 because it’s too low level to manage and maintain. Using serverless provides tons of benefits and reduces the overhead for me.

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

    If only you wuld go into details of Vercel pricing you would know how things go after breaking limit with 1TB bandwidth or how `per user` works

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

    anyone have good textbooks/channels/resources to walk though all the nitty-gritty of AWS talked about here?

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

    have you tried using terraform? it uses lambda for ssr, s3 for static and lambda for api routes. definitely worth a look

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

      We use terraform at work, I wanted to try out amplify for fun

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

      @@WebDevCody is amplify worth going over terraform in terms of costs for small scale commercial projects?

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

      @@shivanshubishtterraform will just take some more type to understand, but I’d aim for terraform or cdk on a professional project

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

    Vercel is built on top of AWS, so there is that. They’re a middleman that doesn’t arguably lessen complexity.

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

    How about DDOS attacks? Will AWS protect you like Vercel does?

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

      I do believe their docs say they protect against some ddos attacks since they use cloudfront under the hood

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

    Nicely said

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

    And how is the ci cd to re-deploy the website on every push to main for example?

    • @WebDevCody
      @WebDevCody  Год назад +2

      you'd have to build that yourself using github actions 🤣 . Amplify will auto-deploy your stuff on merge to main if needed, but the way I set everything up is all manual because I plan to setup the ci/cd pipeline. I like doing tedious work I guess

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

      @@WebDevCody u r a beast

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

    Personally I don't like these vercel types of things they charge to much, i like to use ec2 with load balancer,put domain name and SSL on load balancer and make ec2 instance according to yourselves

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

      That’s too bare metal for me, but I respect that choice. I’d at least use docker inside the vms 😊

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

    Oh Nooooo 😱

  • @vincentnthomas1
    @vincentnthomas1 9 месяцев назад

    No, use SST

  • @geelemo
    @geelemo 8 месяцев назад

    So how do i learn this skill

    • @WebDevCody
      @WebDevCody  8 месяцев назад

      Tutorials and docs

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

    cloudfalre worker or pages?

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

    is your shoulder just not straight or is it the way it is it?

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

      My shoulders look normal off camera, I’m not sure if I’m leaning differently in the video?

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

    Digital ocean app platform is super easy.

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

      still node v18 not supported!

    • @qazyhn94
      @qazyhn94 2 месяца назад

      ​@@moinulislammoindeploy a docker file and everything is supported 🙂

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

    I think Vercel hosting is AWS

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

    What about clouldfare

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

    why use Next as frontend only? why not SPA or Astrojs?

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

      I plan to move it over to astro.

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

    i'd do it and i'll get to put AWS experience on my portfolio too. win-win

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

    Can you please make a tutorial on how you setup docker with Node😭😭😭😭

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

    You didn't had to set all of this up, for simple projects, just creating a vps (ec2) adding a reverse proxy (like caddy) and a simple github action for auto deploy, should be enough. If you want to use lambdas, that's an extra thing to configure, but there's no real reason to use lambdas in your case

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

      I’m good. I’d rather avoid managing a vm. If that’s what you like doing that’s cool

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

    🙏🙏🙏🙏🙏🙏🙏
    Why vercel is a server less hosting platform just because we don't have to worry about the hehind the screen what going on server ,,,,is that the reason please reply 🙏🙏🙏🙏

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

      Because it uses serverless functions behind the scenes to run your code

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

      @@WebDevCody please tell me what is serverless function, help me to build the concept please,🙏🙏🙏

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

      @@random2059 it's the concept of running your code on a platform that will give you some compute time without you needing a dedicated machine or vm. only charged for the time used to run the snippet of code

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

    Lol 1tb bandwidth…dude you’re never gonna go over unless you’re building a Netflix clone

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

    good stuff

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

    With AWS SAM this would have been waaay easier

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

    When you only have one website, then your can managed all the stuff by yourself. How about 10 site? 20 site? I would like to spend $20 to centralize all the stuff.

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

      for sure, but I've never worked at a company that has more than 1 site. Maybe for an agency it would be useful, but then you have to pay per user who is on your team which means it's not just $20/month. If you're a freelancer and need to manage 20 sites for your clients, then sure that makes sense.

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

      I’m freelancer and also as staff at many companies before, so far all those companies have more than one website, they always want to create a lager system to manage many websites, they always focus on how to make thing simple and security and reliability. I just want to point out that spend money to simplify things is more greater than hire someone who need to know all the stuff for AWS. You should think which is more low time cost and efficient in your case, spending money or spend many time. As you are RUclipsr, you should more thinking for each situation for your audience, provide fair and objective analysis instead of subjective

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

    I highly doubt you work for vercel for a while, amplify and next js is basically few clicks process, and next is full stack as we all know

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

      I don’t understand your statement. I never worked for vercel

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

    I would rather go with vercel😂Literally amplify, cloudfront, x, y, z, .... don't make a sense...

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

      For sure, or netlify or fly.io or railway or amplify without doing the approach I’m doing.

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

    Can you please make a video / video series of how to deploy to aws covering services like serverless, amplify, fargate, eks, etc. That would be a great series. It's hard to find how to do all that in a systematic manner on the internet.
    If you are not willing to make content around it, please tell the resources from where you learnt to deploy to these services. Thanks!

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

      Yeah I could try if I have time

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

    Can you be my mentor please

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

    you could have just used cloudflare

  • @louis-philippeturmel1479
    @louis-philippeturmel1479 Год назад

    The AWS CDK is so much better for AWS IaC

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

      Compared to terraform? I don’t think so

    • @louis-philippeturmel1479
      @louis-philippeturmel1479 Год назад

      @@WebDevCody Yes, by a big mile. The only argument for Terraform is multi cloud support. Using the native platform will always be more flexible and provide more type safety. All the cdk modules are derived and auto generated based on the AWS service smithy models in Go, Typescript, etc. It is the best abstraction for IAC because you also benefit from fully featured ecosystems of each of the supported languages not a templating language. This allows you to build shared packages and librairies for standards and abstractions. For projects like you showed in your video, you could utilize Typescript modules across the board, inside your application and inside the CDK typescript files. There is simply no better options.

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

      @@louis-philippeturmel1479 cdk uses cloudformation under the hood, and I personally would never want to use anything that uses cloudformation after using it in the past. We’ve constantly found ourself needing to remove stacks and waiting for stacks to roll back. It’s an awful experience.

    • @louis-philippeturmel1479
      @louis-philippeturmel1479 Год назад

      @@WebDevCody weird, been working with it for 6 years + within multiple companies and we never had this issue. We’ve had way more inconsistencies with Terraform :)

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

      @@louis-philippeturmel1479 just letting you know my experience. Maybe I’ll try cdk again.

  • @33v4.
    @33v4. Год назад

    try Oracle!

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

    AWS CDK >>>>>

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

    "Why I'm moving my side project from Vercel to AWS, and why you shouldn't do it"

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

      There is a joy in spending all day configuring terraform to deploy infrastructure to aws. Vercel kills that joy by making it all too easy

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

    What about putting your app on a docker container and deploy it to Fargate?

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

    Use CDK

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

      I personally like terraform much better. Cdk uses cloudformation, and cloudformation sucks from prior experience