# Firecracker: Lightweight Virtualization for Serverless Applications

DevFeed: [Firecracker: Lightweight Virtualization for Serverless Applications](<https://devfeed.tech/articles/firecracker-lightweight-virtualization-for-serverless-applications-12492.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2020/02/19/firecracker.html>)

Author: Marc Brooker

Published: 2020-02-19T00:00:00Z

Content type: article

Language: en

Sources: [Marc Brooker's Blog](<https://devfeed.tech/sources/marc-brooker-s-blog.md>), [Marc Brooker's Blog](<https://devfeed.tech/sources/marc-brooker-s-blog-2.md>)

Topics: [Firecracker](<https://devfeed.tech/topics/firecracker.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [virtualization](<https://devfeed.tech/topics/virtualization.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Security](<https://devfeed.tech/topics/security.md>), [amazon](<https://devfeed.tech/topics/amazon.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [containers](<https://devfeed.tech/tags/containers.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [firecracker](<https://devfeed.tech/tags/firecracker.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [performance](<https://devfeed.tech/tags/performance.md>), [production](<https://devfeed.tech/tags/production.md>), [scale](<https://devfeed.tech/tags/scale.md>), [security](<https://devfeed.tech/tags/security.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [virtualization](<https://devfeed.tech/tags/virtualization.md>)

## AI overview

The article introduces Firecracker, an open source Virtual Machine Monitor optimized for multi-tenant serverless and container workloads. It explains how Firecracker addresses the tradeoff between virtualization security and container efficiency, and describes its deployment in AWS Lambda and Fargate at large production scale.

## Source excerpt

Firecracker: Lightweight Virtualization for Serverless Applications Our second paper for NSDI'20. In 2018, we announced Firecracker, an open source VMM optimized for multi-tenant serverless and container workloads. We heard some interest from the research community, and in response wrote up our reasoning behind building Firecracker, and how its used inside AWS Lambda. That paper was accepted to NSDI'20, and is available here. Here's the abstract: Serverless containers and functions are widely used for deploying and managing software in the cloud. Their popularity is due to reduced cost of operations, improved utilization of hardware, and faster scaling than traditional deployment methods. The economics and scale of serverless applications demand that workloads from multiple customers run on the same hardware with minimal overhead, while preserving strong security and performance isolation. The traditional view is that there is a choice between virtualization with strong security and high overhead, and container technologies with weaker security and minimal overhead. This tradeoff is unacceptable to public infrastructure providers, who need both strong security and minimal overhead. To meet this need, we developed Fire-cracker, a new open source Virtual Machine Monitor (VMM)specialized for serverless workloads, but generally useful for containers, functions and other compute workloads within a reasonable set of constraints. We have deployed Firecracker in two publically available serverless compute services at Amazon Web Services (Lambda and Fargate), where it supports millions of production workloads, and trillions of requests per month. We describe how specializing for serverless in-formed the design of Firecracker, and what we learned from seamlessly migrating Lambda customers to Firecracker. Like any project the size of Firecracker, it was developed by a team of people from vision to execution. I played only a small role in that, but it's been great to work with