Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 3 min read Case study easyNovice

How immutable scripts in Deno allow Windmill.dev (YC S22) to build production-grade ops

Windmill.dev, an open-source platform for building internal workflows and UIs from scripts, runs TypeScript on Deno because inline, version-pinned imports make each script a self-contained, reproducible file that is hashed immutably and stored in Postgres. Deno's opt-in permission model isolates untrusted code in a multi-tenant setting with less overhead than the NSJail sandboxing used for other languages. Dependency caching synced across workers via S3 gives roughly 15ms cold starts and about 30ms end-to-end runs for lightweight scripts, and the team plans to run Deno in-process to approach Lambda-level performance.

Related posts

  • How we built a secure, performant, multi-tenant cloud platform to run untrusted code

    Deno mediumAdept

    Deno Deploy runs untrusted JavaScript and TypeScript in pools of V8 isolates inside VMs called runners, split into a control plane for deployments and a data plane of edge regions. At deploy time, code is transpiled with swc, all dependencies are vendored and ordered breadth-first so they can be streamed into V8, and the bundle is replicated to regional buckets. Postgres stays off the critical path, and edge proxies keep an in-memory domain-to-deployment table. Requests arrive via Anycast, and the proxy picks a runner using heuristics over CPU and memory load. Isolation combines namespaces, cgroups, seccomp and a watchdog process, built against a five-point tenant threat model.

  • Benchmarking AWS Lambda Cold Starts Across JavaScript Runtimes

    Deno mediumAdept

    Across Express, Fastify and Hono URL-shortener apps deployed to AWS Lambda via Docker and the Lambda Web Adapter, Deno 1.45 showed lower cold-start Init Duration than Node 22 and Bun 1.1, with the Lambda-managed Node runtime included as a reference. Cold starts were forced by changing an environment variable between invocations and measured from CloudWatch. Hyperfine runs on a GCP VM confirmed the gap: Deno started 1.33–1.77x faster, with Hono at about 58 ms versus roughly 100 ms for Node and Bun. The key optimization is to prepopulate Deno's caches (npm/JSR modules, module graph, transpiled TypeScript, V8 code cache) during Docker image build by running the app once with a timeout. Graviton was slower than x86_64 for all runtimes, and the benchmark comes from Deno's own team.

  • The Anatomy of an Isolate Cloud

    Deno easyNovice

    Deno Deploy runs untrusted user JavaScript in V8 isolates rather than VMs or containers, trading heavier isolation for much lower overhead and faster deploys. Traffic reaches 30+ edge locations via anycast, where a Rust runner process acts as an isolate hypervisor: it maps the Host/:authority header to a deployment, picks a TLS certificate via SNI, starts deployment processes on demand and terminates idle ones. Security is layered across a restricted custom Deno build, V8 sandboxing, one process per deployment, resource quotas enforced by the runner, separated control- and data-plane networks, seccomp syscall filtering, and Rust's memory safety.

  • Deno 1.24 Release Notes

    Deno mediumAdept

    Deno 1.24 moves all TypeScript emitting to swc and caches type-check results, making `deno check` 20% faster cold and 70–90% faster on reruns for codebases like oak. FFI calls become roughly 200x faster (nop from ~437ns to ~2ns) via V8 fast API calls and JIT-generated trampolines, and FFI gains thread-safe JS callbacks through `Deno.UnsafeCallback`, with pointers now represented as bigint. The release also adds `unhandledrejection` and `beforeunload` events (enabling Node `process` polyfills) and import-map-aware `import.meta.resolve()`. Other changes include a reworked unstable subprocess API with ref/unref, a `--parallel` test flag with config-file include/exclude, and std additions: semver, typed flags parsing and dotenv variable expansion.

  • Self-contained Executable Programs with Deno Compile

    Deno mediumAdept

    `deno compile` turns JavaScript and TypeScript programs into standalone binaries for Windows, macOS and Linux that run without Deno installed. It works by bundling the module graph into an eszip file and injecting it with Sui into a slimmed-down runtime binary, denort. Because the bundle sits in a section of the executable, the result can still be code signed. Examples cover cross-compiling with `--target`, custom icons, preserved permission flags, and compiling npm itself, which ran about 1.9x faster on `npm -v`. Assets can be embedded as base64-encoded modules until native asset bundling arrives.

The quest for software engineering knowledge.

Look:
Layout: