What is serverless architecture?
⚡
Quick Answer
Serverless lets you run code without managing servers — the cloud provider provisions, scales, and bills per execution. Functions-as-a-Service (AWS Lambda) is the classic example, alongside managed serverless data/eventing services.
Detailed Answer
You deploy functions triggered by events (HTTP, queue, schedule); the platform handles scaling to zero and up automatically and charges only for actual usage. Trade-offs: cold starts, execution time/size limits, statelessness, and vendor lock-in. It suits event-driven, spiky, or glue workloads.
💡
Interview Tip
Balance the benefits with real trade-offs (cold starts, statelessness, lock-in) — nuance beats hype.
serverlesslambdafaas