Promptles
Architecture

Serverless

advanced

Definition

A way of running code in the cloud where you don't manage any servers yourself. You upload your code, and the cloud provider runs it on demand: automatically starting it up when needed and shutting it down when it's idle. You only pay for the seconds it's actually running.

In the wild

A small charity has a 'donate' button that emails them a thank-you note. They don't need a server running 24/7 for this. They just upload the email-sending code as a serverless function. It runs for half a second whenever someone donates, and costs almost nothing the rest of the time.

More from Architecture