Skip to content

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

Deno 4 min read Announcement mediumAdept

Introducing Web Cache API support on Deno Deploy

Deno Deploy now offers beta support for the web-standard Cache API, giving serverless code semi-persistent storage for Request/Response pairs via caches.open(), cache.match() and cache.put(). Entries persist indefinitely (usually at least 30 days) unless expiry is set with standard Expires or Cache-Control headers. The backend is a multi-tier LSM storage engine that moves 512KB pages between RAM, local NVMe SSD and object storage, using io_uring to reach 2.4Gbps and sub-millisecond random I/O. It is free during the beta, and measured costs run about 10x lower than Deno KV.

Related posts

  • Deno 1.33: Deno 2 is coming

    Deno mediumAdept

    Deno 1.33 ships a built-in, unstable KV database (Deno.openKv) that persists to disk locally and is geo-replicated on Deno Deploy. It also flattens the deno.json schema, drops permission checks for statically analyzable dynamic imports, and polyfills many node:crypto, node:http and node:vm APIs. Deno.run is deprecated in favour of Deno.Command, and one Deno.serve overload is removed ahead of stabilization. Deprecated std/encoding paths are deleted, with an import-map workaround for transitive dependencies. The release also adds LSP document preloading, deno bench --no-run, an unset command for deno task, and V8 11.4, all framed as steps toward Deno 2.

  • Deno KV vs. Cloudflare Workers KV, Upstash Redis, AWS DynamoDB, and Google Firestore

    Deno mediumAdept

    A vendor-run benchmark compares Deno KV with Upstash Redis, DynamoDB Global Tables, Google Firestore and Cloudflare Workers KV by timing 10-record reads and writes from colocated serverless functions, with warm-up reads excluded. At p99, Upstash (139ms read) and Deno KV (90ms read, 166ms write) were fastest, while Cloudflare KV was slowest because its caching and eventual consistency make writes take up to 60s to become visible. The comparison also covers each store's consistency and isolation levels, per-million read/write pricing and setup experience. The databases offer different consistency guarantees, so the latency numbers are not strictly like-for-like.

  • Deno 1.26 Release Notes

    Deno mediumAdept

    Deno 1.26 adds the Cache Web API (persisted to disk, with some differences from browsers), WebCrypto Ed25519/X25519 keys, and a new --allow-sys permission that separates OS-info APIs like hostname and systemMemoryInfo from --allow-env. npm support gains a --node-modules-dir flag that lays out a pnpm-style node_modules for packages that expect one, plus targeted --reload=npm: flags, and the old --compat mode is removed. Node compatibility now targets Node 18 with streams rebuilt on readable-stream and more child_process APIs. The release also brings measured speedups: TextEncoder.encodeInto is 5–30x faster, console.log is 5x faster, URL parsing up to 2.27x faster, and macOS copyFileSync uses APFS clonefile.

  • Deno 1.43: Improved Language Server performance

    Deno mediumAdept

    Deno 1.43 cuts Language Server auto-completion latency in large codebases from 6-8 seconds to under one second and sharply reduces LSP memory use, fixing out-of-memory failures. It reworks node:vm and node:worker_threads for better npm compatibility with tools like Vitest, Docusaurus, Angular CLI and Next.js. It also adds V8 bytecode caching for 5-240% faster startup, a declarative `deno serve` subcommand, a `Deno.serve()` completion promise and `addr` property, JSX precompile skip options, `URL.parse()`, V8 12.4 with Float16Array, and Deno 2 breaking changes behind `DENO_FUTURE=1`.

  • How We Made the Deno Language Server Ten Times Faster

    Deno mediumAdept

    Deno cut language server auto-completion latency in large codebases from about 8 seconds to under one second by fixing how its Rust server synchronizes project state with the embedded TypeScript compiler (tsc). Flamegraphs from a customer-modeled benchmark (75k lines of app code, 750k in dependencies) showed tsc spending most of its time pulling every file's contents across the expensive Rust-to-JavaScript boundary on each request. The fixes were to sync only local files, since remote npm:/jsr:/URL dependencies are cached and rarely change, and to add a JavaScript-side cache that the Rust server invalidates on file changes, which eliminated most cross-boundary calls. The improvements shipped in Deno 1.43.

The quest for software engineering knowledge.

Look:
Layout: