Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Serverless Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-serverless-patterns)
---
name: serverless-patterns
description: "Serverless functions (Lambda, Vercel, Cloudflare Workers): cold starts, timeouts, connections, idempotency and cost."
tags: [cloud, backend]
---
# Serverless Patterns
## When to use
- Event-driven or bursty workloads
## Procedure
1. Keep handlers small
2. Reuse connections across invocations
3. Use a DB proxy or HTTP-based DB
4. Make handlers idempotent
5. Set timeouts and concurrency limits
## Checklist
- [ ] Cold start measured
## Anti-patterns
- Opening a new DB connection per invocation