Serverless might bankrupt you (and how to deploy to a VPS instead)

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

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

  • @impc-lx9gf
    @impc-lx9gf 5 หลายเดือนก่อน +145

    Web Dev Cody be like vps -> serverless -> vps. 🙂

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

      😆 but I don’t recall starting with a vps on this channel. I always used sst to deploy to aws using lambdas. I’ve been using serverless for 5 years on a work project as well and was pretty anti vps until recently when I got my ddos bill.

    • @impc-lx9gf
      @impc-lx9gf 5 หลายเดือนก่อน +17

      ​@@WebDevCody i mean by from title "Why I’ll never deploy to a VM again" to "Serverless might bankrupt you (and how to deploy to a VPS instead)". 🙂

    • @xoai13
      @xoai13 4 หลายเดือนก่อน +6

      It’s a process of learning. He learned both, which is good for him.

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

      @@xoai13 agreed 💯👍

    • @geopopos
      @geopopos 4 หลายเดือนก่อน +3

      I think that’s the pattern of the entire industry

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

    I just reached 1 MAU, i need to scale.

  • @emnul8583
    @emnul8583 5 หลายเดือนก่อน +13

    I've been learning a ton from your VPS deployment content. Keep up the great work!

  • @dtesta
    @dtesta 2 หลายเดือนก่อน +16

    Wow, so the guy that hates VPS and claims "it's not worth it", now finally wakes up. Congratulations. You finally understood that the 20 USD prices you dreamed up in your previous videos are for sites with no traffic. As soon as you get meaningful amount of requests, your 20 USD SAAS crap turns into thousands of USD, while you could have just gotten a 8 core dedicated server with like 64GB of ram at something like Hetzner for 40 EUR and spend a day setting it up.

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

      It’s not a problem if you don’t offer free access. A $100k aws bill means you just got $1m in revenue. Free access and serverless with no limits is playing with fire.

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

      Thought it was only me thinking the guy was confused 😅

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

      He goes where sponsors tell him to go, that's very sad unfortunately...

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

      You offer a paid subscription £5 a month. A few people use your SAAS so the server less monthly bill is £30. Then a thousand people suddenly sign up to your app so £5000 a month. Your server less cost will be less than that like £1000. So as long as you do the pricing properly you won’t lose money surely

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

      @@edboss36 And if you run a website where users don't pay to use it? Which is probably 90% of all websites...

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

    Oh man for one of my clients’ project i had to go through setting up Nginx from the ground up I spent 3 days and 4 nights on it and you just did it in 15 minutes 🤣

  • @zombiesalad2722
    @zombiesalad2722 5 วันที่ผ่านมา

    Thank you for this quality content.
    Deployed my first site all thanks to you!
    Coolify looks so cool

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

    I think now that we have something like Coolify, using SST is like over complicating everything, right?
    I can't find a really any good scenario that could benefit from a server less with all those hassles and not a simple VPS.
    or maybe I'm overlooking something?

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

      When you have periods of very low or very high traffic serverless is better

  • @gamingbud926
    @gamingbud926 5 หลายเดือนก่อน +9

    Holy moly Cody, this is *exactly* what I needed. Coolify in particular. I'm about to launch a large project that I've been working on for a few years, and I have yet to figure out the CI/CD process. This is a Godsend, thanks!

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

    I think all web dev must learn how to deploy on a linux server, setup ufw, ssh, fail2ban, nginx / apache, HTTPS, certbot etc.

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

    Hi Cody, Can you make a video with Coolify to use multiple servers? Like each server will have their own service for example one server for Postgres, the other one is will be a backend that communicates with that database? And additionally using tunnels with coolify will be very cool.

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

    Don’t forget if you’re using an unmanaged VPS you have to mange security mostly yourself; OS security patches, firewall, security through obscurity like changing default ports etc. Just something for people to keep in mind.

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

      Yes, he demonstrated a VPS with graphana and docker monitoring but all those ports were public and those servers did not require any permissions from internet users.

    • @chrisgarre
      @chrisgarre 3 หลายเดือนก่อน +1

      Correct, but I don't think a Managed VPS is an option when using Coolify.
      You probably won't be allowed by your VPS provider to install Coolify on a Managed VPS since it would interfere with their pre-installed hosting control panel (SPanel, CPanel, etc.).

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

    cool stuff thank you ❤ just one question please why do you recommend vps hosting only for beginners? what is a better alternative hosting for other professionals ?

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

      I’ve been using serverless on production for 5 years (aws lambda), and honestly it was a mistake imo. The complexity you don’t know you’ll run into due to lambda runtimes is not worth the effort compared to just doing npm run start on a vps and calling it a day. On a larger size project kubernetes gives you the flexibility to not be locked into serverless or a particular cloud, and everything is containerized so if it runs locally you’ll know it’ll work on prod

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

      @@WebDevCody makes a lot of sense thanks again Cody

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

      ​​​@@WebDevCody kubernetes is super cool, but when I started learning it and looked forward to deploying it on AWS. EKS was ridiculously expensive and got scared. Is there another way to deploy it publicly for cheaper
      Btw I am a beginner to AWS, i usually deployed locally with k8s or docker to save costs lol

  • @HideBuz
    @HideBuz 5 หลายเดือนก่อน +10

    There is no such thing as free lunch. Cloud hosts are screwing with clients because they need the money to buy AI GPUs. So everyone still hosting serverless or using micro service architecture are soon going to get a wake up call.

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

      Vercel only get worst!

    • @lightyear3429
      @lightyear3429 11 วันที่ผ่านมา

      Could you elaborate about micro services? Isn't it about horizontal scaling which could be done on your own VPS?

  • @sidalisaadi1961
    @sidalisaadi1961 5 หลายเดือนก่อน +4

    Is there a way to use a VPC, and let you images and videos be:
    a) Optimized
    b) Get's served from a CDN or some bucket

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

      honestly I'm not sure, I haven't looked that deep into it. In regards to a CDN, as displayed in the video, I point cloudflare in front of my application which means everything will be cached on the cdn. If you store your assets on r2, it by default provides caching if you setup a custom domain.

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

    Hey Cody, I love your videos. They’re helpful and really well structured, though sometimes you go faster than I can learn but I’m getting into it. I want to thank you for the hard work you’re putting into the videos. I’ve being facing quite the same situation as you with the serverless but one thing that keeps me going back to it instead of VPS is the maintenance. Like for example, what do you do when having to reset your server due to Linux updates? Or for example Hostinger went down Thursday morning about 2 hours due to their infrastructure maintenance?

  • @Lorofol
    @Lorofol 2 หลายเดือนก่อน +1

    This is cool but how do I secure my coolify dashboard? I noticed you just connected directly to the ip of the vps. I assume hostinger can do ip whitelisting? Any better solutions?

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

    Is it possible to host your own postgres instance using Coolify to be consumed by your own apps elsewhere (postgres and webapp hosted on different servers)? Can I use cloudflare tunnels to "lock-in" the postgres connection string (instead of a possible non-static IP)? How would you go around hosting your own PG instance to be used by your own apps? Would hosting them on the same Coolify instance help (due to easier setup for Prisma connection without having to deal with exposing DB to public internet, etc)?

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

      I’m not too sure. I do know coolify has the ability to host a Postgres instance with a button click. I also know cloudflare tunnel support is talked about in their community and I think their docs. I haven’t personally done it so I can’t give the info you need.
      Personally unless you have a need for multiple VPS, just host your Postgres instance in the same machine as your app. It will give you the lowest latency and should be able to scale up as needed simply by upgrading your vps.

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

      @@WebDevCody talked about in their communist :)

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

    I was supposed to deploy a nextjs app on a VPS this monday. This is awesome

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

    Thanks for this video. I just wanted to check my understanding as someone that uses Vercel at the moment but in a "it works so I won't question it" way. Essentially Coolify is the layer that I see going to the Vercel site; manage my projects, see logs, deployments etc. The VPS is the background server which I know is happening behind the scene but I've never really looked into. But it would essentially bring the server "in house" and I'd have more control over it.
    Got a few projects hosted on Vercel but wanting to expand a bit. I know when I tried to deploy a Stripe project as soon as it was live the fetch from Stripe timed out but a VPS (depending on what I pay for obviously) would give me more control, yes? (I'm aware Vercel has a paid tier but I think if I were to actually pay for something, it is something I'd want more control over)

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

      You probably hit the 10 second free tier limit on vercel. Yes, a vps is just a blank operating system where you can install and run anything you’d like. Coolify is the dashbaord that I installed to give you a nicer way to deploy your apps to your vps. It uses docker under the hood for building and running your services inside of containers

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

      @@WebDevCody oh yeah that was definitely the reason (although that's how I learnt about it being a limit) but it was just playing around to see how things work. But it's good to know alternatives.
      Thanks for taking the time to respond (and so quickly).
      Docker is one of those things I've been meaning to learn more about for ages, but if it's running in the background and I don't have to learn now that works for me

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

    ahhh so happy u posted this haha. was watching ur other videos about VPS but was wondering when a coolify one would come out. Thx as always 🙏
    honestly watching u is amazing cause all ur projects reflect similarly to my own goals and infras. so learning about the approaches u use and comparing and contrasting has rlly expanded my scope

  • @naeltahchi2272
    @naeltahchi2272 19 วันที่ผ่านมา

    What's your opinion on Caprover? can you do coolify vs caprover video? Again thank you for sharing!

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

    Love the video btw. Qucik question, how do you deploy multiple apps within coolify then?

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

      I think you just create a new service and specify a new git repo and point a new domain to it. You can have multiple different apps running on the same box easily. They also seem to have a "remote" type of setup where you can have multiple VPS machines all hooked together for load balancing I believe.

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

    Why does your random example project look better than anything I've ever built 😂

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

      lol

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

      😆 I used premade components. Too me 10 minutes to copy them in

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

      @@WebDevCody Which library? That footer background is beautiful

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

      @@anakinskywalker192 probably the free tailwind components

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

      @@WebDevCody Sadly could not find, and i spent a lot of time searching. Its the banner behind your "email to subscribe".
      If you could find more specifically I would appreciate it so much. It would be perfect for an app I'm making.

  • @Guergeiro
    @Guergeiro 5 หลายเดือนก่อน +17

    Serverless, the promise of scaling up to millions of users for a business that barely gets a thousand.
    I think the main problem is that they convince us devs with their free tier. In a VPS you normally start paying on the spot whereas in a serverless environment, the free tier is pretty generous.

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

      Serverless was intentionally made for one off asynchronous work. Then people started to wrap their entire apis and deploy that into serverless because it scales to zero and also auto scale to high concurrency limits. That brought with it cold starts and everyone started complaining about that. So then they started finding ways to lazy load api controllers to fix the cold start issues (which probably means you should just be using a vps from the start). Depending on the cloud provider, such as aws, it ends up being more convient to hook a lambda up to run various things in the AWS ecosystem. Want to run some code when someone uploads a file to s3? Just add a trigger and invoke a lambda.
      The complexity starts to come from “how do I bundle and deploy these lambdas”? You end up having a ton of extra code just to support building and deploying these one off lambdas that basically makes something that was trivial to maintain with a traditional MVC framework into a monstrosity that no one understands.

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

    The first story sounds like an experience a guy i knew in uni had

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

    I appreciate seeing the evolution from serverless to vps. It’s a dilemma! I wonder if there are many developers who’ve jumped in and learned enough devops to host their own stuff and regretted it later.

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

    I don't understand how Cloud flare DDOS mitigations can affect your hosting on the orher VPS provider you tried here. You only used Cloud flare for DNS after all ?

  • @EduardoFernandes-y1v
    @EduardoFernandes-y1v 4 หลายเดือนก่อน

    Great video! I’m a bit confused though, you don’t need to do anything special with your severless functions?

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

    Nice! Thanks for making this vid! 💜

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

      thanks for the good work!

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

    Do you get your domains from Hostinger as well? Is S3 still the way to go for an app with a lot of image storage?

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

      recently I've been using cloudflare for my domains, before that google domains and namecheap. I do think hostinger provides 1 free domain with a VPS subscription.
      S3 is still probably the best option, but I've also been trying to use cloudflare R2 which works pretty well.

  • @Jojo-ye5ix
    @Jojo-ye5ix 2 หลายเดือนก่อน +1

    Keep in mind that the minimum requirement for Coolify alone is 2GB of memory and 30GB storage.

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

    Can you host multiple projects on one VPS? for example vercel you pay 20$ and can host as many saas as you want but how about vps? Thanks

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

      Yes you can host many apps on a single vps

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

    so, what should I use for me who is newbie? can I limit budget in serverless hosting?

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

      depends on a lot, what stack you're using, what's your budget, if it's $0 then find free hosting.

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

      @@WebDevCody well, my budget is not $0, but certainly not highest, just low cost for small business. The stack is simply just two laravel+vue app, and mysql, the rest is just api services. Oh and gps software like traccar.

  • @sleepingsheep5125
    @sleepingsheep5125 5 หลายเดือนก่อน +4

    Would like to see how to handle CI/CD with this approach, so that you lint, typecheck, run tests etc., then deploy.
    I know there is the Github hooks you mentioned, but I always prefer running checks before deploying.

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

      in coolify you can customize your build actions, so technically you could run whatever you want

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

      @@WebDevCody "Cool"" to know, might have to check this out in my next project!

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

    Is there a cheaper way to deploy Kubernetes? EKS is ridiculously expensive, so for now i use local deployment only to avoid that. Pls suggest, i am fairly new to AWS

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

      If you don’t want a managed k8s then yeah you might need to do it all manually? What about DO k8s?

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

      ​​​@@WebDevCody ohhh I forgot🤦‍♂️, I have dabbled through managed k8s before, but completely forgot about that. Sry, for that silly question 😅
      Will checkout digital ocean too, thnx

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

    What about a Multi Tenant Plattform project that i previously built using Vercel Domains API. Is there a way to set it up with a VPS?

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

    Thank you Cody, I really wanted to try coolify but I didn't have the energy to wrap my head around it ahahahha

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

      😆 it’s literally like 1 command, 2 button clicks, and deploy

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

      @@WebDevCody yes, but it would have required the active effort or reading the documentation and the even harder effort of comprehending it... I am not in the mood right now ahahaha

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

    R.I.P to all those he told to pay for everything in the recent past. That's why I keep saying, don't take JavaScript influencers too seriously. Learn the things they tell you to pay for.

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

    Are you still doing go? 👀 Or even rust nd planning on making some content about that.

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

      Haven’t touched go in a bit. I did enjoy using it, so I’m not writing it off, I just have so many other things going on that use typescript already it’s hard to justify spending time to learn it “just because”

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

    Have you tried to use any of its github actions?

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

    What are you using for that top loader? What xhr/request library and what component if any? Thanks man

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

      Nextjs top loader its an npm library

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

    Cody as convex is open source now can you perhaps do a video about how to self host it on a VPS? I think it's a great tool overall if we don't have to lock into their servers, def a solid option.

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

    Was thinking how to deploy my SaaS app securely without getting DDoS'ed and get a bill would create a generational debt lol. This video was so helpful for me... Keep up your good work Cody! and BTW a kind request :) Can you make a video on making a NextJS + Pipedream tutorial.. TH-cam lack tutorials on Pipedream + NextJS..

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

    just found out vercel has a feature where it will shut down your services if you go over a spend limit. that's all cloud providers really need to implement to solve the problem talked about at the start of the video right? still probably cheaper for you to use a vps though I'm guessing, vs a layer on a layer on a vps (vercel->aws->servers)

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

      Yes, they have spend limits and alarms. That first tweet was user error, but it seems like users don’t know how to properly configure their stuff

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

    How do you deploy the next app in hostinger? Because I think it’s too much to setup, but if you can explain how to do that easy I am going to be so glad!

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

      I'm not sure what you are asking, I shows how to deploy a next.js application to a hostinger VPS in this video

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

    Does Vercel not have a spend limit?

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

      Yes they added that within the year I think

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

      @@WebDevCody Not for the free tier - but they claim the free tier is completely free regardless of what happens.

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

      @@nickwoodward819 right but you can’t use the free tier to run a business. Idk what type of apps y’all are building but I’m not trying to deploy apps just for fun.

    • @market-mastery-pro
      @market-mastery-pro 5 หลายเดือนก่อน

      @@WebDevCody So what do you recommend for someone who's currently set up using firebase? should I move over to aws or setup my own vps? thanks again

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

      @@WebDevCody I mean sure? It's still useful to know you can't get stung on non-production apps that are deployed?

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

    What should be the deciding factor when considering where to deploy the project. I mean how can i decide if EC2 is better or some other platform which provides VPS?

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

      Read reviews about customer service, down time, ease of their user interface, cost, resource specs, etc.

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

      @@WebDevCody Cool, thanks

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

    Hi Cody. What do you think about deploying on Cloudflare? I'm building some projects, which are not in business size, but just projects for my portfolio 🤔

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

      I haven't used cloudflare pages before

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

      @@WebDevCody I see. thanks for your reply!

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

    How can we scale nextjs app hosted on VPS with coolify?

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

    Any reason as to why you’re using turso over convex db?

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

      The database portion wasn’t the important part of this video. Also this was a throw away project.

  • @mattvalgreen
    @mattvalgreen 24 วันที่ผ่านมา

    That's definitely the video I was looking for! Thank you so much! +1 sub

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

    Hey! Regarding the DDoS you had, I wonder what you think about the new Vercel Firewall?

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

      I haven't tried it but I assume it's a good feature to have built in directly into your host.

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

    Have you tried vercel firewall? It's meant for things like ddos attacks/unauthorized access.

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

      Nope, it sounds cool though

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

      @@WebDevCody yeah Lee showed it off at the recent vercel ship conference.

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

    First of all, the shaved beard looks better on you. 2nd, Serverless may be helpfull and usefull, but as you explained, it is an ticking bomb. So, just Stick with your VPS and gg. Once your Project grow up for mass usage, then we can talk about multiple VPS Instances that can produce more i/o.

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

      my wife thinks so as well

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

    Can you host multiple websites on coolify? And how many next js sites would you say would be the limit for the 8gb ram configuration you picked?

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

      Yes, I’m sure you could get a lot depending on if you use image optimization or not. When I run next apps they maybe use 500mb

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

    Wait but AWS should have billing options for lambda so you can limit the cost right? If that's the only reason for moving of lambda that should be solvable I imagine

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

      Aws has spending alerts, but they don’t have any type of kill switch. You’d need to implement that yourself

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

      @@WebDevCody OMG that's crazy, well good to know 😁 Thanks for golden info like always! 😊

  • @omereker8824
    @omereker8824 5 หลายเดือนก่อน +4

    Or you can pay 20 bucks per month to vercel which has both under attack mode and a firewall features as well as the monthly budget limits so you can get emails. I dont wanna bloat my hard drive with docker, and I don’t understand the problem with using a serverless platform if they address the concerns like vercel does?

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

      When your app gets more traffic you might start to understand as your bill creeps over your provider limits.

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

      @@WebDevCody how much traffic are we talking and isn’t there a work around for this because whats the point of using a paas if it wont scale

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

      @@omereker8824
      You'll only feel this when you woke up on an email telling you to pay $100k

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

      @@omereker8824 are you welling to spend the money ? in the end Vercel is intop of AWS at one point it will be cheaper to do AWS or straight other IaaS
      another thing is what if none of the vercel regions is good for you ?
      also here he's hosting a Next app what if you had more, something like many microservices (one in Spring few in FastAPI or Gin then few DB)
      how would you do that with all the other components needed (Queueing, IAM..etc)
      this route will be needed at some point in time, I mean you are talking about scale, so what scale does a simple Next app have

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

    Registration screen sending a password over plaintext http? Should probably be passing that through Caddy/Nginx with a Let's Encrypt cert at the very least...

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

    Yeah, one of the main reasons I hate serverless... I'm a control freak and don't like monthly cost surprises

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

    can we be sure that coolify is secure?

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

      can you be sure anything is secure? no one looks through any of the open source code. it is all open source though github.com/coollabsio/coolify

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

      ​@@WebDevCody bigger projects are probably more secure because of more eyes and history. also cloud providers are more secure against hacking/vulnerabilities (not against poor configuration by you) because of a stronger financial incentive to be, and they probably will have a bug bounty program to catch more bugs.

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

    Cool video, thank you for showing this and providing a Discount code! Love it!

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

    Didn't I see a video from 8 mo ago saying to go serverless or something?

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

      probably yes

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

    how would scale a vps with coolify on it?

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

      when you say scale, what requests per second do you mean? I think coolify supports loadbalancers and hosting your application on multiple servers if needed

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

    What I don't like about TH-camrs is that they don't give their honest opinion, they just make videos for their sponsors. If you go 1 year ago this dude had video about "why he won't use VPS but only 3rd party services". Now the dude gets paid by VPS provider to promote a VPS.

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

      Imagine living in a world were changing our perspective is forbidden; that’s the world you think we live in

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

    You should block 8000 port except for your Ip from hostinger's firewall

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

    you should always turn on alerts and anomaly detection for any serverless setup.

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

      alerts don't help when you're sleeping. I've only seen a few serverless options provide a spending limit kill switch.

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

      very true. the kill switch would be a nice feature. i wonder if pre paid credit cards work. 😊

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

    Pls cody record an example of nextjs authjs without serverless middleware

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

    What about Securing your VPS? What is the bare minimum you should take care about?

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

    Web Dev Cody journey
    vercel -> aws sst -> vps

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

    Month 1: Vercel / AWS
    Month 2: VPS
    Loop forever
    ....
    No, seriously, I don't understand these stuffs anymore. What to choose? What do these "techie guys" on TH-cam want to tell us to do?
    Though, imo, AWS == taking your money endlessly. But I don't even have a credit card so can't even test the free tier anyways :)))))

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

      Follow the money. If it's a sponsored video, know that the content is bs.

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

      If you don’t have a credit card how do you expect to host your apps? Hosting costs money. Like I said, serverless has its own use cases and gotchyas, so if you are not aware of them, don’t use it. Vps requires you to understand how to ssh into a machine, run a script, then configure coolify.

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

      wow, it's almost as if people are finding better solutions for their use cases that differ from the previous solution they used for a completely different problem.

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

      You can use a debit card

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

      @@Lexaire For the most part I think you're correct. But serverless computing is usually overkill for most projects. A simple VPS and an afternoon of reading docs to setup SSL, Nginx, Cloudflare, etc will suffice. Or you can end up in vendor lock-in by coding your solution around a serverless environment, spend days or weeks learning the serverless providers offerings, and then get hit with a massive bill. Providers like Linode and Digitalocean also have "app service" offerings that allow you to deploy kinda like vercel or AWS lambda but with more controls. Additionally, the VPS setups are more widely used in business environments due to the level of control the business can exert over the deployment environments. Especially since you can install the docker engine and setup docker images, docker swarms, or kubernetes locally and cut down on wasteful spending to the serverless providers for docker or k8 management.
      I do think that when creators take a sponsor directly related to the video that it's a red flag. But, @webdevcody did a good job at objectively explaining the reasoning for using a vps over a serverless environment for beginners. I think things get a little murkier once you step into the world of enterprise software or large scale user bases. But for his audience he explained the pros/cons in a way that would make sense. And if people are skeptical, I'd recommend they look into the pricing models and play with the calculators. The cost of serverless creeps upwards pretty aggressively. And it really can sink businesses in cost. You have to remember that anything you do in serverless environment can be done on a vps. (really serverless environments are vps instances running some sort of hypervisor to manage the resources on the shared instance. Unless you reserve an instance to yourself. Which sends the costs up even higher.)

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 3 หลายเดือนก่อน

    THank you so much

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

    that's a big finger against vercel

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

      I think vercel is fine, they have spend limit and alarms in place. I just choose not to use them. I personally like running containers

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

    Day 49 of asking cody what the name of his vs code theme is🙏

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

      At this point my community answers that question for me 😆

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

      Bearded Theme Stained Blue

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

      @@dawidgrabowski Is that really the name or are you trolling lol?

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

      @@smnomad9276 Just search for Bearded theme and after installing it pick one with the name mentioned above.

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

    Good job babe!!!!

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

    U dont have make your code wrong. But your testing was wrong 😅 maybe you can make a video how to write codes for real testing, with creating
    Limit analysis and equivalence class creation, these are 2 methods that should be considered in every test.

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

      I have no clue what you just asked

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

      Where is wrong code?? What are talking about, this was about cloud

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

    Golden content

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

    Raspberry pi army in my basement >

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

    Imagine failing because of an apostrophe

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

      😆 my linter wasn’t configured correctly

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

    nice bait and switch...thumbnail is "Serverless might bankrupt" with bill in front and entire video is just hostinger ad :D

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

    It's just robbery. There must be fixed rates or some kind of limits.

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

      There are, this person didn’t turn them on

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

    Thumbnail 😅

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

    Set max instances to 1

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

    Hetzner have way way better bang for buck

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

      They wanted my passport for me to get a server. That was a no for me

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

      @@WebDevCody What? Really? Jesus that's a shame, was going to look into them too

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

      Dont they have servers only in eu? And how is the latency ?

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

    awesome

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

    very nice

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

    Pretty cool

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

    I think this video is biased

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

      I do think a vps is a good option depending on project needs

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

    Hostinger is trash

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

      that's a little mean

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

    hetzner