Two of the hottest trends in cloud computing today are edge computing and serverless, which Fastly is now combining with its [email protected] service. With [email protected], Fastly is also promising a language-agnostic compute environment, where developers can choose to deploy cloud serverless functions written in nearly any programming language with the use of WebAssembly (Wasm).
Serverless at the Edge
Serverless is an approach where functions are run as a service, rather than requiring a long-running container or virtual machine. The promise of serverless is more efficient use of resources and lower costs for users. Amazon Web Services (AWS) helped pioneer the cloud serverless space with its Lambda service that runs in its public cloud. Fastly's [email protected] is different in that it runs at the edge.
"We run our functions closest to the end user, which is how we define the edge," Tyler McMullen, CTO of Fastly, told ITPro Today.
[email protected] isn't Fastly's first foray into the serverless world. However, its previous serverless computing offerings were focused on specific use cases and made use of Fastly's VCL (Varnish Configuration Language)-powered programmable edge compute technology, according to McMullen. Varnish is an open-source technology for web caching and acceleration.
With the introduction of [email protected], Fastly will begin offering more general computing capabilities for the serverless computing market, McMullen said.
"We see this as both a more powerful programming and runtime environment for our existing customers, who are doing amazing use cases at the edge, … [as well as] serverless developers that are focused more on functions as a service [FaaS], who are looking for something with far greater performance," he said.
Fastly claims its new service can achieve a serverless startup time of only 35.4 microseconds. McMullen said the Fastly development team focused a tremendous amount of time on building a fast and safe model.
"We built a new compiler and runtime that moves much of the work that older solutions do at runtime into the compiler," he said. "The tight integration between the compiler and the runtime means that starting a sandbox is nearly as simple as pointing at a particular memory slot and jumping into the code."
Fastly built the new service in a way that enables developers to use the language of their choice, McMullen said. A core part of that is enabled with Fastly's WebAssembly compiler known as Lucet. With WebAssembly, other programming languages can be abstracted and then run as bytecode on top of a runtime engine.
"Lucet is the engine on which [email protected] runs," he said. "Because it’s our open-sourced WebAssembly runtime and compiler, it also has the ability to support multiple languages."
Fastly is a big supporter of WebAssembly and is one of the founding members of the Bytecode Alliance, whose primary goal is to advance the state of WebAssembly technology and usage. Other founding members of the Bytecode Alliance, which was announced on Nov. 12, include Mozilla, Intel and Red Hat.
[email protected] is currently available as a private beta preview, with plans for a public preview to follow in the coming months.