Modal's serverless KV store gets its limit raised to infinity
Modal's Dict key-value primitive now has unlimited storage, durability, a 7-day TTL that is refreshed on both reads and writes (previously 30 days since last write with a 10GiB cap), and a `skip_if_exists` flag on `.put()` that works as a distributed lock. Together these give LRU-like caching and exactly-once coordination across containers. A worked example builds a request cacher that dedupes bursts of identical requests. It writes a pending entry with `skip_if_exists`, stores the spawned function-call handle as in_progress, then stores the completed result, so the expensive backend function runs only once.
Related posts
- Serverless routing made sticky
Modal mediumAdept
Modal's Sticky Sessions pin every request in a session to the same serverless container, which suits stateful workloads like streaming speech-to-text, voice agents, shared rooms and multiplayer games without resorting to max_containers=1. The feature builds on Modal Servers and their stateless proxy (fprs). Routing metadata is encoded in a signed session token, so the proxy holds no session-to-container mapping. Load balancers combine periodic concurrency probes with recent routing decisions to place sessions, and the autoscaler treats sessions rather than requests as the unit of concurrency, queuing new sessions when capacity runs out.
- Memory snapshots: Checkpoint/restore for sub-second startup
Modal mediumAdept
Modal cuts serverless container cold starts roughly 2.5x by checkpointing a gVisor container's full process tree and filesystem mutations just before it accepts a request, then restoring it instead of re-running Python's syscall-heavy import path (import torch alone makes 26,000 syscalls through OverlayFS and a FUSE lazy-loading server). Restore speed depends mostly on getting the main process's memory pages into the page cache. gVisor loads pages in the background, prioritizing faulting pages, while the FUSE layer aggressively preloads the pages file. Snapshots are created on demand per worker because of CPU feature, NVIDIA driver and runtime compatibility. GPU state can't be saved, so models are loaded into CPU RAM before the snapshot and moved to the GPU after restore via snap=True/snap=False lifecycle hooks.
- Introducing Web Cache API support on Deno Deploy
Deno mediumAdeptDeno 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.
- Use Turso as your Unkey cache store
Turso mediumAdeptTurso can serve as the backing store for Unkey's `@unkey/cache` middleware library through its `LibSQLStore` adapter. Setup takes four steps: install `@unkey/cache` and `@libsql/client`, create a `cache` table with key, value, freshUntil and staleUntil columns, pass a libSQL client to `LibSQLStore`, and register it in a cache namespace with fresh (60s) and stale (15m) windows. Pointing the client at an Embedded Replica (`file:local.db` with a `syncUrl`) keeps the cache next to the app to cut read latency.
- Bringing serverless functions closer to the speed of wire
Modal mediumAdept
Modal rebuilt its serverless I/O plane, which queues Function inputs and outputs, and now runs it in at least four regions. A new `routing_region` flag lets callers avoid round trips to us-east, and the completed migration cut end-to-end Function Call latency by about 80ms at p50. The redesign moves non-critical work like autoscaling stats and dashboard events to the background and minimizes shared-storage access on the hot path, using client-side metadata caching and JWT-based auth. It also rewrites the server layer from async Python to Go to avoid event-loop lag, and stays on Redis 7.1 for its Redis-streams queues after load tests showed CPU spikes from 7.2 onward. Users are advised to route near their clients, keep payloads under 2MiB to skip blob-storage uploads, and batch small inputs.