Serverless
Serverless is a cloud model in which a provider runs code on demand and manages the servers, so users deploy only functions or containers.
In a serverless model, a developer uploads code and the provider decides where and when it runs. The code usually starts in response to an event, such as an HTTP request or a new file in storage. The provider creates instances as requests arrive and removes them when they stop. Billing is based on the time and memory the code actually uses, often measured in milliseconds.
Serverless removes the work of choosing, patching and scaling servers. It suits workloads that are short, stateless and uneven, with sudden peaks and long quiet periods. The trade-offs are limits on how long code can run, little control over the environment, and cold starts when a new instance has to start. Many serverless platforms run each function in a lightweight virtual machine for isolation.
Sandboxes for agents share several ideas with serverless computing, such as on-demand start, isolation and pay-per-use billing. They differ in what they keep. A serverless function is usually stateless and short. A sandbox gives an agent a full machine with a file system, processes and a shell that can last minutes or days. Both depend on fast starts, which platforms achieve with snapshots and warm pools.