Серверлесс (Serverless)

Вычисления без управления серверами.

## Understanding the 'No-Server' Myth
'Serverless' doesn't mean there are no servers; it means you don't see them. The provider handles all the complex parts: provisioning, patching, and scaling. Your code lives as a set of 'Functions' that wake up only when something happens—an image is uploaded, a button is clicked, or a timer goes off. This is the ultimate peak of the 'Cloud as a Utility' vision.

        graph LR
  Center["Серверлесс (Serverless)"]:::main
  Pre_cloud_computing["cloud-computing"]:::pre --> Center
  click Pre_cloud_computing "/terms/cloud-computing"
  Pre_distributed_systems["distributed-systems"]:::pre --> Center
  click Pre_distributed_systems "/terms/distributed-systems"
  Pre_api_development["api-development"]:::pre --> Center
  click Pre_api_development "/terms/api-development"
  Center --> Child_api_gateway["api-gateway"]:::child
  click Child_api_gateway "/terms/api-gateway"
  Rel_microservices["microservices"]:::related -.-> Center
  click Rel_microservices "/terms/microservices"
  Rel_containerization["containerization"]:::related -.-> Center
  click Rel_containerization "/terms/containerization"
  Rel_decentralized_storage["decentralized-storage"]:::related -.-> Center
  click Rel_decentralized_storage "/terms/decentralized-storage"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Простыми словами

⚡ Серверлесс — это как ресторан, где вы платите только за каждый съеденный кусочек еды. Вам не важно, сколько там поваров или плит. Вы даете команду (запрос), и код мгновенно выполняется. Если никто не заказывает блюдо — вы ничего не платите.

🤓 Expert Deep Dive

Ключевой концепцией является Масштабирование до нуля (Scale-to-Zero). Популярный формат — FaaS (Function-as-a-Service). Главным техническим вызовом является 'Холодный старт' — время, необходимое на создание контейнера для функции, которая давно не вызывалась. Современные платформы используют микро-виртуальные машины (Firecracker) для минимизации этой задержки до миллисекунд.

🔗 Связанные термины

Предварительные знания:
Чтобы узнать больше:

📚 Источники