Thinking in Sandboxes
This workshop was presented at the AI Coding Summit.
Repository: code-along demo repository choose "Use as template"
Learning Objectives
- Explain what a sandbox is and why it exists as a compute primitive
- Identify common problems that sandboxes are well suited to solve
- Safely execute untrusted or dynamic code
- Use sandboxes for development, testing, and automation workflows
- Reason about security, performance, and tradeoffs when choosing sandboxed execution
"Helpful" Sayings
When to Use a Sandbox
- "If you might break something, sandbox first!"
- "When it’s short-lived and wild, sandbox that child!"
- "If it’s just a test run, isolated is fun!"
When Not to Use a Sandbox
- "If it's not ephemeral, keep it general!"
- "When every millisecond counts, don’t bounce in and out!"
- "When persistence is key, let it be free!"
Contact me
- X - @craigsdennis
- Email me at
craig at cloudflare.com