How to Burn Money in the Cloud // Avoid AWS, GCP, Azure Cost Disasters

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

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

  • @Fireship
    @Fireship  4 ปีที่แล้ว +439

    Have you ever burned money in the cloud? Please, do tell 👇

    • @codingperks
      @codingperks 4 ปีที่แล้ว +8

      Yep

    • @kandy1249
      @kandy1249 4 ปีที่แล้ว +4

      Nope.

    • @NicolaiWeitkemper
      @NicolaiWeitkemper 4 ปีที่แล้ว +32

      I'm getting 100$ a month worth of AWS credits for my Alexa skills, which means that I *print* money in the cloud on a regular basis, in a way. :P

    • @igornowicki29
      @igornowicki29 4 ปีที่แล้ว +31

      Yup, I've spent about 600$ on AWS by just starting and forgetting about cloud service. Thankfully, customer service sent back to me all the money.

    • @mabroorahmad2182
      @mabroorahmad2182 4 ปีที่แล้ว +16

      Just applied for my credit card thanks for warning..........

  • @vipulpetkar
    @vipulpetkar 4 ปีที่แล้ว +871

    I immediately checked my cloud dashboard after looking at that bill

    • @desunistallerinc
      @desunistallerinc 4 ปีที่แล้ว +34

      Lol, me too, I have a free tier in AWS

    • @JayronWhitehaus
      @JayronWhitehaus 4 ปีที่แล้ว +13

      Oh my God me too every single time I watch this video.

    • @jonasprechtl9837
      @jonasprechtl9837 3 ปีที่แล้ว +1

      I too looked at my Azure cost management

    • @ITech2005
      @ITech2005 3 ปีที่แล้ว

      lol Yeah i always check it when i log in and have an alarm set

    • @ITech2005
      @ITech2005 3 ปีที่แล้ว

      Ive heard a few horror stories but they usually give you credit

  • @Fireship
    @Fireship  4 ปีที่แล้ว +152

    Sorry to keep you waiting, please grab a free sticker in the meantime. EDIT sold out!

    • @shelby255
      @shelby255 4 ปีที่แล้ว

      :D

    • @harsh9558
      @harsh9558 4 ปีที่แล้ว

      Ok :p

    • @penguin2251
      @penguin2251 4 ปีที่แล้ว +8

      @@harsh9558 Afaik we don't have teleportation technology as of now so you will have to wait a bit for the sticker to arrive, lol.

    •  4 ปีที่แล้ว

      Is EU supported 🤔?

    • @Fireship
      @Fireship  4 ปีที่แล้ว +15

      @ Yes, worldwide!

  • @Conlexio
    @Conlexio 4 ปีที่แล้ว +1411

    do ✍🏼 not ✍🏼 create ✍🏼 infinite ✍🏼 loops ✍🏼 in ✍🏼 the ✍🏼 cloud

    • @TheoParis
      @TheoParis 4 ปีที่แล้ว +3

      XD

    • @alvydasjokubauskas2587
      @alvydasjokubauskas2587 4 ปีที่แล้ว +2

      This is gold!!!

    • @vogel2499
      @vogel2499 3 ปีที่แล้ว +26

      I agree, but on the other hand, forcing user to use credit card is a dick move and must be stopped.

    • @Black-Dawg-Jesus
      @Black-Dawg-Jesus 3 ปีที่แล้ว +10

      @@vogel2499 This. You should have the option for a pre-paid service aka "once your account runs out of money, you're informed that your services have stopped and will continue to run after you've added more money to your balance." Especially in countries where credit card aren't a thing. I e.g. live in Germany and here we have debit cards (aka you cannot go lower than 0€ in your bank account which is much more preferable in my opinion) and really only a handful of people have credit cards. And ordering one just so I'll be able to use cloud services is just ridicolous.

    • @YashasLokesh287
      @YashasLokesh287 3 ปีที่แล้ว

      @@Black-Dawg-Jesus I see the option to add debit cards on AWS, Azure, and GCP

  • @GeeIWonderWhy
    @GeeIWonderWhy 4 ปีที่แล้ว +787

    One of my major fears while learning cloud. There should be a limit for how much you spend on the services, but I think no provider has this as a configuration.

    • @Fireship
      @Fireship  4 ปีที่แล้ว +287

      They do actually, but it's not as simple as it should be. I talk about it in the video :)

    • @scottmarshall8446
      @scottmarshall8446 4 ปีที่แล้ว +80

      I've heard many tales about people forgetting to turn a demo project off but all of them just contacted their cloud providers (GCP & AWS, not sure about Azure) and all them replied "np" and cancelled their billing - Still I really want to watch this video asap. Great content as usual man!

    • @BerenES
      @BerenES 4 ปีที่แล้ว +1

      @@Fireship which you have not published yet!

    • @TheXambitoGames
      @TheXambitoGames 4 ปีที่แล้ว +8

      If you forgot something you can call your provider and request a refund. Yes, it works!

    • @lardosian
      @lardosian 4 ปีที่แล้ว +1

      AWS provide it as well

  • @arthurg5966
    @arthurg5966 4 ปีที่แล้ว +870

    Fun fact : Cloud Overflow = Bank Account Underflow

    • @barmetler
      @barmetler 4 ปีที่แล้ว +31

      If that means that I have $9,223,372,036,854,775,807 on my bank account, then hell yeah

    • @MazeFrame
      @MazeFrame 4 ปีที่แล้ว +23

      I wonder if you can f*** up so bad an official from your bank shows up in the middle of the night...

    • @Simtoonia
      @Simtoonia 4 ปีที่แล้ว +1

      Or, rather, underflow 😂

    • @TheHerobrineKiller
      @TheHerobrineKiller 3 ปีที่แล้ว +3

      @@Simtoonia nah, overflow, because when it hit the 32bit integer limit it automatically go down to the negative limit

    • @geroffmilan3328
      @geroffmilan3328 3 ปีที่แล้ว

      Mb
      Cash Heap Underflow...?
      😁

  • @hariseldon02
    @hariseldon02 3 ปีที่แล้ว +153

    I'm so glad we're on premise. We recently had a problem in production because we loaded thousands of records into memory by mistake, spinning up CPU and RAM usage. This made some customers unhappy because they couldn't use our service, but imagine this happening in the cloud. Unhappy customers AND a bill for useless work done!

    • @rickytorres9089
      @rickytorres9089 ปีที่แล้ว +2

      You still paid for the hardware wear and tear, you still paid for the electric, cooling, any networking costs, etc. It just feels good because the bill isn't lumped into "here all your compute, storage, etc usages now pay us".

    • @hariseldon02
      @hariseldon02 ปีที่แล้ว

      @@rickytorres9089 But it's also a natural barrier since we could only use up the resources we physically have. While cloud providers have cost and scaling caps, it's easy to configure them wrong. One misclick and you spin up hundreds of instances.

    • @peileed
      @peileed ปีที่แล้ว

      ​@@rickytorres9089it feels good because that mistake probably cost them a few cents

    • @dhupee
      @dhupee ปีที่แล้ว

      ​@@rickytorres9089welp, all method has pros and cons

    • @vinylSummer
      @vinylSummer ปีที่แล้ว +5

      ​@@rickytorres9089there's basically no CPU/RAM wear, so there's at least that

  • @crivion
    @crivion 4 ปีที่แล้ว +39

    Yes, I did burn money in the google coud, 5600$ bill in 4 hours - was attached by a scraping bot and thanks google cloud they understood and "reset" the bill

  • @yogenp
    @yogenp 4 ปีที่แล้ว +36

    Awesome. As a frugal freelance dev, cost is one things that I gotta watch out for. Thanks @Fireship

  • @CyberQuickYT
    @CyberQuickYT 4 ปีที่แล้ว +54

    My first experience with cloud computing was with a simple GCP windows machine that had set rules (I explicitly set it to NOT grow, to avoid cost). It fit well into the free trial, so I just let it be. I deleted the machine after 6 months (out of 12 for free trial) and never really used GCP again.
    Then I got a bill for 50$ for a machine I didn't even have access to (because it got deleted), and only thing their support said is to tell my bank to block it.
    Nice

    • @qureshizaid
      @qureshizaid 2 ปีที่แล้ว +4

      It's not 24 hours a day for 12 months, Compute Instances have a limited free trial time by hours. And just by reading 6 months, I am pretty sure you exhausted that free time limit of Compute Engine.

    • @anudeeparkala
      @anudeeparkala ปีที่แล้ว

      😊 😊

  • @lardosian
    @lardosian 4 ปีที่แล้ว +188

    Maybe it happened to google today, they were down for an hour!

    • @asandax6
      @asandax6 4 ปีที่แล้ว

      I think they were fixing a hack or databreech but I still need to get some details.

    • @lardosian
      @lardosian 4 ปีที่แล้ว +27

      @@asandax6 They should clean out all those Asian girl bots in comments as well, they are everywhere.

    • @asandax6
      @asandax6 4 ปีที่แล้ว +2

      @@lardosian And those bots with sexy lingerie

  • @dr.z7958
    @dr.z7958 4 ปีที่แล้ว +24

    6:00 It's interesting 69k/71k of the budget was related to Firestore reads pricing, whereas if we compare it to Oracle NoSQL database a 116B reads would cost around 287$ (99.5$ cheaper than Firestore reads pricing). Which means if Oracle is able to commercially sell these reads with such a price and gets a profit from it the actual cost is even much less, meaning when GCP takes this billing it loses almost nothing.

    • @mamneo2
      @mamneo2 ปีที่แล้ว +2

      Incroyable.

  • @joni_1802
    @joni_1802 4 ปีที่แล้ว +30

    This is the reason why I am using good old VPS with monthly fixed pricing.

    • @JSaretin
      @JSaretin 4 ปีที่แล้ว +1

      So true

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

      You can sleep without thinking of your cloud bill as well

  • @patterntrader690
    @patterntrader690 4 ปีที่แล้ว +7

    Somehow you always know exactly what I’m researching and come out with a perfectly explained video on it. Thank you sir

  • @ByronWatts
    @ByronWatts 4 ปีที่แล้ว +89

    I had a hacker rack up around 32k on my behalf on AWS a couple years ago. Not fun. Gladly Amazon believed me and credited my account.

    • @jochen_schueller
      @jochen_schueller 2 ปีที่แล้ว +1

      this explains why their pricing in general is so much above classic hosting providers like hetzner etc - I don't think those cheap provider would be that customer friendly if I would forget to delete an expensive server for a long time.

  • @rishimohan1408
    @rishimohan1408 ปีที่แล้ว +2

    Thanks to Fireship
    I've built a decent enough startup which can work on its own
    Appreciate the free schooling dude.

  • @mrelec1000
    @mrelec1000 4 ปีที่แล้ว +67

    Using Cloud Overflow now!

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

      Somebody bought that domain.

  • @jasper-27
    @jasper-27 3 ปีที่แล้ว +9

    This has actually terrified me into never playing with anything on the cloud.

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

    Dear Fireship, THANK YOU for this PSA, from the bottom of my paranoid heart.

  • @NEvana0003
    @NEvana0003 4 ปีที่แล้ว +70

    made me go double check my aws billing dashboard... just in case

    • @JayronWhitehaus
      @JayronWhitehaus 4 ปีที่แล้ว +1

      lol! I just did the same on firebase hahaha

  • @abhishekdas2512
    @abhishekdas2512 4 ปีที่แล้ว +72

    There should be a feature like simulating the cloud run functions or some other services to catch errors before deploying to production and in this Artificial intelligence might help to catch up errors early than an average person would.

    • @alii4334
      @alii4334 3 ปีที่แล้ว +16

      write test units!

    • @mamneo2
      @mamneo2 ปีที่แล้ว +1

      ​@@alii4334 Incroyable.

    • @unflexian
      @unflexian ปีที่แล้ว +2

      but you need to run the code to see the errors, and the code takes google cloud levels of computing to run... you can't simulate it without running it, that's the actual halting problem...

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

      @@unflexian I agree.

  • @Schlumpfpirat
    @Schlumpfpirat 4 ปีที่แล้ว +42

    Something I just cannot wrap my head around is WHY you would use a cloud service in the first place if you don't need the instant scalability. Heck, you might use your MBP or a Raspberry Pi at first and when your project starts out and you need to deliver a page quickly, just use a couple of geo-located VPS instead.
    However I think I might be trapped in an old mindset here - I'd be really happy to hear why you would use the cloud in what I think is 95% of the use-cases. It just seems utterly expensive for what it is.

    • @honkhonk8009
      @honkhonk8009 3 ปีที่แล้ว +21

      I used the cloud in my minecraft game cus my dad was paranoid about port forwarding

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

      It might be because it is easier, and also can be started free. I suppose no one would want to run the database on their laptop and let it run everyday, or not anyone has a PC that can run it everyday, or not anyone had/would bought a spare device for it.
      Sorry for my bad English.

  • @ricosrealm
    @ricosrealm 3 ปีที่แล้ว +108

    Never ever ever hardcode your API key values in your code, even for one second. You will probably forget and check the code in. Use environment variables or cloud secret managers.

    • @SUPABROS
      @SUPABROS 3 ปีที่แล้ว +5

      i just gitignore everything

    • @feritperliare2890
      @feritperliare2890 2 ปีที่แล้ว +21

      @@SUPABROS what exactly do you have on the git than?

    • @_imawesome
      @_imawesome 2 ปีที่แล้ว +9

      @@feritperliare2890 maybe only .gitignore 😂

    • @feritperliare2890
      @feritperliare2890 2 ปีที่แล้ว +1

      @@_imawesome nah the gitignore is on his personal computer doesn’t go up maybe he put a read me accidentally

    • @mamneo2
      @mamneo2 ปีที่แล้ว +1

      Incroyable.

  • @mariusirgens5555
    @mariusirgens5555 ปีที่แล้ว +1

    I made a mistake when using AWS gamelift during my bachelor assignment two years ago: i forgot a fleet running a game instance. I got $150 bill, but after contacting them it was deleted. Very good service, I can highly recommend AWS. 👌

  • @Stone_624
    @Stone_624 4 ปีที่แล้ว +34

    Or you could just get a cloud server instance and connect to that for a fixed monthly cost that's independent of use. It might not be the most optimal for large scale applications or certain workflows, but if you're learning, testing, or just hosting small scale projects, it works perfectly fine. I have a handful of small apps that I deploy through Docker on an EC2 instance.

  • @gibsgibus
    @gibsgibus 4 ปีที่แล้ว +27

    @Fireship is a trully film director ! made me feel like I was watching a spy movie from 1:30 hahaha !

  • @felixbreidenstein2950
    @felixbreidenstein2950 4 ปีที่แล้ว +16

    Just an addition to the topic of leaked IAM Keys: GitHub nowadays has a "scanner" which scrans every commit for known Keys (e.g. IAM) and immediately disables this key by telling AWS (this literally happens in less than a minutes) and sending you a mail that you f***ed up. I only know this for AWS but I guess that they also have this mechanism for e.g. GCP and Azure :)

    • @electricz3045
      @electricz3045 3 ปีที่แล้ว +1

      Azure for sure as GitHub and azure are both from Microsoft.

  • @ShawnThuris
    @ShawnThuris 3 ปีที่แล้ว +2

    "cloud overflow" is a useful coinage, thanks for that

  • @SportsIncorporated
    @SportsIncorporated 2 ปีที่แล้ว

    Thanks!

  • @cz19856
    @cz19856 4 ปีที่แล้ว +5

    I was doing a project on aws and I am happy I found this video before starting to use the cloud lol

    • @Haru-iu8bm
      @Haru-iu8bm 3 ปีที่แล้ว

      I'm so scared after watching this

  • @sharishth
    @sharishth 4 ปีที่แล้ว +12

    The reason I am always almost on my wits end when on AWS.😅 most basic thing is I always makes notes of service I started and access so that I won't forget it later on so that I don't need to see that uncanny bill.

    • @anandakumarsanthinathan4740
      @anandakumarsanthinathan4740 3 ปีที่แล้ว

      Good idea. You still need to be careful. Behind the scene so many provisioning happens for which you may be billed. For example, if you create a managed instance group as a backend service for a load-balancer, then a network endpoint group gets created automatically behind the scene. You may delete the backend service later, but the NEG doesn't get deleted automatically.

  • @Quozul
    @Quozul 4 ปีที่แล้ว +29

    That's why dedicated servers are better for messing around :)

  • @AlexN5142
    @AlexN5142 4 ปีที่แล้ว +3

    consistently impressed by the quality of your videos! one of the best programming channels on yt

  • @ChristopherCricketWallace
    @ChristopherCricketWallace 4 ปีที่แล้ว +4

    best web dev video of the year

  • @shmuel-k
    @shmuel-k 4 ปีที่แล้ว +21

    5:00 I think a better term is a recursive call.
    Technically it is an infinite loop (since there's always a main event loop somewhere), but an infinite loop is more conventionally a while or for loop that never ends.

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

      No it's not. A recursive call is when a function is calling itself without a termination condition, and infinite loop is when a data structure doesn't have a condition that fulfills to terminate the cycle.

  • @dusnoki
    @dusnoki 4 ปีที่แล้ว +4

    That time I accidentally deleted a whole kubernetes cluster instead of a single node pool on Google Cloud. It was scary how easy it was to delete it automatically. Thankfully it was a test cluster and it took only 2 days to restore it completely from scratch. But my face when I realized that I did it and that there was no turning back :D

  • @Dr3amDisturb3r
    @Dr3amDisturb3r 4 ปีที่แล้ว +5

    Jeff: I'm gonna go ahead an wrap things up there.
    My brain: Nooooo!
    It's never enough, your content gold, you wonderful person, you!

  • @PeterOeC
    @PeterOeC 3 ปีที่แล้ว +1

    I appreciate the The Office clips you put in there 😂

  • @nexxai
    @nexxai 4 ปีที่แล้ว

    Azure Budget Alerts - docs.microsoft.com/en-us/azure/cost-management-billing/costs/cost-mgt-alerts-monitor-usage-spending

  • @JayronWhitehaus
    @JayronWhitehaus 4 ปีที่แล้ว +8

    "which is a brand new word I just coined" 😂

  • @Ondal1
    @Ondal1 4 ปีที่แล้ว +7

    I made one in firestore. A document needed to be updated based on values in an update. I hadn't taken into account an old client, which would result in a calculation turning out to be NAN. One and a half hours later, with a SINGLE old client causing this, $40 was used. This could have escalated like a nut, if I hadn't seen it by random luck.

  • @bradchellingworth5973
    @bradchellingworth5973 3 ปีที่แล้ว +3

    We had a similar issue with AWS where a hacker got hold of one of an old emplyees api keys and setup a load of lambda functions. By the time it was noticed our bill was $15,000 for just a few weeks. Thankfully in the end Amazon refunded the whole lot, but it wasn't easy and was very scary.
    Protect your API keys like your life depends on it and regularly switch them out and clear out unused ones.

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

      Yeah it was probably the old employee who did it tho

  • @fundoo203
    @fundoo203 2 ปีที่แล้ว +2

    Thank you for this. As someone interested in cloud computing you made me realise it can get costly very quickly and unintentionally

  • @chewcodes
    @chewcodes 3 ปีที่แล้ว +5

    At a convention, I was talking to a Microsoft employee, he was apparently a higher-up. He accidentally racked up a $5,000 bill just playing around in Azure. He talked to his boys and got the bill removed. All kinda scary!

  • @klutch4198
    @klutch4198 4 ปีที่แล้ว +28

    my firebase bill this month was a whipping $0.03 hahaha

  • @JasonLayton
    @JasonLayton 4 ปีที่แล้ว +1

    I've been binging your videos, thank you so much.

  • @kld0093
    @kld0093 4 ปีที่แล้ว +56

    I love burning money

    • @tkdevlop
      @tkdevlop 4 ปีที่แล้ว +5

      Yea especially *investors*

    • @fabian2314
      @fabian2314 4 ปีที่แล้ว +1

      burn it on me

  • @usmanmir5663
    @usmanmir5663 4 ปีที่แล้ว +1

    Congrats on 500k 🎉 🎊

  • @w1d3r75
    @w1d3r75 4 ปีที่แล้ว +35

    I recently read an history about this topic. Creepy things can happen in the cloud 💀

    • @decryptroblox
      @decryptroblox 4 ปีที่แล้ว +3

      And your bank account too 💀

  • @0xnpctim
    @0xnpctim 2 ปีที่แล้ว +1

    Thank you for making technical subjects interesting.

  • @RayTheTaxGuy
    @RayTheTaxGuy 2 ปีที่แล้ว

    Man, I'm laughing all the way through! Awesome video! :)

  • @Retrosen
    @Retrosen 4 ปีที่แล้ว

    Keep up these top tier videos mate! Cheers

  • @gigibecali699
    @gigibecali699 4 ปีที่แล้ว +21

    You talk about disasters in cloud while in the same day pretty much every google service was down for 1 hour

    • @Fireship
      @Fireship  4 ปีที่แล้ว +15

      Exactly the way I planned it!

    • @yunger7
      @yunger7 4 ปีที่แล้ว +1

      ​@@Fireship 👀👀👀

  • @noisycarlos
    @noisycarlos 3 ปีที่แล้ว +3

    I accidentally did this, but to a much lower level. It was still surprising to see my bill go from the usual $5 to $500 though

  • @tomg0
    @tomg0 4 ปีที่แล้ว +10

    That’s why I use my own dedicated servers...

  • @ibrahimmusayev6991
    @ibrahimmusayev6991 3 ปีที่แล้ว

    Thanks for reminding me about the billing :D I am on AWS free tier and using it over one month but just realized that I have 0.62$ charge.

  • @paulwhiterabbit
    @paulwhiterabbit 4 ปีที่แล้ว +31

    That's why I want the "auto-shutdown" to prevent unintentional bills. But on the other hand, people will just abuse it and not pay. On their perspective, "charge by default, cancel later" is safer option for everyone and forces devs to be more careful.

    • @Bob-jn8gt
      @Bob-jn8gt 3 ปีที่แล้ว +21

      It’s negligent and abusive for a cloud provider to allow customers to instantly rack up a 6 figure bill. Especially when they market the “free tier.”

    • @BenRangel
      @BenRangel ปีที่แล้ว +1

      I don't see how you'd abuse it. If you shut down your project before any cost occurs... That's similar to some free tiers like Railway which gives you X free hours per month

  • @buddysteve5543
    @buddysteve5543 2 ปีที่แล้ว

    I've been an Azure customer for 9 years and I have NEVER ONCE jacked up an unintended bill! Very scary but if you're smart, one shouldn't worry too much but just be smart about it!

  • @HamaadSiddiqui
    @HamaadSiddiqui 4 ปีที่แล้ว +24

    Since when did you premiere stuff ?

  • @KangJangkrik
    @KangJangkrik 4 ปีที่แล้ว +2

    The reason why we should choose either DigitalCloud or Linode

  • @medamine194
    @medamine194 3 ปีที่แล้ว +1

    google and amazon really needs to make a tutorial on this

  • @quadraticequation8196
    @quadraticequation8196 ปีที่แล้ว

    When I was a newbie I put minimum instances as 1 for 30-40 cloud functions with 1 GB memory 😂 I was raking in $300-400 per day in bill 💸

  • @l_qd4542
    @l_qd4542 3 ปีที่แล้ว

    The comedy is killing me 😂. I love this guy

  • @cooltune
    @cooltune 4 ปีที่แล้ว +18

    OMG AWS indeed is sooo expensive. It's almost criminal.

    • @tikeyike
      @tikeyike 4 ปีที่แล้ว +5

      Go serverless, we pay peanuts for running Lambda's over EC2's

    • @arthurg5966
      @arthurg5966 4 ปีที่แล้ว +4

      F***ing Bezos *breaths in

    • @mr_wormhole
      @mr_wormhole 4 ปีที่แล้ว

      Go for lightsail VPS, cheapest VPS in the earth after vultr. AWS is indeed the cheapest unless you configure something wrong and expose everything outside

    • @pulga961
      @pulga961 4 ปีที่แล้ว

      wrong

    • @x55554
      @x55554 4 ปีที่แล้ว +1

      @@mr_wormhole Nah hetzner.cloud or scale away are the cheapest hetzner gives you 2gb ram, 20gb ssd, 1 vcpu for 3 € no way to beat that

  • @yoericktv9610
    @yoericktv9610 4 ปีที่แล้ว +1

    This should be interesting, can't wait!

  • @myanch200
    @myanch200 4 ปีที่แล้ว +4

    when you've just learnt about recursion and next thing you see is that. 😂

  • @EmperorOab
    @EmperorOab 2 ปีที่แล้ว

    Thank you. This video has caused me to paranoid check my AWS, Azure, and Firebase billings...

  • @MatroidX
    @MatroidX 4 ปีที่แล้ว +4

    I understand your suggestion to not make infinite loops, but what if someone is just endlessly computing (with no scaling / explosion of computational complexity as described above) rather than responding to user events?
    To take an artificial example, let's say I'm just getting a list of prime numbers. So I do while(true) { i++; if(isprime(i)) { log(i); }}. Is there an alternative? I guess I could do batches of numbers, with human intervention in between (e.g. every million iterations, store i, wait until human says proceed), but this doesn't seem to really solve any problem.
    So... is there a problem with this? And if so, what's the alternative?

  • @akashverma5756
    @akashverma5756 ปีที่แล้ว +1

    Now, I know why time complexity and space complexity is important.

  • @KevinEontrainer381
    @KevinEontrainer381 3 ปีที่แล้ว

    Good to hear how recursive function to not only hard to understand but can also cause disasters like this

  • @racecrushers1590
    @racecrushers1590 ปีที่แล้ว

    This is an old video but its noteworthy to add that I was in a similar situation like the startup thankfully they were reasonable enough to refund over 90% of the bill. I am now afraid of touching the cloud again. I still have depts to pay on AWS too

  • @gjbook
    @gjbook 3 ปีที่แล้ว +3

    There is massive risk in using cloud so I cannot comprehend the rush to get there. If you are a startup it may be the quickest way. For established companies, you can reduce risk by having your own platforms.

  • @maskman4821
    @maskman4821 4 ปีที่แล้ว +5

    This is a valuable info !

  • @allanregista4422
    @allanregista4422 4 ปีที่แล้ว +9

    "Cloud overflow"
    Man i died instantly.. 😂😂😂
    That one got me so bad, brooo you should start your own comedy channel sometimes.. 😂😂😂

  • @drantunes
    @drantunes 4 ปีที่แล้ว

    If I'm not mistaken, firebase counts readings when executing security rules, right? If someone takes the public APIs on the frontend and tries to run readings (even without success), wouldn't that be a kind of "budget attack?"

  • @ezequielzion
    @ezequielzion 3 ปีที่แล้ว

    God I learn so much from your channel, thanks for creating these videos

  • @kristofferjohansson3768
    @kristofferjohansson3768 4 ปีที่แล้ว +1

    I burned $6000 on some azure lab machines. We had just achieved gold partner status and I reviewed the estimated cost and it said $0. But I was just in the wrong place looking...
    Wise by this lesson a few years later I told a colleague to be careful with his Azure subscription. He got himself an enterprise sql Analysis instance. $7000 spent there...

  • @CSSoda
    @CSSoda 4 ปีที่แล้ว +6

    A wise guy once said : " Don't pay for what you use. Pay for what you forgot to use "

    • @RedStone576
      @RedStone576 4 ปีที่แล้ว +3

      wait, i still have running minecraft server since 2013 omg what happen next (3am) (gone wrong) (scary)

    • @jitpackjoyride
      @jitpackjoyride 3 ปีที่แล้ว

      Ah yes, this is why gym memberships are such a good business model.

  • @dushkoavramoski8242
    @dushkoavramoski8242 ปีที่แล้ว

    Thanks for reminding me to check my billing accounts 🙏

  • @m_varsh
    @m_varsh 4 ปีที่แล้ว

    Main reason why big giants and sane companies define cloud governance model to avoid these mistakes.

  • @hemanshu877
    @hemanshu877 4 ปีที่แล้ว +6

    That y in embedded system standard(misra c) doesn't allow recursive functions

  • @swiftninjapro
    @swiftninjapro 4 ปีที่แล้ว +6

    In fear of cloud overflow, I've been using compute engine mostly. It looks like its a flat rate, and using it is almost like using a raspberry pi.

  • @velo1337
    @velo1337 ปีที่แล้ว

    cloud overflow.... this will make history

  • @Adam-uu8dc
    @Adam-uu8dc 3 ปีที่แล้ว

    I love the office memes in video.

  • @Oswee
    @Oswee 4 ปีที่แล้ว +2

    Exactly this is why i have several cheap $1K k8s servers to mess up as i like. I can run whatever i like without no worries.

  • @cloud-forge
    @cloud-forge 4 ปีที่แล้ว +1

    great stuff, thanks for the heads up

  • @pranupranav6279
    @pranupranav6279 2 ปีที่แล้ว +1

    Once I got 5000$ bill from aws. Luckily they waived it off. Thanks.

  • @OrionRox
    @OrionRox 2 ปีที่แล้ว

    Holy crap I still remember the day I got $600 bills from google cloud, I was doing some testing and deployed a small project to the google cloud, since I have $200 dollars free credit I didn't worry that much, after finishing the whole thing I forgot to stop the VM and that was it, a month later when I check the google cloud I realized I got billed $600.

  • @bhargavaprabureddym9693
    @bhargavaprabureddym9693 3 ปีที่แล้ว

    "Until you're bank account gets empty" 😂 5:09

  • @TheGrimravager
    @TheGrimravager 4 ปีที่แล้ว

    wow super cool!
    I read an article about this specific event yesterday

  • @MarjoForcado
    @MarjoForcado 3 ปีที่แล้ว +1

    I remember racking up $1000 from AWS and I was sweating bullets cause I was basically trying out some things. I was relieved when AWS forfeited my bill

  • @fille.imgnry
    @fille.imgnry 4 ปีที่แล้ว

    Didnt know about Budget Actions, thx!

  • @idtyu
    @idtyu 4 ปีที่แล้ว +3

    Recursive function is scary, it's not as obvious as regular loops... That's why database orm is good, they help you avoid a lot of edge cases

  • @SahilPatel-iu1ce
    @SahilPatel-iu1ce 4 ปีที่แล้ว +2

    Interesting. I read this story on hacker news a few days ago.

  • @DavidSmith-ef4eh
    @DavidSmith-ef4eh 4 ปีที่แล้ว +69

    TIP #1, don't use cloud but buy VPS instances and manage theme yourself lol

    • @joelmoreira1546
      @joelmoreira1546 4 ปีที่แล้ว +8

      That's the most important tip.

    • @wtam4357
      @wtam4357 4 ปีที่แล้ว

      True .

    • @ITech2005
      @ITech2005 4 ปีที่แล้ว +4

      lol good luck with that

    • @pankajjahagirdar1278
      @pankajjahagirdar1278 4 ปีที่แล้ว +18

      Tip #0, use localhost

    • @avibrarbrar
      @avibrarbrar 3 ปีที่แล้ว +1

      @@ITech2005 nginx is a life saver.....

  • @swapnilsen451
    @swapnilsen451 4 ปีที่แล้ว +4

    Salesforce has limits on recursions, so if there are infinite loops, they just roll back the entire transaction and throw an internal error.

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

      every application should have it. poor written apps don't. So hiring cheap developers lead to expensive bad solutions.

  • @Lazenha
    @Lazenha 4 ปีที่แล้ว +1

    Not a long time ago I was exploring kubernetes and was following an Indian tutorial of how to set everything (Ec2, S3 and Route53). Within 2 hours I had a 3€ bill when I thought I was in free tier... Somehow everytime I killed an EC2 instance a new one outside of the free tier was created... It was just 3€ and AWS gave me a 3€ voucher when I explained what happened. It was enough for me to be scared enough to try again

  • @new_wo_rld
    @new_wo_rld 4 ปีที่แล้ว

    love this REAL story

  • @baidoofiifi
    @baidoofiifi 4 ปีที่แล้ว

    You can easily automate budget actions now on GCP. Take a look at Google Workflows.

  • @Ryan-gf1sz
    @Ryan-gf1sz ปีที่แล้ว

    I like the word cloud overflow xD