Serverless
Serverless
Instead of keeping a server running yourself, it turns on automatically only when needed, and you pay only for what you use.
💡 It's taking a taxi instead of owning a car. You only pay for the rides you take.
🤖 Say this to your AI
Use Neon, a serverless Postgres, for the database. Connect it with the serverless driver so it doesn't open too many connections when deployed on Vercel.
The key word is ‘Serverless’. Including it helps AI understand you much more precisely.
📌 Good to know
If it's unused for a while it goes to sleep (scale to zero), so the first request may be a bit slow while it wakes up. That's called a 'cold start'.
When to use it
- Small services where visitor numbers go up and down
- When you use a serverless database like Neon
Also called: serverless, neon, cold start, scale to zero, pay as you go, lambda, functions, serverless functions