Vercel Serverless Protection
Unanswered
Yacare Caiman posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Yacare CaimanOP
Hello, I was wondering if there was any protection on the lambda offer by vercel?
If someone starts spamming my endpoint, it can get costly real fast. I was not able to find much about it.
Thanks
If someone starts spamming my endpoint, it can get costly real fast. I was not able to find much about it.
Thanks
12 Replies
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
Vercel offers ddos protection out of the box
But the level of traffic your app will need to endure
Before it’s considered a true ddos is really high
Instead what you should do
Is setup a rate limiter using nextjs middlewsre
Google upstash rate limit middleware nextjs
And you’ll find a solution.
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Yacare CaimanOP
I am using golang runtime, it is not related to nextjs. I am just using their serverless
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
Same concept applies
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Yacare CaimanOP
So I would need to implement rate limiting on my own pretty much
Thanks
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Yacare CaimanOP
@linesofcode To use edge runtime, I need to be using typescript/js?
It will deploy as edge automatically or I need to be using nextjs with js/ts as backend in api folder?
It will deploy as edge automatically or I need to be using nextjs with js/ts as backend in api folder?