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 - Наука та технологія
Thank you, for including Coolify in the video (i am the dev behind it). 💜
This needs more likes
you sir are amazing
this man is doing gods work
Zammnn
Crushing it
"there is no cloud, only someone else's server" 🙂
Self hosted 😇
*it's just someone else's computer
Wrong, your data is hosted in the light emanating from the sun itself
Yep. 100% marketing. Just like AI.
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.
I'd love to see "Coolify in 100 Seconds"!
Let the temperature drop lmao 🥶
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.
YES LETS FUCKING GO PLEASE
Or even Dokploy , it's new and surprisingly better
2nded
Serverless is the most profitable misnomer in human history
“End-to-end Encrypted”
In my opinion, that distinction belongs to "cloud".
@@soloflo The thing is end-to-end encryption is a real thing. The problem is which ends they are referring to.
Serverless.... you mean buffet? Chef-less? Put newspaper in toaster and walk away? PaaS, Prostitute as a Service. Don't fall asleep.
2nd most: social media is number 1
Flashbacks from forgetting about that EC2 instance on AWS a while back
How's that cardboard box you're living in holding up so far
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.
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
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
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
Just use containers and ignore the serverless meme
Oops, I deployed my containers to AWS
@@SrKinko Use something like Hetzner with sane & constant pricing. AWS for most is really not worth it.
@@marcing5380 AWS is not worth anything
In comes serverless container hosting platforms like AWS ECS on Fargate
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.
Infinite scaling always sounded scary
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.
You speak like a caveman who afraid of fire
@@devyaroz it started with fire, and ended with nukes lmao 😜
@@devyaroz I would be scared of an infinitely scaling fire.
It's more like infinite billing
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.
"Collocated racks"? As in their own servers?
@@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
@@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.
How about security?
@@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.
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.
I used the serverless function to destroy the serverless function
So you're paying amazon to run code for a service they offer for free? Brilliant!
Vercel is a PaaS, it can never be cheaper than the servers/IaaS it's based on. The only question is time and skill
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
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.
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
Did they fire the junior for this?
Reading documentation or datasheets is a super power nowadays.
@@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.
@@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.
@@traveller23e 💯💯💯
Tech: I'm a casino now
lmaoo
99% of web devs quit before they make it big.
Has always been
Yeah, Vercel's markup is crazy. Bill could have been under $1000 easily with AWS.
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.
@@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.
@@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.
@@guncolony If you look at how technology progresses, it's actually logarithmic, not exponential.
@@Those_Weirdos Rather that than pay 96k
1:50 that guy is spraying like 20% out of the bucket. What is wrong with him!?
Thank you! I paused the video and came to complain about this.
He doesn't use TempleOS
He's not doing it for the milk
@rackallthetime 🤣😂
and here I was thinking I missed a AWS bucket part of the video
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
you still need to pay for traffic tho
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.
@@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.
@@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
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.
I've learned so many valuable things on your channel. Thanks a lot Fireship. You just saved a lot of start-ups.
I considered getting into web dev but now I'm good, thanks.
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
Never go to business before asking if Limited Liability Companies are the right match for you :p
@@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.
Yeah other forms of development are better than Web.
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.
$96,280 is the amount of money I’d make when I graduate Fireship University. 😂😅
That would be your net worth, with a minus sign.
you wish
@@houssamalucad753 Who is “You”. I’m “Me”.
the amount you'd owe*
bro thinks hell get pinned
Q: How did you become homeless?
A: I used Vercel
2:34
bot
We can't give you loan you already have $96k credit card bill
Homeless, but serverless
These bots are so damn stupid and lazy
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?
Glad for the distinction, as we've got some pretty upscale triangles here east of the Mississippi
2:48 "quite possibly the best triangle west of Mississippi." wtf lol
The Bass Pro Shop Pyramid is technically a triangle. And it's east of the mississppi.
What does this quote mean exactly ? 😂
@@trongvana1269 I am from Portugal, an European nation and even I know about the Mississippi Delta, one of the poorest regions of USA.
@@Sergio_Loureiro Thanks man, I am from SEA, and absolutely had no idea about all that.
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.
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
@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
Use docker :) @@nurullo.salaydinov
@@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.
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.
Great editing, really entertaining. 👍🏼
My question is do we really need "infinite" scaling for startup projects?
"Scalable Software" seem to be one of the latest, hottest and most overused buzzword in job ads and such lately...
No. But the simplicity of serverless is quite useful.
@@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.
Ddos in terms if the service actually gets too much of traffic out of any viral post or something
I don’t understand about 60% of what you talk about but I still find it fascinating
Conveniently he doesn’t either.
Lmao at the IRS at 1:26
Funny but inaccurate. Amazon pays zero in taxes.
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
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.
repo man...
@@voidvectorUm, no. Consult a lawyer or grownup. ತ_ತ
Yeah AWS is not allowing that. Their lives will be destroyed
@@voidvectorPretty sure if you are in Europe that's not possible either.
You don't just "ignore" a 4+ figures bill
As always your memes are top tier
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...)
Yup. 96k for "only" 500k users are insane. You can run this easily on a $200 server from Hetzner.
Okay but hacker news is literally just text.
@@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 :/
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
@@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.
I'm old, still using good old shared hosting. I always have thought cloud was... suspicious.
Those even somewhat educated in this space know what an accurate and honest video this is. Thank you fireship. 🙌
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.
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.
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
That’s Nathan For You reference was nice.
2 videos in one day thank you so much
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 😭😭😭
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
I don't think it's a 100k just for db. It's for hosting the entire site.
it's probably not that but that they chose to run nigthshade for any uloads
How do you sign up for something like that, get loads of traffic, and just not check how much it's costing you
I WAS ON FREE TIER
Same people who blindly hate "AI" without even researching or knowing what it is
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.
@@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.
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
I'd be interested in seeing the cost breakdown
+ one for coolify, you can easily scale with it as a build tool + vultr kubernetes
or just manually even
Great Video as always!
we love u fireship
Never knew that Hetzner is known outside of Germany :)
nah, I see everywhere on reddit people recommend it as the first alternative to consider over the large vps providers like AWS and GCP
Im like 95% sure its Romans fault. gotta be.
They have a data center in the states now, and their prices are good
hetzner pretty good
They're quite well known for decently priced euro dedis, especially their server robot thing for the low end market. Better than OVH, usually.
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.
You made me feel so proud I saw it coming and used SST from the beginning 😂
How did I never make the vocal similarity to Nathan? That show was just like this channel. Smart, funny and mostly monotone.
Autotune? Melodyne?
Coolify and SST are incredible tools!
Thank you, for including Coolify in the video (i am not the dev behind it).
This is the best ad for a job offer I've seen in my life
3:49 NOOOO! POUR IT IN THE CUP YOU MONSTER!!!!
Firebase severless function with bill enabled on Google cloud is fkn amazing
That's what I'm addicted to
What does this mean. Tell me in 100secs or less.
😂 😂 😂 @@AAL3087
@@AAL3087 yeah, I have no clue either
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.
Great video!
Thanks for information
your opinion about Humster combat.
2 videos same day? Fireship is fired up!
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😂😂😂
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.
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.
As everyone should. Stop feeding the rich 😂
My internet and power is too unreliable even for a raspberry pi to operate as a server... :(
@@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
@@vaisakhkm783 cheaper to make it redundant and buy a generator than it is to pay for hosting scam prices.
What's wrong with cloudflare?
Currently hosting two sites on cloudflare 😰
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.
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.
1:24 this image is poetry
As a Hostinger linux vps user, this is quite fun to watch
I had a very bad experience with Hetzner that I'm not ready to forget.
What was the bad experience?
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.
@@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.
Yeah, let us know man, what happened, so we can be prepared as well!
@@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)
Jeff actually being Nathan Fielder was the crossover episode I didn't know I needed
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.
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.
I bet the person learnt the f*** lesson.
Yes this is very easy, just do that /s
Or the lesson is to ALWAYS set and turn on budget limit.
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.
Right answer. Serverless is dangerous and unecessary
I would love to see coolify in 100 secs
Coolify is built with the TALL stack btw!
I was waiting for this 😂
2:44 wtf is this meme 😭
My goodness 🙆🏽♂️🙆🏽♂️
Hilarious and informative. Great news as always
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
Cloudflare "workers" are good for serverless jobs as alternative
As long as you don't get an email from their sales team
@@Xpert85you mean the “Trust and safety team”?
@@Xpert85 Wdym?
@@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.
@@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.
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.
Yes, you're Correct 👍👍
Pocketbase hosted at Home but made public through cloudflare tunnels is an option.
@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.
Guess need something else looking for 😅
devops noob mistake, always set a limit
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.
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.
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.
advising you to listen to the rest. apparently there is a spending limit which could be set and also vercel sent 12 notifications mails.
@@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
@@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.
@@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"?
@@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.
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.
👍👍
forever thankful I got into backend first and don't mind rolling my own everything
If only I could be as funny, skilled, and aware of possible hosting bills as Fireship.
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?
because they want your money lol
they do have some kind of spend management 2:22 but maybe it wasn't clear enough
@@damar1967 does it notify you or kill the app?
@@pheisar both, when paused, the app will send 503 services unavailable
@@damar1967 ok, cannot fault Vercel for what happened then, even if they're pricey af
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.
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.
Hey, i dont know weather to pick between CS or software engineering as a course, which do i choose?
Did not try it yet, but looking at Apache OpenWhisk.
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.
Shouldn't such a limit be set by default when you're on the FREE tier?
@@DoktorKumpelyou can't "overspend" on free tier since projects are paused on cap.
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
@@BEN-ys6gu agree, its insane to me that they could just charge you a cost of a small apartment overnight by default.
cheap vps and self managed is best.
What's vps?
@@AAL3087 virtual-porn-services
@@AAL3087 en.wikipedia.org/wiki/Virtual_private_server
@@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.
What software or service would you recommend for hosting a python server?
your videos are amazing! Please make one about NixOS
i host on my raspberry pi, use docker so if an app blows up i can quickly migrate
You're special.
28 seconds ago is crazy
You're crazy!!!
"crazy" is diabolical
"bro said crazy"
"..." "..."
This is no less sad than saying "first"
@@r6scrubs126 ur trash at siege
2:47 Great product AND west of the Mississippi? Expect a call from Saul soon
I still have stuff on heroku that I haven't migrated yet... that free tier was awesome
COOLIFY MENTIONED WOOO
Unironically, i just told my "boss" about it lmao
Nothing beats the good ol' LAMP
*gets SQL injected*
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.
Just learn the PHP basics like mysqli_real_escape_string and your SQL databases should be fine.
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.
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
dont spoil it :D, k8s on hetzner, especially if you migrate from big cloud providers can cut costs by 10 times literally lmao
@@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
The sharks image is accurate until reaching the irs eating Amazon we all know that’s not true lol