---
title: "How Figma manages sandboxes at scale"
description: "Nimbus is Figma's internal platform for running tens of thousands of sandboxes for AI-generated code across multiple cloud providers."
url: "https://swe.quest/articles/how-figma-manages-sandboxes-at-scale-2d97e81a21201803"
canonical: "https://www.figma.com/blog/how-figma-manages-sandboxes-at-scale/"
source: "Figma"
published: "2026-11-04"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["sandboxing","system-design","resilience","cloud","ai-agents"]
---

# How Figma manages sandboxes at scale

A post on [Figma](https://swe.quest/sources/figma.md), published 2026-11-04, 11 min read, Case study. Original: [https://www.figma.com/blog/how-figma-manages-sandboxes-at-scale/](https://www.figma.com/blog/how-figma-manages-sandboxes-at-scale/)

## Summary

Nimbus is Figma's internal platform for running tens of thousands of sandboxes for AI-generated code across multiple cloud providers. Teams declare a namespace config (image, resources, health checks, warm pool bounds, allowed hosts), and a control plane picks providers, enforces egress policy and manages lifecycle through GetOrCreate, Get and Delete APIs. Security comes from read-only egress to untrusted hosts, enforced by provider controls or a proxy sidecar, plus encrypted credentials that are swapped for real ones only at the intended destination. Demand-sized warm pools with Postgres skip-locked claiming, health-weighted provider routing and Redis-scheduled health checks cut provisioning latency by 90% and raised availability from 99% to 99.95%. A control-loop simulator exposed a feedback bug where slow-but-successful providers kept receiving work.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- egress proxies ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))
- Postgres row locking ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- control loops

## Keywords

Nimbus, Figma, Postgres, Redis, sandboxd, Figma Make

## Related posts

- [Server-side sandboxing: Virtual machines](https://swe.quest/articles/server-side-sandboxing-virtual-machines-66f9fa065fa102cd.md): Figma · 2023-10-24 · Medium · 10 min read · Sandboxing & isolation, Virtualization, Serverless, Application security, Cloud platforms
  VM-based sandboxing rests on two boundaries: the hypervisor, which is usually strong but exposes a large attack surface, and the VM's own permissions, which must be restricted through network limits, minimal service access and short-lived credentials so a compromised job can't do harm without escaping.
- [What is an AI code sandbox?](https://swe.quest/articles/what-is-an-ai-code-sandbox-ff77320ddef8f884.md): Modal · 2025-07-24 · Easy · 9 min read · Sandboxing & isolation, AI agents, AI for coding, Containers
  AI code sandboxes are ephemeral, isolated environments for executing LLM-generated code so hallucinated packages, crashes or prompt-injected exploits can't affect the host or other tenants.
- [Inside Figma: getting out of the (secure) shell](https://swe.quest/articles/inside-figma-getting-out-of-the-secure-shell-990a1f1d9b7e2fa4.md): Figma · 2021-09-02 · Medium · 9 min read · Identity & auth, Cloud platforms, Security
  Figma replaced its SSH bastion hosts with a zero-trust shell access system built on AWS SSO (backed by Okta with WebAuthn and device trust) and AWS Systems Manager Session Manager, so instances need no exposed SSH ports and access uses short-lived, minimally privileged IAM role credentials.
- [The Untrusted Autonomous Workload: How AI Coding Agents Reshape What Isolation Has to Do](https://swe.quest/articles/the-untrusted-autonomous-workload-how-ai-coding-agents-reshape-what-isolation-af433bee97ff8809.md): Docker · 2026-05-26 · Medium · 16 min read · Sandboxing & isolation, Virtualization, AI agents, Containers, Supply chain security
  AI coding agents are untrusted, autonomous workloads that containers were never designed to isolate, so Docker Sandboxes runs each agent in a microVM (custom VMM on Hypervisor.framework, WHP or KVM) with its own kernel and private Docker Engine.
- [Server-side sandboxing: An introduction](https://swe.quest/articles/server-side-sandboxing-an-introduction-7a8a0dd3442f4e4f.md): Figma · 2023-10-24 · Easy · 9 min read · Sandboxing & isolation, Security, Virtualization, Containers, Linux
  Server-side workloads like image processing, parsing and thumbnailing often depend on memory-unsafe C++ libraries with histories of exploitable bugs (e.g. ImageTragick), so Figma isolates them with sandboxing rather than relying solely on preventing vulnerabilities.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
