WhoBuilt

Zero Cold Starts: Serverless AI Agents on Akamai Functions

Oct 10, 2026· 23 min· 6.3K views·Watch on YouTube

Speaker

Thorsten Hans, senior developer advocate at Akamai, explains how to build and deploy globally distributed MCP servers and AI agents with Spin and Akamai Functions at AI Engineer.

Why edge deployment matters

Hans says agents and MCP servers need fast responses for users around the world. Region-bound infrastructure can add latency, while containers and VMs may take seconds or minutes to start under sudden demand. Keeping extra capacity ready can raise costs and energy use.

Spin and Akamai Functions

Hans presents WebAssembly as a portable way to build server-side applications. Spin is a vendor-agnostic CNCF project with a developer CLI, a Wasmtime-based runtime, and language SDKs. Akamai Functions runs these applications globally and, he says, cold-starts each request in under half a millisecond on average.

Building and deploying an MCP server

With Wasm MCP, developers can define tools, resources, or prompts and compose them with components for requirements such as OAuth 2.0 and OIDC. Hans demonstrates a TypeScript hello-world server, then deploys a Rust decision-log MCP with Spin. Its key-value store uses SQLite locally and Akamai’s globally distributed store in production; deployment distributes the app across regions in about 60 seconds.

Deploying an AI agent

Hans builds a game agent with the Vercel AI SDK and Spin, using tools to flip coins and roll dice. The agent connects to an Ollama model on a Linode instance with a dedicated GPU. He reports a roughly 820-millisecond full loop through the LLM and says the closest service region handled the request.

Workflow and portability

Hans describes a workflow of building in a WebAssembly-compatible language, testing locally with Spin, deploying with one command, and connecting a client. He highlights portability across WASI-compliant runtimes and the use of open standards. Spin also provides commands for metrics, logs, and upgrades.

Takeaways

  • Choose an edge runtime when users in different regions need consistently quick responses.
  • Use Spin to build portable WebAssembly services and test them locally before deployment.
  • Use Wasm MCP components to focus on tool logic while composing in authentication and other server requirements.
  • Measure the full agent request path, including the model call; the demo’s LLM loop took about 820 milliseconds.
  • Check where the model runs: a globally distributed agent can still depend on a model hosted in one location.

Mentioned in this talk

Search inside this talk

What was claimed 14

  • works at
    Senior Developer Advocate
    “I work as a senior developer advocate with Akamai.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • uses
    “It is a runtime based on Wasmtime.”
    YouTube
    Unverified1 source· Talk
  • feature
    Spin: Vendor-agnostic project for building WebAssembly applications for servers and the cloud
    “It allows you to build WebAssembly applications meant to be executed on the server or in the cloud.”
    YouTube
    Unverified1 source· Talk
  • feature
    Akamai Functions: Globally distributed serverless computing platform with zero cold starts
    “The first truly serverless computing platform that is globally distributed and has zero cold starts at all.”
    YouTube
    Unverified1 source· Talk
  • metric
    Akamai Functions: Average cold start is less than half a millisecond
    “On average we can cold start in less than half a millisecond.”
    YouTube
    Unverified1 source· Talk
  • feature
    Akamai Functions: Built-in multi-tenant key-value store automatically associated with the app
    “Akamai Functions comes with a built-in key-value store that is multi-tenant.”
    YouTube
    Unverified1 source· Talk
  • feature
    Wasm MCP: Handles OAuth 2.0 and OIDC authentication requirements when composing MCP servers
    “Authenticating users using OAuth 2.0 and OIDC is handled by Wasm MCP.”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Wasm MCP integrates with Spin
    “Wasm MCP is a CLI that integrates seamlessly with Spin.”
    YouTube
    Unverified1 source· Talk
  • feature
    Akamai Functions: Uses a globally distributed key-value store for apps that need persistence
    “On Akamai Functions, it uses the globally distributed key-value store without me having to configure anything.”
    YouTube
    Unverified1 source· Talk
  • metric
    Akamai Functions: MCP server is globally distributed in roughly 60 seconds
    “We're globally distributed in roughly 60 seconds.”
    YouTube
    Unverified1 source· Talk
  • uses
    “We can simply pick any popular SDK that's out there. I think the Vercel AI SDK is pretty nice to use. This allows us to create a new Spin app using TypeScript.”
    YouTube
    Unverified1 source· Talk
  • uses
    “We use an optimized JavaScript runtime called SpiderMonkey.”
    YouTube
    Unverified1 source· Talk
  • metric
    SpiderMonkey: Roughly 10 megabytes in size
    “SpiderMonkey, which is roughly 10 megabytes in size.”
    YouTube
    Unverified1 source· Talk
  • feature
    Bytecode Alliance: Governs WebAssembly and WASI
    “WASI and WebAssembly are governed by the Bytecode Alliance.”
    YouTube
    Unverified1 source· Talk

Related talks