Latency at the Edge with Rust/WebAssembly and Postgres: Part 1
exograph.devDuring our journey towards WebAssembly support for Exograph, we learned a few things to improve the latency of Rust-based programs targeting WebAssembly in Cloudflare Workers connecting to Postgres. This two-part series shares those learnings. In this first post, we will set up a simple Cloudflare Worker connecting to a Postgres database and get baseline latency measurements. In the next post, we will explore various ways to improve it.
Even though we experimented in the context of Exograph, the learnings should apply to anyone using WebAssembly in Cloudflare Workers (or other platforms that support WebAssembly) to connect to Postgres.
The second part is published: https://exograph.dev/blog/wasm-pg-explorations-2