when your serverless computing bill goes parabolic...

Поділитися
Вставка
  • Опубліковано 6 чер 2024
  • Recently, a Vercel customer was surprised to get a $96K serverless bill after their app went viral. Learn how cloud pricing works and explore strategies for self-hosting on your own Linux server.
    #tech #programming #thecodereport
    💬 Chat with Me on Discord
    / discord
    🔗 Resources
    Original Tweet x.com/zemotion/status/1798558...
    Coolify on GitHub github.com/coollabsio/coolify
    AWS says serverless was a mistake • Serverless was a big m...
    Subscribe to ‪@MelkeyDev‬ for more on Coolify
    Triangle Company vercel.lol
    🔥 Get More Content - Upgrade to PRO
    Upgrade at fireship.io/pro
    Use code YT25 for 25% off PRO access
    🎨 My Editor Settings
    - Atom One Dark
    - vscode-icons
    - Fira Code Font
    🔖 Topics Covered
    - How serverless pricing works
    - How to reduce cloud computing bill
    - Alternative to AWS
    - How to self host backend
    - Cloud computing tips and tricks
  • Наука та технологія

КОМЕНТАРІ • 1,3 тис.

  • @heyandras
    @heyandras 12 днів тому +6494

    Thank you, for including Coolify in the video (i am the dev behind it). 💜

  • @pandaDotDragon
    @pandaDotDragon 12 днів тому +3038

    "there is no cloud, only someone else's server" 🙂

    • @iKXWISH
      @iKXWISH 12 днів тому +76

      Self hosted 😇

    • @feynstein1004
      @feynstein1004 12 днів тому +69

      *it's just someone else's computer

    • @Tubeytime
      @Tubeytime 12 днів тому

      Wrong, your data is hosted in the light emanating from the sun itself

    • @UNcommonSenseAUS
      @UNcommonSenseAUS 12 днів тому +35

      Yep. 100% marketing. Just like AI.

    • @JC-Alan
      @JC-Alan 12 днів тому +16

      I’m glad my path into development was through IT. One of my fellow sys admins once said that “developers make the cars, we build and maintain the roads.”
      Not a perfect analogy but I love it.

  • @niklasbenjaminhoffmann
    @niklasbenjaminhoffmann 12 днів тому +2179

    I'd love to see "Coolify in 100 Seconds"!

    • @npc-drew
      @npc-drew 12 днів тому +16

      Let the temperature drop lmao 🥶

    • @chris-hayes
      @chris-hayes 12 днів тому

      Yeah I've been very happy with it. For Node projects it's not quite at Vercel's level of "it works out if the box". But, is getting close. Really easy to setup apps with docker. Right now it managing my 11ty site, Actual Budget, Penpot, and AppSmith.

    • @wooviee
      @wooviee 12 днів тому +6

      YES LETS FUCKING GO PLEASE

    • @shaunfurtado7368
      @shaunfurtado7368 12 днів тому

      Or even Dokploy , it's new and surprisingly better

    • @DoYouEvenBlog
      @DoYouEvenBlog 12 днів тому +2

      2nded

  • @Neomadra
    @Neomadra 12 днів тому +1016

    Serverless is the most profitable misnomer in human history

    • @soloflo
      @soloflo 12 днів тому +56

      “End-to-end Encrypted”

    • @cookiemonster208
      @cookiemonster208 11 днів тому +24

      In my opinion, that distinction belongs to "cloud".

    • @cookiemonster208
      @cookiemonster208 11 днів тому +44

      @@soloflo The thing is end-to-end encryption is a real thing. The problem is which ends they are referring to.

    • @greycell2442
      @greycell2442 11 днів тому

      Serverless.... you mean buffet? Chef-less? Put newspaper in toaster and walk away? PaaS, Prostitute as a Service. Don't fall asleep.

    • @jonathancohen7196
      @jonathancohen7196 9 днів тому

      2nd most: social media is number 1

  • @TheIdo14
    @TheIdo14 12 днів тому +449

    Flashbacks from forgetting about that EC2 instance on AWS a while back

    • @Claym1x
      @Claym1x 12 днів тому +79

      How's that cardboard box you're living in holding up so far

    • @lolkthnxbai
      @lolkthnxbai 12 днів тому +73

      I was testing out AWS and just fired up a vm to test it out, I thought I turned it off and deleted it I didn't. They waited until my bill hit 100 dollars which took a year before contacting me and trying to charge me. It's been four years and I still get emails from them asking me to pay.
      I have never paid it and never plan to pay it.

    • @nlnu1337
      @nlnu1337 12 днів тому

      Did you use multiple EC2 instances, or was this after the free-tier year had passed? Why I am asking is because I am currently using a "free-tier" EC2 instance myself lol

    • @RevengerReloaded
      @RevengerReloaded 12 днів тому +2

      I set up one for my capstone project and I'm glad I set up the alerts on it, and when I got one I got a mini heart attack thinking it was a huge ass bill. XD

    • @omduggineni
      @omduggineni 12 днів тому +7

      This happened to me once. Granted, it was a 38-cent (or so) bill, but I was young and justifying an accidental 38-cent purchase to your parents is difficult lol

  • @LachCrafter
    @LachCrafter 12 днів тому +767

    Just use containers and ignore the serverless meme

    • @SrKinko
      @SrKinko 12 днів тому +52

      Oops, I deployed my containers to AWS

    • @marcing5380
      @marcing5380 12 днів тому +71

      @@SrKinko Use something like Hetzner with sane & constant pricing. AWS for most is really not worth it.

    • @skanderbegvictor6487
      @skanderbegvictor6487 12 днів тому +18

      @@marcing5380 AWS is not worth anything

    • @manavkhandurie3591
      @manavkhandurie3591 12 днів тому

      In comes serverless container hosting platforms like AWS ECS on Fargate

    • @charlessss
      @charlessss 12 днів тому +19

      you can run serverless containers too if you care that much about the serverlessness; AWS offers fargate and GCP offers cloud run that both do this.

  • @npc-drew
    @npc-drew 12 днів тому +622

    Infinite scaling always sounded scary

    • @islandfireballkill
      @islandfireballkill 12 днів тому

      Gamble scaling to infinity just to be able to scale down to zero to save on the fixed cost of a small dedicated server.
      Giga stonks decision-making.

    • @devyaroz
      @devyaroz 12 днів тому +13

      You speak like a caveman who afraid of fire

    • @npc-drew
      @npc-drew 12 днів тому +115

      @@devyaroz it started with fire, and ended with nukes lmao 😜

    • @CodecrafterArtemis
      @CodecrafterArtemis 12 днів тому +132

      @@devyaroz I would be scared of an infinitely scaling fire.

    • @umjames
      @umjames 12 днів тому +37

      It's more like infinite billing

  • @callowaysutton
    @callowaysutton 12 днів тому +313

    I migrated a client off of AWS and GCP into collocated racks then rewrote their application using the Gin web framework. We have a contract where I can get a percentage of the runtime costs I save them per month and I'll never forget the developer's faces when I told them their cost per monthly active user went from ~5 cents per month to sub 0.0125 cents per month with four times the server reliability and half the latency for the TTFB. This client's application is close to a million MAU and they're basically paying for my retirement from that deal.

    • @verified_tinker1818
      @verified_tinker1818 12 днів тому +39

      "Collocated racks"? As in their own servers?

    • @callowaysutton
      @callowaysutton 12 днів тому

      @@verified_tinker1818 Yeah, LTOs with a management plan in which if components go bad they get parts replaced for free during the leasing period. It’s the best of both worlds since they can sell the servers to recoup value at the end of their lifespan and they don’t have to worry about downtime from component failures building up

    • @zyxwvutsrqponmlkh
      @zyxwvutsrqponmlkh 12 днів тому

      ​@@verified_tinker1818 Yes, usually in a datacenter. This is how things worked before the "cloud" scam took off. Instead of running your service on someone elses computer, you just run it on your own, hosted somewhere with fast cheap internet, good cooling and reliable backup power.

    • @adriankal
      @adriankal 12 днів тому +18

      How about security?

    • @callowaysutton
      @callowaysutton 12 днів тому

      @@verified_tinker1818 it seems like my reply got removed, but yeah. They're LTOs with a very generous policy where the leaser is going to manage all of the hardware during the leasing period and after the contract is over the client can do whatever they want with the hardware.

  • @SubFlow22
    @SubFlow22 12 днів тому +699

    I have serverless code that constantly checks and alerts on my current bill every morning and at select thresholds. This needs to happen before deploying ANY other serverless code. Also, don't buy into the middleware apps and platforms, just work directly on AWS/Azure/GCP.

    • @moomie1634
      @moomie1634 12 днів тому +127

      I used the serverless function to destroy the serverless function

    • @adambickford8720
      @adambickford8720 12 днів тому +73

      So you're paying amazon to run code for a service they offer for free? Brilliant!

    • @chinesesparrows
      @chinesesparrows 12 днів тому +19

      Vercel is a PaaS, it can never be cheaper than the servers/IaaS it's based on. The only question is time and skill

    • @liquidsnake6879
      @liquidsnake6879 12 днів тому +46

      I have my server set up to just fail if it exceeds a certain amount of users at once past my caching layer and i get an alert for that so i can deal with it, it's not that big a deal. 99.9% of people don't need infinite scaling and it's gonna cause more problems than it solves.
      You can have it check every morning but then you get a ddos attack during the night and wake up to a horrifying 5,000,000% increase overnight from your reporter, you really need to set limits imo to any of these serverless tools if you really HAVE to use them

    • @vectoralphaAI
      @vectoralphaAI 12 днів тому +16

      But do AWS/Azure/GCP have PaaS? I dont want to deal with IaaS, im a web developer not a systems administrator. I just want to write my code, build my project and easily and cheaply host it online without having to deal with servers and linux management and all those other confusing tasks.

  • @That__Guy
    @That__Guy 12 днів тому +291

    I worked at a startup once that almost got killed by a circular dependency in aws lambda that a junior added without code review over the weekend. The only reason it even got found was because one of those functions locked up a database eventually and then I traced the usage back to those functions because I was the only one capable enough to google and read the manual where the others could only cry and run in circles. That was one hell of a Monday morning

    • @lev3440
      @lev3440 12 днів тому +9

      Did they fire the junior for this?

    • @bearwolffish
      @bearwolffish 12 днів тому +78

      Reading documentation or datasheets is a super power nowadays.

    • @MadMathMike
      @MadMathMike 12 днів тому +131

      ​@@lev3440 I sure hope they didn't. Firing the junior dev for technical leadership's failure to set up even bare minimum safe guards (like requiring a code approval before merge) would be highly inappropriate.

    • @traveller23e
      @traveller23e 12 днів тому +48

      @@MadMathMike when you have discrete versioning with decently long development cycles having an unprotected master is bad enough, but when merging to master sends it straight to production it's just begging for disaster.

    • @MadMathMike
      @MadMathMike 12 днів тому +2

      @@traveller23e 💯💯💯

  • @aromaticsnail
    @aromaticsnail 12 днів тому +152

    Tech: I'm a casino now

  • @not-lucky2202
    @not-lucky2202 12 днів тому +900

    Yeah, Vercel's markup is crazy. Bill could have been under $1000 easily with AWS.

    • @Those_Weirdos
      @Those_Weirdos 12 днів тому +121

      It also could have been well over $1000, since they're using "serverless". But throw a couple cheap EC2 instances at the problem, and their primary cost driver becomes network egress rather than compute.

    • @guncolony
      @guncolony 12 днів тому +164

      @@Those_Weirdos then you realize that Hetzner exists where network costs are 50-100x cheaper than AWS.
      It's 2024 and computers are still getting faster exponentially. Nobody should be paying that much for some cloud compute, lol.

    • @SirWolf2018
      @SirWolf2018 12 днів тому +54

      @@guncolony Exponentially is a lie. They're struggling hard, sometimes complaining about Moore's Law, the fabrication processes are getting more expensive and physically harder to do, etc.

    • @CottidaeSEA
      @CottidaeSEA 12 днів тому +39

      @@guncolony If you look at how technology progresses, it's actually logarithmic, not exponential.

    • @yyyd6559
      @yyyd6559 12 днів тому +3

      ​@@Those_Weirdos Rather that than pay 96k

  • @tf5pZ9H5vcAdBp
    @tf5pZ9H5vcAdBp 12 днів тому +362

    1:50 that guy is spraying like 20% out of the bucket. What is wrong with him!?

  • @amakazor8632
    @amakazor8632 12 днів тому +26

    A quick alternative to serverless bills:
    0. Stop fearing servers
    1. Learn Kubernetes
    2. Rent a VPS
    3. Deploy your shit on it
    4. Pay $20/month
    5. ???
    6. It just works
    7. You can even rent more VPS if you need to and route your traffic between them

    • @games4us132
      @games4us132 6 днів тому +2

      you still need to pay for traffic tho

    • @justanaveragebalkan
      @justanaveragebalkan 5 днів тому +1

      but but, sir UA-cam programmers said nextjs is hot, there are lot of jobs with serverless and it's important to build.
      on a serious note, totally on point, but people are lazy and always want to get the easy way out and avoid the extra study.

    • @justanaveragebalkan
      @justanaveragebalkan 5 днів тому

      @@games4us132 Well yes there is no free lunch as they say. Difference is that traffic is dirty cheap compared to serverless, we have couple of production apps running on Azure, most cost between $80-$120 a month with around 400 000 users on each, at best we get 300-500 concurrent connections on a machine so we are pretty much solid there, almost never hit the limits and since we are orchestrated with Kubernates we can just deploy and scale at any given time, yes it does require to keep system administrator on staff so he can monitor the machines but it's better to pay 80k yearly than monthly.

    • @amakazor8632
      @amakazor8632 2 дні тому +1

      @@justanaveragebalkan The thing is, that there is absolutely no issue with deploying next on normal serverful infra. It's just a node app ffs. But Vercel markets it like it's some kind of an esoteric nonsense that you need to deploy on lambdas for the comfort of your 3 users

    • @DannoHung
      @DannoHung День тому +1

      What gets me is that people complain that Kubernetes is complicated, but what they fail to also acknowledge is that Kubernetes is trying to model a very complicated subject correctly (and I say trying because it’s clear that they didn’t start with the right models to begin with, but I do think the project has gotten closer than anything else).
      What’s I’d really say is that if you’re trying to balance keep your budget under control without doing something very complex is actually build your tools in a precompiled language as much as you can and try to build it as a monolith if possible. I personally like Rust for this since although learning the tool itself has a high cost, it really does pay dividends in many other ways.

  • @M4rt1nX
    @M4rt1nX 12 днів тому +37

    I've learned so many valuable things on your channel. Thanks a lot Fireship. You just saved a lot of start-ups.

  • @lpnp9477
    @lpnp9477 12 днів тому +181

    I considered getting into web dev but now I'm good, thanks.

    • @r6scrubs126
      @r6scrubs126 12 днів тому +32

      Yeah no joke I'm a desktop developer that keeps thinking about getting into web dev and every week a new video from fireship puts me off

    • @CanalTremocos
      @CanalTremocos 12 днів тому +6

      Never go to business before asking if Limited Liability Companies are the right match for you :p

    • @leeoiou7295
      @leeoiou7295 12 днів тому

      @@r6scrubs126 You can get into web dev as long as you are not starting your own business. Best way to be a web dev is to be an employee. The coding side of web dev is easier than mobile, gaming, desktop etc. But the business part is harder than those 3 combined.

    • @vectoralphaAI
      @vectoralphaAI 12 днів тому +1

      Yeah other forms of development are better than Web.

    • @tiborbesze5658
      @tiborbesze5658 12 днів тому +30

      Just don't go serverless. Worry about scaling when you actually get significant traffic. For most low traffic projects a $5 - $15 VPS will perfectly suffice, and you don't have to worry about racking up a huge bill. Yes, it does involve having to learn some basic server management, but I'd consider that opportunity an upside, rather than a downside.

  • @npc-drew
    @npc-drew 12 днів тому +627

    $96,280 is the amount of money I’d make when I graduate Fireship University. 😂😅

    • @pequod4557
      @pequod4557 12 днів тому +67

      That would be your net worth, with a minus sign.

    • @houssamalucad753
      @houssamalucad753 12 днів тому +8

      you wish

    • @npc-drew
      @npc-drew 12 днів тому

      @@houssamalucad753 Who is “You”. I’m “Me”.

    • @TheAechBomb
      @TheAechBomb 12 днів тому +16

      the amount you'd owe*

    • @user-qw9yf6zs9t
      @user-qw9yf6zs9t 12 днів тому +7

      bro thinks hell get pinned

  • @adamwarvergeben
    @adamwarvergeben 12 днів тому +845

    Q: How did you become homeless?
    A: I used Vercel

  • @bocaumtube
    @bocaumtube 12 днів тому +24

    The last scene depicts so well the serverless coolaid, first you take a few sips from the cup, conflicts itself about drinking more, what the hell, who need glasses?

  • @francoisbertrand7612
    @francoisbertrand7612 12 днів тому +10

    Glad for the distinction, as we've got some pretty upscale triangles here east of the Mississippi

  • @incyphe
    @incyphe 12 днів тому +35

    2:48 "quite possibly the best triangle west of Mississippi." wtf lol

    • @kuva
      @kuva 11 днів тому +2

      The Bass Pro Shop Pyramid is technically a triangle. And it's east of the mississppi.

    • @trongvana1269
      @trongvana1269 10 днів тому +2

      What does this quote mean exactly ? 😂

    • @Sergio_Loureiro
      @Sergio_Loureiro 9 днів тому +1

      @@trongvana1269 I am from Portugal, an European nation and even I know about the Mississippi Delta, one of the poorest regions of USA.

    • @trongvana1269
      @trongvana1269 9 днів тому +1

      @@Sergio_Loureiro Thanks man, I am from SEA, and absolutely had no idea about all that.

  • @BlakeEM
    @BlakeEM 12 днів тому +60

    I looked into serverless for my projects, but I couldn't make sense of it if my site were to blow up. I decided to host it on a rack at my house using static IPs pointing to some old cheap laptops from eBay. I always prefer to host it myself.

    • @nurullo.salaydinov
      @nurullo.salaydinov 12 днів тому +4

      what programs do you use? I always interested in hosting my django or nodejs apps in my laptop, any tutorial videos or documentations can you recommend, I would be happy

    • @jaycool-lb9kj
      @jaycool-lb9kj 12 днів тому

      ​@nurullo.salaydinov
      Dont need any progammes per se
      1. Get an old laptop (the server)
      2. Do a clean reboot with linux
      3. Allow portforwarding on ur home router and forward ports 22, 80, 443 to the server
      4. Ssh into ur server and set up nginx with reverse proxy to express app running on ur server
      Boom

    • @skorp5677
      @skorp5677 12 днів тому

      Use docker :) ​@@nurullo.salaydinov

    • @charlesm.2604
      @charlesm.2604 12 днів тому

      @@nurullo.salaydinov The most basic way to do it is by using a dynamic dns provider and cloudflare as a firewall/proxy on your domain name. Basically only cloudflare servers will request your app and outsiders will not be able to see your ip. All you have to do is open a port in your home network and have the dynamic dns provider listen on it. I wouldn't recommand it for anything critical but it is a convenient way to self-host services for friends/family. As far as demo I still prefer network tunneling.

    • @coherentpanda7115
      @coherentpanda7115 11 днів тому

      We host on good 'ol Azure App Service. Easy to control costs and number of instances are limited up out of the box. Vercel sucks for things like this, because they hide their true costs really well from unsuspecting developers that don't know a lick of devops, but the slick interface makes them seem smart.

  • @chrisc9725
    @chrisc9725 12 днів тому +1

    Great editing, really entertaining. 👍🏼

  • @LabhamJain
    @LabhamJain 12 днів тому +48

    My question is do we really need "infinite" scaling for startup projects?

    • @nlnu1337
      @nlnu1337 12 днів тому +9

      "Scalable Software" seem to be one of the latest, hottest and most overused buzzword in job ads and such lately...

    • @arakwar
      @arakwar 12 днів тому +8

      No. But the simplicity of serverless is quite useful.

    • @LabhamJain
      @LabhamJain 11 днів тому

      ​@@arakwarthis simplicity is at a cost if not in the beginning it'll eventually cost you. Then when you are getting popular and your cloud bill is in 6 digits it'll be way harder to move to regular infrastructure that too needs to be done quickly before 6 digit bill becomes 7 digit 😂. Best solution to this problem is I think using FaaS as minimum as possible when you want some service or api to go active 24x7 and it's in budget to handle ddos like attacks.

    • @LabhamJain
      @LabhamJain 11 днів тому +1

      Ddos in terms if the service actually gets too much of traffic out of any viral post or something

  • @ReddAngry
    @ReddAngry 12 днів тому +16

    I don’t understand about 60% of what you talk about but I still find it fascinating

  • @guncolony
    @guncolony 12 днів тому +110

    Lmao at the IRS at 1:26

    • @ShaferHart
      @ShaferHart 11 днів тому

      Funny but inaccurate. Amazon pays zero in taxes.

  • @lilsos6892
    @lilsos6892 12 днів тому +116

    best solution is to just cancel CC and delete the account.
    I saw some Reddit posts that AWS charged them $5K for some shitty server - some people just deleted their accounts and moved on with their life lmfao

    • @voidvector
      @voidvector 12 днів тому +61

      Fairly sure that's only possible outside of North America. In US, they could sell that uncollected debt to a debt collection agency, who will then go down the path of eventually repo your car/house.

    • @CM-mo7mv
      @CM-mo7mv 12 днів тому +1

      repo man...

    • @gus473
      @gus473 12 днів тому +6

      ​@@voidvectorUm, no. Consult a lawyer or grownup. ತ⁠_⁠ತ

    • @avwie132
      @avwie132 12 днів тому +2

      Yeah AWS is not allowing that. Their lives will be destroyed

    • @goeland4585
      @goeland4585 12 днів тому +11

      ​@@voidvectorPretty sure if you are in Europe that's not possible either.
      You don't just "ignore" a 4+ figures bill

  • @brandinghunter3627
    @brandinghunter3627 12 днів тому +16

    As always your memes are top tier

  • @6IGNITION9
    @6IGNITION9 12 днів тому +46

    My $5 VPS doesn't have this problem...
    For real though, call me old fashioned, but I'd say $96,000 is a pretty compelling reason to spend a few days learning to set up a server.
    For reference, Hacker News runs not only on a single machine, but a single _core._
    (In a custom garbage collected language, which itself is implemented in a garbage collected language...)

    • @huckleberryfinn6578
      @huckleberryfinn6578 12 днів тому

      Yup. 96k for "only" 500k users are insane. You can run this easily on a $200 server from Hetzner.

    • @mushiat6530
      @mushiat6530 12 днів тому +7

      Okay but hacker news is literally just text.

    • @6IGNITION9
      @6IGNITION9 12 днів тому

      @@mushiat6530 Fair enough! Cara is text and images. (Like every other website?)
      They use a different company (Cloudflare) for the images. Not sure what the Vercel serverless stuff is doing :/

    • @PASTRAMIKick
      @PASTRAMIKick 12 днів тому +6

      yeah most things can run on a VPS, the allure of scalability on the cloud just ends up being massively expensive, it only takes for your app to become ultra successful or some dork DDOSer

    • @X4R2
      @X4R2 12 днів тому

      @@mushiat6530 CDNs significantly lighten the load on website servers. Yes, an image server would need more storage and bandwidth than a text server, but not as much as a streaming service which serves billions of images as video.

  • @andresconrado
    @andresconrado 12 днів тому +15

    I'm old, still using good old shared hosting. I always have thought cloud was... suspicious.

  • @patricksweet4104
    @patricksweet4104 9 днів тому +1

    Those even somewhat educated in this space know what an accurate and honest video this is. Thank you fireship. 🙌

  • @Something9008
    @Something9008 11 днів тому

    I've used Caprover for over 3 years and love it - it's built on Docker and supports multiple instances of frontend / backend projects. You can run php / react / node / etc simultaneously on the same server.

  • @user-qg2qp1nu6z
    @user-qg2qp1nu6z 12 днів тому +3

    I recently have figured out that getting an old thinkpad and running OpenBSD on it is a good option. It has great OS security while also having built-in versions of Nginx (relayd) and Apache (httpd) and a really good firewall that the rest of the *BSD family borrows (pf). The only think it can't do itself is containers (it prefers using jails for that purpose), but its built-in hypervisor (vmm) can run an Alpine host to run containers. I guess a good solution for container workloads would be having a bunch of Alpine hosts on vmm that have traffic reverse-proxied to them via relayd and maybe some static pages running on httpd. The best thing I enjoy is probably the excellent documentation. Its manpages and faq are so good that you don't really need stackoverflow unless you are going into crazy territory. The kernel itself also has lots of memory safety constraints it puts on your program, so most programs with memory issues will get caught in staging before they hit production.

    • @steveoc64
      @steveoc64 9 днів тому

      Have a look at BastilleBSD - a very good docker work-alike that uses jails and pf and zfs to do containers nicely, without the chaos of docker. Its a very nice bit of software.
      its pretty tied to FreeBSD though (?) - might be ported to OpenBSD as well ? defs worth a play with

  • @alaskandonut
    @alaskandonut 12 днів тому +10

    That’s Nathan For You reference was nice.

  • @qerg-fx6hb
    @qerg-fx6hb 12 днів тому

    2 videos in one day thank you so much

  • @nerdvananc
    @nerdvananc 12 днів тому +72

    Imagine writing bad code which makes expensive DB queries and you find out not because your app is running slowly but you're paying $100,000 for the DB 😭😭😭

    • @kukuricapica
      @kukuricapica 12 днів тому

      From my experience you have limited compute usually so you would either way had to wait longer. But I have seen DevOps autoscaling into another region with full backup or turning on excesive logging. Cost us 10-30K € lol, fun nights

    • @jerycaryy4342
      @jerycaryy4342 12 днів тому +2

      I don't think it's a 100k just for db. It's for hosting the entire site.

    • @solarydays
      @solarydays 12 днів тому +1

      it's probably not that but that they chose to run nigthshade for any uloads

  • @laupoke
    @laupoke 12 днів тому +102

    How do you sign up for something like that, get loads of traffic, and just not check how much it's costing you

    • @ea_naseer
      @ea_naseer 12 днів тому +27

      I WAS ON FREE TIER

    • @canaconn2388
      @canaconn2388 12 днів тому +41

      Same people who blindly hate "AI" without even researching or knowing what it is

    • @janniswildermuth1499
      @janniswildermuth1499 12 днів тому +39

      From how popular it is, I would guess the person who made it was inundated with new responsibilities and giant amounts of communications very quickly, so the stuff got lost. I agree it's their responsibility, but we're all just human. I don't know what the best way to deal with this is now, maybe with how popular the site is, they could work out a payment plan with the company for a small amount of interest? Or if the company wants good PR maybe they just let them backpay without any strings attached. Considering the photographer is suing multiple giant companies at the same time, I also don't think they are struggling for cash, so hopefully the cost wouldn't bankrupt them, if the company isn't willing to work something out.

    • @tatzecom
      @tatzecom 12 днів тому

      @@janniswildermuth1499 the correct thing would have been for Vercel to have a sensible spending limit turned on by default. Like a bank wont let you overdraft your account as much as you want, theres a sensible limit. For someone using the free tier this could be ~500-1000 dollarinos.
      The fact that this is turned off by default (and mostlikely not that easy to find too) is a dark pattern and should imo be made illegal.

    • @coldicekiller1352
      @coldicekiller1352 12 днів тому +42

      costs, pricing and most importantly limits are obfuscated in order to milk every cent they can from you, having a limit by default and having to disable it with a huge disclaimer about the potential costs should be required by law with all of these infinitely scaling serverless services, especially considering how crippling a DDoS is economically

  • @CottidaeSEA
    @CottidaeSEA 12 днів тому +9

    I'd be interested in seeing the cost breakdown

  • @Codethier
    @Codethier 12 днів тому +1

    + one for coolify, you can easily scale with it as a build tool + vultr kubernetes
    or just manually even

  • @tyler7637
    @tyler7637 11 днів тому

    Great Video as always!

  • @russelmiranda4203
    @russelmiranda4203 12 днів тому +5

    we love u fireship

  • @sven33r
    @sven33r 12 днів тому +74

    Never knew that Hetzner is known outside of Germany :)

    • @lazyc97
      @lazyc97 12 днів тому

      nah, I see everywhere on reddit people recommend it as the first alternative to consider over the large vps providers like AWS and GCP

    • @tatzecom
      @tatzecom 12 днів тому +4

      Im like 95% sure its Romans fault. gotta be.

    • @blackoutgo2597
      @blackoutgo2597 12 днів тому +8

      They have a data center in the states now, and their prices are good

    • @Applecitylightkiwi
      @Applecitylightkiwi 12 днів тому +3

      hetzner pretty good

    • @lainwired3946
      @lainwired3946 12 днів тому +1

      They're quite well known for decently priced euro dedis, especially their server robot thing for the low end market. Better than OVH, usually.

  • @ArnaldurBjarnason
    @ArnaldurBjarnason 10 днів тому

    I admire your courage in admitting your addiction. It's a big step, and we're here to support you through this journey of recovery.

  • @dragusincristian9986
    @dragusincristian9986 11 днів тому

    You made me feel so proud I saw it coming and used SST from the beginning 😂

  • @cyberprompt
    @cyberprompt 12 днів тому +19

    How did I never make the vocal similarity to Nathan? That show was just like this channel. Smart, funny and mostly monotone.

  • @MelkeyDev
    @MelkeyDev 12 днів тому +3

    Coolify and SST are incredible tools!

  • @awesomewow668
    @awesomewow668 12 днів тому

    Thank you, for including Coolify in the video (i am not the dev behind it).

  • @berrutti_
    @berrutti_ 11 днів тому

    This is the best ad for a job offer I've seen in my life

  • @lolgoodbye8197
    @lolgoodbye8197 12 днів тому +7

    3:49 NOOOO! POUR IT IN THE CUP YOU MONSTER!!!!

  • @m77mo65
    @m77mo65 12 днів тому +39

    Firebase severless function with bill enabled on Google cloud is fkn amazing

    • @Fireship
      @Fireship  12 днів тому +25

      That's what I'm addicted to

    • @AAL3087
      @AAL3087 12 днів тому +17

      What does this mean. Tell me in 100secs or less.

    • @sarcasticdna
      @sarcasticdna 12 днів тому

      😂 😂 😂 ​@@AAL3087

    • @kkebo
      @kkebo 12 днів тому +2

      @@AAL3087 yeah, I have no clue either

    • @adriankal
      @adriankal 12 днів тому

      Swith to cloud run. You'll have normal server that runs only when there is traffic. If traffic is too big for one server, they'll spin another, up to limit that you've set in conf. They use cloud run behind the scenes in cloud functions, but they spin one server per function, so it's more expensive.

  • @maxdon2001
    @maxdon2001 12 днів тому

    Great video!

  • @JawaCodePro
    @JawaCodePro 12 днів тому

    Thanks for information

  • @_aniedit_5114
    @_aniedit_5114 12 днів тому +5

    your opinion about Humster combat.

  • @exentrikk
    @exentrikk 12 днів тому +7

    2 videos same day? Fireship is fired up!

  • @theBlackbriar
    @theBlackbriar 11 днів тому

    I've been subbed for over a year now, and I've always thought you sounded familiar... now I know exactly who I was thinking of😂😂😂

  • @patricks2645
    @patricks2645 10 днів тому

    i was working as a freelance web dev for a startup that used vercel. I needed access to it to set up a feature they wanted me to implement but they were hesitant to give it to me since I was just a contractor. They ended up not renewing my contract due to "reevaluating their roadmap." I think this might've been why, so thanks for the next best thing to closure.

  • @jaroslavhuss7813
    @jaroslavhuss7813 12 днів тому +36

    Netlify and CloudFlare the same... Well... I bought my own server, placed it into server housing and I do not care anymore... This is getting insane.

    • @iKXWISH
      @iKXWISH 12 днів тому +11

      As everyone should. Stop feeding the rich 😂

    • @vaisakhkm783
      @vaisakhkm783 12 днів тому +3

      My internet and power is too unreliable even for a raspberry pi to operate as a server... :(

    • @iKXWISH
      @iKXWISH 12 днів тому

      @@vaisakhkm783 true. I like having a backup in another city just in case. I leave one server at my parents house in one city and another at my own place to minimize downtime

    • @ZennExile
      @ZennExile 12 днів тому

      @@vaisakhkm783 cheaper to make it redundant and buy a generator than it is to pay for hosting scam prices.

    • @DoomMirror
      @DoomMirror 12 днів тому

      What's wrong with cloudflare?
      Currently hosting two sites on cloudflare 😰

  • @mfatihbilhaq4977
    @mfatihbilhaq4977 12 днів тому +7

    I see others mentioned that it would them cost less to use AWS directly. That would be the case if Cara is just image hosting site only. But there's a bigger picture that doesn't get addressed in the video.
    But Cara has Stable Diffusion based Nightshade and Glaze in their website that aims to "protects" human art. This requires a serious amount of compute that scales with image resolution. So that means they are effectively running the same level of compute as a high VRAM, high GPU farm for image.
    And this amount of computing power being given 500.000~ users for willy nilly. Sounds like hosting nightmare for me.

    • @ferinzz
      @ferinzz 12 днів тому

      knowing that, it probably would have been better to rent a high-end gpu server to do the compute and then do the actual web hosting on AWS. have a queue of processed/unprocessed files.
      Either way, hosting always has a cost and starting something that has such a high demand with no plans on ways to pay for it was a bit silly.

  • @Kogarasumaru
    @Kogarasumaru 12 днів тому +2

    1:24 this image is poetry

  • @valeriykuvshinov
    @valeriykuvshinov 12 днів тому

    As a Hostinger linux vps user, this is quite fun to watch

  • @user-fqlt
    @user-fqlt 12 днів тому +18

    I had a very bad experience with Hetzner that I'm not ready to forget.

    • @fred.flintstone4099
      @fred.flintstone4099 12 днів тому +18

      What was the bad experience?

    • @jb5631
      @jb5631 12 днів тому

      I have been with them for a very long time and never had any bad experiences. It lacks some things but that's well worth their pricing for me.

    • @Gornius
      @Gornius 12 днів тому

      @@fred.flintstone4099 Yeah my experience with exceeded my expectations. Their control panel is very intuitive, no hidden costs, quite reliable, and Aarch64 machines art dirt cheap. Of course - off-site backups are necessary no matter where you decide to get your VPS.

    • @beup-todate5015
      @beup-todate5015 12 днів тому +3

      Yeah, let us know man, what happened, so we can be prepared as well!

    • @user-fqlt
      @user-fqlt 12 днів тому +1

      @@fred.flintstone4099 I was familiar with Linode and other VPS like that until one day I saw Hetzner with the attractive pricing. I stated to migrate after few days of test. I didn't know you have to pay your first invoice just after the first week because I thought it was similar to Digital ocean or linode or others I'm used to with their monthly fees. Just after the migrations I was to busy for emergency ( personal reasons) for three weeks. I came back and all my servers were locked I couldn't connect. I paid the bill still I couldn't connect. I reached out their BAD Customer service. I got very annoying answer. I had to beg them in order to recover some of my datas that I really need after that I read some articles with people having bad experience with Hetzner. Since then I stick with my Linode(Akamai) servers. This is one of my bad experience with Hetzner among others.I hope that I'm a bit clear. (Sorry English is not my first language)

  • @fiddytroisvis
    @fiddytroisvis 12 днів тому

    Jeff actually being Nathan Fielder was the crossover episode I didn't know I needed

  • @myykeats
    @myykeats 12 днів тому

    I've switched some static hosting to AWS Amplify. It's about as cheap as you can get for good static hosting. That's what I'd use if I needing to do something fast.

  • @dranon0o
    @dranon0o 12 днів тому +148

    Moral of the story, learn baremetal hosting and learn that being a software engineer is not about using tools that outsource the engineering that you should do, you paying for it when you can do it yourself.

    • @none_the_less
      @none_the_less 12 днів тому +5

      I bet the person learnt the f*** lesson.

    • @Kabodanki
      @Kabodanki 12 днів тому +21

      Yes this is very easy, just do that /s

    • @ultimaxkom8728
      @ultimaxkom8728 12 днів тому +13

      Or the lesson is to ALWAYS set and turn on budget limit.

    • @fred.flintstone4099
      @fred.flintstone4099 12 днів тому +22

      But then you have no time to code because now all your times goes to setting up, configuring, securing, maintaining, updating, upgrading, migrating, monitoring and tuning your servers.

    • @davefunk135
      @davefunk135 12 днів тому +7

      Right answer. Serverless is dangerous and unecessary

  • @captainkite
    @captainkite 12 днів тому +9

    I would love to see coolify in 100 secs

  • @TheKennyWorld
    @TheKennyWorld 12 днів тому +2

    Coolify is built with the TALL stack btw!

  • @captainlennysub
    @captainlennysub 12 днів тому

    I was waiting for this 😂

  • @fuzzzzy
    @fuzzzzy 12 днів тому +5

    2:44 wtf is this meme 😭

  • @djo_shorts6154
    @djo_shorts6154 12 днів тому +5

    My goodness 🙆🏽‍♂️🙆🏽‍♂️

  • @rob8145
    @rob8145 12 днів тому

    Hilarious and informative. Great news as always

  • @Interpause
    @Interpause 12 днів тому

    one day if ive to deploy infra, i think maybe enough collocated servers to cover typical use, but also code to scale to cloud providers for sudden bursts

  • @YeahUniversal
    @YeahUniversal 12 днів тому +18

    Cloudflare "workers" are good for serverless jobs as alternative

    • @Xpert85
      @Xpert85 12 днів тому +16

      As long as you don't get an email from their sales team

    • @xxLolZapxx
      @xxLolZapxx 12 днів тому +12

      @@Xpert85you mean the “Trust and safety team”?

    • @bric305
      @bric305 12 днів тому +1

      @@Xpert85 Wdym?

    • @V3racious3
      @V3racious3 12 днів тому

      ​@@bric305 I love cloudflare but there has been cases of them extorting companies. They'll demand you upgrade to their Enterprise plan and if not close your account and delete all your records & configs. There are videos on YT about it. They contact you acting like it's a technical issue or hack but once they get you on the phone it all sales.

    • @Clawthorne
      @Clawthorne 12 днів тому

      @@bric305 Basically there was this post recently on... I think hackernews? Or possibly reddit... where a guy's company randomly got emailed by cloudflare asking them "Would you like Enterprise plan?", which would have been crazy expensive, so they declined since they were happy on Professional plan. It worked fine for them, and they hadn't hit any kind of limits. (Nor were they going against any kind of ToS or intended use for Professional plan)
      This was followed by an email telling them "OMG SOMETHING IS HORRIBLY WRONG WITH YOUR ACCOUNT OUR TECHS NEED TO SPEAK WITH YOU!!!! ITS A MAJOR CRISIS!!!", only to be connected to sales who again tried selling them on the Enterprise plan. They were thoroughly confused and declined again.
      Then suddenly they got an email telling them "You are doing stuff that goes against our Terms of Service!! You need to speak with Cloudflare Trust & Safety!!", and yet again they were connected to sales. But this time sales basically told them their account has been flagged for fraud or something and that that they NEEDED Enterprise, and that they had only a few days to pay $120,000 (Yes, one-hundred-and-twenty-thousand USD) up front for a year or bad things would happen.
      They obviously looked into alternatives, and the moment Cloudflare found out about this they deleted all of their domain settings and locked the account, which caused the company's entire infrastructure to collapse and their site to be unavailable for several days. And they couldn't fix it because their Cloudflare account was now locked.
      The poster said it was insanely lucky they hadn't used Cloudflare as domain registrar, otherwise they might have lost all of their domains too. The entire company had probably gone under if that was the case.
      So yeah. Cloudflare is hot garbage.

  • @IzzumiPoshaf
    @IzzumiPoshaf 12 днів тому +6

    0:02 Or Equivalent of Rp. 1.57 Billion in Rupiah (IDR) for the Serverless Function Execution Bill that has been Charged in Vercel Hosting.

  • @helgelol
    @helgelol 12 днів тому +2

    Pocketbase hosted at Home but made public through cloudflare tunnels is an option.

  • @firedforfighting
    @firedforfighting 12 днів тому

    @2:23 to be fair this is a few month old. When the netlify story hit I don't think vercel even implemented that feature yet, or anyone else.

  • @mohammedabutaki4626
    @mohammedabutaki4626 12 днів тому +3

    Guess need something else looking for 😅

  • @planktonfun1
    @planktonfun1 12 днів тому +5

    devops noob mistake, always set a limit

  • @Garkolym
    @Garkolym 12 днів тому +1

    Even if the backend has no bugs, the risk of getting a big bill after a Layer 7 DoS attack is too high. I avoid pay per use clouds and recommend normal servers to everyone.

  • @4RILDIGITAL
    @4RILDIGITAL 11 днів тому +1

    It's really shocking how these unexpected costs can creep up on you, especially when you're trying to create something good like this. Seems that understanding the cost model is key in serverless computing.

  • @gblargg
    @gblargg 12 днів тому +13

    0:33 That's on Vercel for letting such a big bill pile up without some collateral on the user's part. They effectively gave him an unsecured loan.

    • @lawleds1
      @lawleds1 12 днів тому

      advising you to listen to the rest. apparently there is a spending limit which could be set and also vercel sent 12 notifications mails.

    • @iii0iii0iii0iii
      @iii0iii0iii0iii 12 днів тому

      @@lawleds1so what? that can happen over weekend so emails will be unnoticed for a while. many services do it the right way - let the user top up balance first and then set daily spending limit. as easy as that. I think vercel are not worried about situations like this as long ad people keep paying these bills

    • @gblargg
      @gblargg 12 днів тому +5

      @@lawleds1 Does that counter what I said? They are still on the line for the money, not this guy. I think a court would ask why they extended so much without any assurance he could even pay it.

    • @arakwar
      @arakwar 12 днів тому +2

      @@gblargg Because he didn't set any limit and was not repling to multiple notifications. If you leave your oven running over the weekend do you expect the electric company to shut down your electricity "just in case"?

    • @gblargg
      @gblargg 12 днів тому +3

      @@arakwar I think you're misunderstanding. I'm not commenting on the person who was using the service, I'm commenting on the provider. They extended this person $100k in credit. Unless this person has lots of cash flow, I predict they won't see much of it. Your point about them giving warnings and getting no response just supports what I'm saying.

  • @inzaghiposumaalkahfi9650
    @inzaghiposumaalkahfi9650 12 днів тому +3

    0:43 It's on June 7, 2024 or Dhu al-Qa'dah 30, 1445 AH and you're watching Fireship Videos about Vercel's Serverless Computing Bill goes Parabolic on Code Report Series.

  • @trannusaran6164
    @trannusaran6164 12 днів тому

    forever thankful I got into backend first and don't mind rolling my own everything

  • @imakethesites3048
    @imakethesites3048 12 днів тому

    If only I could be as funny, skilled, and aware of possible hosting bills as Fireship.

  • @pheisar
    @pheisar 12 днів тому +3

    All we hobby noob coders want is a button on the dashboard that says KILL THE APP when the price tag reaches a limit, so we can all sleep at night. Why's no one doing it?

    • @theoverlander4579
      @theoverlander4579 12 днів тому

      because they want your money lol

    • @damar1967
      @damar1967 12 днів тому +2

      they do have some kind of spend management 2:22 but maybe it wasn't clear enough

    • @pheisar
      @pheisar 12 днів тому

      @@damar1967 does it notify you or kill the app?

    • @damar1967
      @damar1967 12 днів тому +1

      @@pheisar both, when paused, the app will send 503 services unavailable

    • @pheisar
      @pheisar 12 днів тому +1

      @@damar1967 ok, cannot fault Vercel for what happened then, even if they're pricey af

  • @PavelPirogov
    @PavelPirogov 12 днів тому +3

    Best alternatives to serverless are servers! Just rent simple server and run any software you want on it. If you need to manage heavy load then rent multiple powerful servers and setup kuber then rent or release more servers if load is too big. It will be much cheaper then serverles. If this is too expensive then rent place in datacenter and put there own servers. This will not allow you to handle rapid grow. But in this case rapid grow will not kill you.

    • @arakwar
      @arakwar 12 днів тому

      Define cheaper. Because up until now their hosting cost was a lot lower than paying someone to manage those servers + the server cost itself.
      This is what most of you seems to forget about serverless : you usually will pay pennies per month. Cost is directly related to usage.

  • @Bughatti..
    @Bughatti.. 10 днів тому

    Hey, i dont know weather to pick between CS or software engineering as a course, which do i choose?

  • @bojan2501
    @bojan2501 12 днів тому

    Did not try it yet, but looking at Apache OpenWhisk.

  • @ChristianSteimel
    @ChristianSteimel 12 днів тому +3

    If you can set a hard limit and it shuts down when that's reached, then I am all good. If she didn't set a limit, then its on her.

    • @DoktorKumpel
      @DoktorKumpel 12 днів тому +2

      Shouldn't such a limit be set by default when you're on the FREE tier?

    • @bepamungkas
      @bepamungkas 11 днів тому

      ​@@DoktorKumpelyou can't "overspend" on free tier since projects are paused on cap.

    • @BEN-ys6gu
      @BEN-ys6gu 11 днів тому

      Even on a paid tier the limit should be set by default. People don't have infinite money. If a big company decides to use your service, they are smart enough to go to settings and disable it

    • @interstella0
      @interstella0 10 днів тому

      @@BEN-ys6gu agree, its insane to me that they could just charge you a cost of a small apartment overnight by default.

  • @GamePlayByFaks
    @GamePlayByFaks 12 днів тому +7

    cheap vps and self managed is best.

    • @AAL3087
      @AAL3087 12 днів тому

      What's vps?

    • @zeroXverse
      @zeroXverse 12 днів тому

      @@AAL3087 virtual-porn-services

    • @GamePlayByFaks
      @GamePlayByFaks 12 днів тому

      @@AAL3087 en.wikipedia.org/wiki/Virtual_private_server

    • @interstella0
      @interstella0 10 днів тому

      @@AAL3087 virtual private server, they are like a regular computer on the cloud you can use to host. they are absolutely cheap for personal use.

  • @BukkitViper
    @BukkitViper 12 днів тому

    What software or service would you recommend for hosting a python server?

  • @vkarast
    @vkarast 12 днів тому

    your videos are amazing! Please make one about NixOS

  • @marcynarcy
    @marcynarcy 12 днів тому +6

    i host on my raspberry pi, use docker so if an app blows up i can quickly migrate

  • @damandarin5415
    @damandarin5415 12 днів тому +27

    28 seconds ago is crazy

  • @skyplayx3558
    @skyplayx3558 12 днів тому

    2:47 Great product AND west of the Mississippi? Expect a call from Saul soon

  • @dreamisover9813
    @dreamisover9813 12 днів тому

    I still have stuff on heroku that I haven't migrated yet... that free tier was awesome

  • @cirrusradiatus
    @cirrusradiatus 12 днів тому +6

    COOLIFY MENTIONED WOOO

    • @Mempler
      @Mempler 12 днів тому +1

      Unironically, i just told my "boss" about it lmao

  • @Capero20
    @Capero20 12 днів тому +29

    Nothing beats the good ol' LAMP
    *gets SQL injected*

    • @damiengerard4836
      @damiengerard4836 12 днів тому +16

      If you are succumbing to SQL Injection attacks it is an application level problem not an infrastructure one. Your application should be able to guard against that on its own.

    • @huckleberryfinn6578
      @huckleberryfinn6578 12 днів тому

      Just learn the PHP basics like mysqli_real_escape_string and your SQL databases should be fine.

  • @dantefederici
    @dantefederici 12 днів тому

    I'm cruising on a 10$/mo VPS with microk8s + gcp artifact registry + some shell scripts to sync it across (can be turned into actions probably?) for all my failed side projects.

  • @Rundik
    @Rundik 12 днів тому +1

    Hetzner has umbeatable price. Great for small projects. And if you're willing to learn a bit of k8s magic, can also scale (never tried it tho). OVH is also great. And there is some hosting with a purple logo, whixh is very big and offers 10 gigabit speeds, but I forgot how it's called

    • @footballuniverse6522
      @footballuniverse6522 12 днів тому

      dont spoil it :D, k8s on hetzner, especially if you migrate from big cloud providers can cut costs by 10 times literally lmao

    • @Rundik
      @Rundik 8 днів тому

      @@footballuniverse6522 if you counting empleyees time then yes. No way the hardware costs more. And if you're making a pet project then dev cost is free

  • @user-zj4ji3th5u
    @user-zj4ji3th5u 12 днів тому +4

    The sharks image is accurate until reaching the irs eating Amazon we all know that’s not true lol