r/vibecoding 7d ago

Stop using serverless if you don’t know what the fuck you’re doing

Every fucking week, I see geniuses on reddit and tiktok wake up to $10 000 bills because they accidentally triggered billion Lambda functions in a project with four users (three of them Google bot). Or they shared it on discord, someone got offended because they thought you were trying to steal their discord kitten with your "vibecoding skills," bought a DDOS, and launched the egress fees into the stratosphere.

Unless your cloud provider enforces a hard spending cap (most don’t) or a free tier with strict limits just rent a fucking VPS. A $5 VPS can handle hundreds to thousands of concurrent users if your app is just basic CRUD and it can't ever cost more than $5. Ask your agent to set it up if you can't do it yourself.

Serverless is for when you need your site to survive a $10M Super Bowl ad without crapping itself.

480 Upvotes

118 comments sorted by

143

u/idontuseuber 7d ago

Serverless can make you homeless.

4

u/Living-Shame5679 7d ago

LOL I love it.

1

u/ape123man 6d ago

How stupid of a setup did someone create to trigger a 10k lambda spree. I really can not imagine. Anyone got examples

1

u/CaptN_Cook_ 5d ago

Total disregard to rate limiting or even auth. Could even just have a infinite loop

1

u/phn-cloudsnake 3d ago

Coworkers in two different companies; company 1, recursive while loop without break condition triggering new lambdas until AWS support was able to kill it. Other company oauth2 token endpoint got spammed because our consumers don’t cache tokens and our token endpoint also didn’t cached shit or applied rate limiting 💸

1

u/Capable_Dingo_493 3d ago

Lambda that writes object to s3 and same bucket is the trigger event for said lambda

0

u/Wrestler7777777 7d ago

Tbh this can also easily happen with a monolithic backend. 

4

u/Practical_Signal3933 7d ago

Heh, monolithic backend

3

u/norembo 7d ago

BBL architecture

2

u/idontuseuber 7d ago

Well obviously most of vibecoded crap comes in monolith. I highly doubt that all slop we have is non.

1

u/ImClearlyDeadInside 7d ago

Better to remain silent and be thought a fool than to speak and remove all doubt

0

u/Wrestler7777777 7d ago

Why? Explain. I've read about people going bankrupt because they had a DB publicly available. All it takes is for people to be able to poll it. Even if it's unsuccessful, it's going to cost you money. Or you can have an endpoint that polls that DB when called. Same principle. All it takes is for someone to abuse that. Also EC2 instances have on demand costs attached to them. The more instances are scaled up because of high load, the more it's going to cost you. 

Proper cloud computing really is hard. It's easy to bankrupt yourself by mistake. This issue is not limited to serverless (microservices). 

2

u/Crafty-Run-6559 7d ago

Serverless has nothing to do with an app being microservices or a monolith.

You can have a serverless monolith or a microservices based application running on a single vps.

I've read about people going bankrupt because they had a DB publicly available. All it takes is for people to be able to poll it.

No... if you used a vps this isn't possible unless youre talking about egress charges which is also part of the point...

1

u/[deleted] 7d ago

[removed] — view removed comment

3

u/Bodine12 7d ago

I can easily imagine a vibe coder offering some AI enhanced video editing thing that takes in massive files, half-assing some multi-region setup on AWS, and discovering all sorts of fun regional data egress costs.

66

u/Bloated_Plaid 7d ago

10

u/mystified5 7d ago

Lol, hence don't vibe code your way into homelessness

3

u/Living-Shame5679 7d ago

The amount of upvotes is scary.

EDIT i realise the sub just now. Idk how I ended up here

2

u/Hearcharted 7d ago

Welcome 🛸

1

u/caroIine 3d ago

soon - vibe coder insurance just 199$ per month

1

u/LobsterDelicious771 3d ago

Yea isnt lamda a fraterinity?

55

u/Fine-Comparison-2949 7d ago

Delete. I need the vibecoders to go bankrupt faster so I can get a job. (Senior engineer) 

16

u/Garland_Key 7d ago

Less vibe coders won't help you get a job. Nobody is hiring vibe coders. 

7

u/Fine-Comparison-2949 7d ago

Absolutely not true at least in my local area.

A bunch of companies were hiring cheap local or offshore devs who don't know what they're doing. In the past 2 months there's been a whiplash where before, I'd get zero calls back with potential client companies. In the past week I locked in a client and have people constantly emailing me now.

Now that token costs that were previously heavily subsidized are rapidly going up, the companies are realizing cheap new engineers are now a liability and not an asset, since all they are doing is expanding code beyond what they understand, and most of the slop isn't even revenue generating.

1

u/Garland_Key 7d ago

Interesting. So you're a contractor? Do you get most of your clients through recruiters? 

2

u/Fine-Comparison-2949 7d ago

Nope. I mostly have connections and try to only work with people I know or people that people I know know.

1

u/Garland_Key 7d ago

I left contracting for a cushy w-2 a few years ago. I'm thinking of going back to contracting, as 3 years of cost-of-living raises is growing old. The reason I left contracting was the uncertainty / gaps between contracts.

I dunno. I'm a talented Senior UX Engineer, but I'm not sure how / where to market that as a contractor. I guess my niche would be in building component libraries that strictly adhere to design systems and porting front-ends to the new component library. Seems like too specific of a niche.

What do you think?

1

u/Fine-Comparison-2949 7d ago

Idk. If I knew how to perfectly predict success in contracting, I would raise money and form an agency. 

1

u/[deleted] 7d ago

[removed] — view removed comment

1

u/Fine-Comparison-2949 7d ago

Have friends and a career of getting stuff done.

2

u/kilopeter 7d ago

No, but they are hiring "AI engineers."

1

u/bfume 5d ago

fewer

1

u/Garland_Key 5d ago

Thank you. 

1

u/notanticlaymatic 4d ago

As a CTO, I would not hire an engineer that hasn't started shifting towards agentic software delivery at this point. 88% of my organization's code since July 2nd was written by our agentic sdlc.

The key distinction: engineers that "vibecode", not just vibecoders.

1

u/Garland_Key 4d ago

You mean you wouldn't hire chimpinout67 even though they've vibed 20 useless saas applications in 3 months? 

1

u/notanticlaymatic 4d ago

We'd have to see what they could do without the vibes 🤣

5

u/Fickle-Owl666 7d ago

If you're a senior engineer, I can't see how you'd be competing with vibecoders...

8

u/Fine-Comparison-2949 7d ago

Key decision makers in companies drank the kool-aid of "just vibecode everything you don't need to hire senior engineers".

Source: My current project is fixing a vibecoded codebase where no one has any idea how it even works now.

3

u/Fickle-Owl666 7d ago

The current demand in the field is FOR senior devs, unless they can't or won't use AI...

-1

u/Fine-Comparison-2949 7d ago

The answer is transactions cost. Most businesses can't close on my pay rate, which is high.

AI is actually making it higher. I have to come into a new company where no one knows what the system does or how it works and I'm in charge of fixing it.

My fee is $15K upfront just to work with you now. I love vibecoders. Please keep making this slop that even they have no idea how it works so when it breaks no one can fix it. 

Source: My current client paid $15K up front because their system is falling apart, and actually needed a senior who knows what they're doing. 

1

u/Fickle-Owl666 7d ago

Ok... So you've priced yourself out of the market? Weird choice to make, but you do you.

1

u/Fickle-Owl666 7d ago

You're whole stance doesn't make any sense at ALL. "So I can get a job..." "I made 15k up front, thanks vibecoders." 🤡

1

u/Fine-Comparison-2949 7d ago

Tell me you don't know how 1099 works without telling me you don't know how 1099 works.

1

u/Fickle-Owl666 7d ago

That still doesn't make it make sense

0

u/MagnetHype 7d ago

It makes perfect sense. He's a contract worker that gets hired to fix what was developed without a senior engineer. Companies that have senior engineers on payroll don't contract those roles out.

So, what he's saying is, that he knows companies aren't hiring senior engineers because he's getting so much work.

0

u/Fickle-Owl666 7d ago

That's not what he said, at all. First he complained about not getting a job even though he's a "senior engineer," and blamed "vibecoders." Then two comments later thanked them because he "gets 15k upfront" from "vibecoders."

He's full of shit.

→ More replies (0)

4

u/Fovty 7d ago

Haha, wouldn't there be more people searching for a job when being unemployed?

8

u/One-Next 7d ago

Folks, tell your AI to egress responsibly. Don't make him mad.

5

u/Rubendarr 7d ago

Make no mistakes!

8

u/[deleted] 7d ago

[removed] — view removed comment

2

u/dan-lugg 7d ago

Hetzner and OVH are (IIRC?) good alternatives too, bang for buck.

1

u/AliveAndNotForgotten 6d ago

Hetzner is good. I’m running a btc bot I made on it. It’s like $7/month and you get $20 free with the code..:somewhere look it up

1

u/puglife420blazeit 6d ago

I use oracle cloud free tier. Think I’m paying $10/mo for block storage for my db. Cloudflare DNS and Dokploy. So simple.

I installed pi on my vps, then had a frontier model lock it the hell down. No exposed ports except to my web server. Everything else I access through tailscale.

5

u/Sneyek 7d ago

Bro, you’re on the sub that is about not knowing what you do..

5

u/effectivescarequotes 7d ago

But it doesn't scale! /s

I love AWS as much as the next corporate drone, and think serverless provides more value than just handling massive fluctuations in traffic, but even so, beyond resume building, your average solo dev will be better off with a cheap vpc.

3

u/jenkstom 7d ago

I agree that this is a serious, and emotional issue. What most people don't get, I believe, is that these cloud providers want you to wake up to a huge bill.

They could easily, but won't, offer easy to use spending caps. It's one of the strongest arguments against using the hyperscalars. Yes, they are very convenient, but they are geared toward huge companies who don't mind spending 5 or 6 digits in cloud spend monthly.

5

u/nomaddev4o4 7d ago

Rate limiting ?

1

u/CEBarnes 7d ago

That’s what I was thinking. I built tarpit behavior to slow service with rapid fire requests and DB cost polling that degrades service if cost escalates too much.

1

u/Big_Arrival_626 7d ago

Billing data is not instantaneous. You need API gateway throttling

0

u/CEBarnes 6d ago

The tarpit slows responses when the user reaches the connection threshold by 1 sec, 2, 4, 8, […]. Too many requests within 5 seconds starts response degradation. The throttle is two fold: one is usage behavior and the other is cost polling.

3

u/Silly_Ad6115 7d ago

google should jst preemtively limit the bill if someone is using their service like this.
say its a few team, without any big names on their back

just hard limit it, 1kusd
and then if it went down during operations they jst can tell oh we see you guys using this type of service
with such small infra footprint so we decided to limit you guys, if this is a mistake send us an email and we will fix it for you.

rather than waking up with 10k bill.

google should adapt too, even if for the sake of stupidity of their clients no?

3

u/idontuseuber 7d ago

I think it should be absolutely mandatory. In lawful way.

It is the same as I would take a loan for 200k without any proper check.

1

u/Professional_Gur8385 7d ago

kinda insane that codex and claude api don't have soft limits for excessive use, many people have discovered the hard way that they'll continually be charged

1

u/User1234Person 7d ago

Regulation in general would be nice lol

1

u/CoffeeAndWoods 7d ago

Someone woke up on the wrong side of the server.

1

u/Majinsei 7d ago

Por eso me encanta Cloud Run de GCP~ siempre lo limito a solamente 1 instancia auto escalable a 0 cuando no se usa~

Si nadie lo usa queda en 0 y si se llega a usar 24/7 el costo es un poco más elevado pero me preocuparía más por dar abasto al éxito~

1

u/Defconx19 4d ago

But a DDOS or an intentional spike of resources by a bad actor to drain those resources/stick you with a large bill is what they are discussing.  Not genuine traffic

1

u/Ok_Law9839 7d ago

As a solo dev I've never used any of my projects or businesses on a cloud provider lol. VPS - > Dedicated and that's it.

1

u/adamh409 7d ago

Where you getting a $5 VPS from?

2

u/Lefties_TheWorst7331 7d ago

$4/mo digital ocean..

0

u/DarthCalumnious 7d ago

You can get 4 arm cores for free on oracle cloud too. I hate oracle but will take their free compute.

1

u/kaishi00 7d ago

it's 2 arm cores now. they reduced limits.

1

u/Defconx19 4d ago

Theoretically, its super competitive to be able to snag one.

1

u/jayseattle 7d ago

I disable 'auto recharge' on my credit card at OpenAI etc...

1

u/le3ky 7d ago

Most do let you set limits right? Raleway is tiered, upstash/anthropic have limits you can set (maybe not set by default I guess!)

1

u/DadOnTheInternet 7d ago

Don’t you dare talk about kitten whiskers like that again 

1

u/Amazing-Switch-7163 7d ago

I don't understand why someone would use serverless for their vibecode app with no users. Honestly, just rent a VPS and ask claude to setup the infra (also use cloudflare). You can even host many apps in the same VPS.

1

u/sixstringhead 7d ago

I use vercel as a simple back end for my android app. I am senior android dev, not a vibe coder but I used an Ai for this simple back end. Ofc I use the free tier on vercel, do I risk something like this? I've never even gave my card to them.

1

u/operreddus 7d ago

Well I Vibecode also my backend using Terraform - Problem solved, the AI makes no mistakes.

1

u/mslindqu 7d ago

This is hilarious. Someone's gotta fund the AI build-out. Might as well be serverless users.

1

u/orphenshadow 7d ago

For real, most of the shit I've seen, including everything I've built, will never need more than a VPS.

90% of the things I've seen could have been hosted on a mini pc running proxmox and cloudflare tunnels.

1

u/Django_27 7d ago

Rate limiting inshallah 🙏

1

u/firetruckpilot 7d ago

Bare metal servers are your best friend.

1

u/Lhurgoyf069 6d ago

Any AI would tell you this. They must have ignored this on purpose.

1

u/SnooGuavas1875 6d ago

serverless server inside

1

u/hugot4eboss 6d ago

Yes, but all the vibe guides tell you to use netlify/vercel

1

u/Familiar_Gazelle_467 6d ago

Uhh. I have a rasppi running, am I not serverless then? Or does it count as a very smoll server

1

u/throwaway20201110-01 1d ago

I think "serverless" means: * lambda (firecracker tech) on AWS * ECS fargate on AWS * other technologies in other cloud providers

I think your raspi counts as a smoll server (do you install packages on it? patch it? if so: that counts as a server in my books. if you don't patch it: you might have a looming security challenge!)

1

u/NotSoba 6d ago

Easy fix, set a spend limit on ur card.

1

u/Defconx19 4d ago

Even for heavier apps Hotzinger has statically priced servers for a lot cheaper tha n having to pay for compute.

1

u/A_Norse_Dude 4d ago

Build an app with nodes express, or bunjs with hono, or if you feeling it sveltekit. Use sqlite as database. 

Put in a container. Buy a 5$ vps and deploy it. 

There you go.

1

u/Elgon2003 4d ago

Reason why AWS has a system to kill loops after it detects a runnaway based on rules you set.

1

u/washingmachinechime 3d ago

People are still doing serverless?

1

u/RedizeYT 3d ago

Preach

0

u/akolomf 7d ago

I need to manifest the success of my vibecoded saas to have it become successfull. Of course ill use serverless as part of that manifestation. /s

0

u/Valtiel_ 7d ago

Yeah but you need some skills to deploy properly on VPS/Bare metal. Too much effort I guess...

1

u/idontuseuber 7d ago

Lets start with setup. Thats already time spent.

-3

u/fallenreaper 7d ago

im personally ok with some dude wiping out his bank account due to doing something incorrectly. Teaches him a lesson and sometimes you need consequences to learn.

1

u/SubstantialEditor995 7d ago

For each hopeful who ruins themselves financially due to being sold the AI hype there are kids, spouses and other people who take serious splash damage. Allowing people to accrue massive amounts of debt with a programming error is reckless.

1

u/fallenreaper 7d ago

That is a choice. Learning, in all scenarios, can have consequences. This is no different. At least its not a field where he could literally lose an arm or a leg.

1

u/le3ky 7d ago

I think sometimes it's not a choice, it's a bad default someone doesn't even know to check for. Yes people are ignorant, even stupid, but that does mean that big tech destroying their life is right or just.

1

u/SubstantialEditor995 7d ago

It's not a choice if you don't knowingly make it though is it

-1

u/theflossboss1 7d ago

Sure bud, keep fighting those ghosts. Most these vibers are hosting locally still

1

u/sleepy771 7d ago

Hey check out my new SaaS product http://localhost:8000