GraphQL at the Edge with WebAssembly
summary
A Rust GraphQL server is compiled to WebAssembly and trimmed to a ~950KB runtime so it fits Cloudflare Workers; pure computation (parsing, IR, query-to-SQL mapping) runs unchanged but networking needs platform-specific glue using the Worker socket API and a JS async bridge. Connection latency drops from ~300ms to ~100ms with hyperdrive pooling; build uses wasm-bindgen, optimizes with wasm-opt/wasm-gc, and targets wasi preview2.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 1:06Edge Computing vs serverless
- 2:50WebAssembly fundamentals
- 7:22Xograph GraphQL backend
- 10:38Deploying to Cloudflare Workers
- 12:44Porting Rust to WebAssembly
- 17:23Module size challenges
- 23:22External connection latency
- 26:33WebAssembly in the browser
- 29:03Q&A session
related talks
06mKeynote: Deploy WASM on the Edge
52mBuild and Deploy Instant GraphQL APIs to the Edge
25mFrom Cloud to Edge computing - Unleashing the power of WebAssembly at the edge
28mPowering Up NodeJS Performance by Rust and WebAssembly
01h 13mRust-Powered Fullstack GraphQL: From Actix-Web & Juniper Server to WASM Yew Client
40mRust, WebAssembly, and the future of Serverless
14mWebAssembly The Next Big Platform
30mImproving web app with Rust and WASM
