Durable Objects - Outbound connections keep Durable Objects alive
16d ago
Source
CloudflareDurable Objects - Outbound connections keep Durable Objects alivecloudflare.comDurable Objects now remain alive for the duration of active outbound connections created via connect() or an outbound WebSocket. Previously, a Durable Object would be evicted after 70-140 seconds of no incoming traffic, even if the object had an open outbound connection, which is a common pattern when streaming responses from a large language model (LLM) over TCP or an outbound WebSocket. With this change, each active outbound connection prevents eviction. Once all outbound connections close, the standard 70-140 second inactivity window applies before the Durable Object is evicted. Before: streaming connections were cut off by eviction After: active outbound connections keep the Durable Object alive If you are building agents on Cloudflare , this is especially relevant. An agent that streams tokens from an LLM while calling models , or that performs long-running tasks over an outbound connection, now stays alive for the duration of that connection instead of being evicted mid-stream. Limits: Each outbound connection keeps the Durable Object alive for a maximum of 15 minutes . After 15 minutes, the connection stops preventing eviction (the connection itself continues operating), and the standard eviction rules resume. The Durable Object's existing per-account instance limits still apply. For more information, refer to Lifecycle of a Durable Object .
You might also wanna read
Understanding SQLite's Durability Settings and Performance Trade-offs
The article examines SQLite's durability settings, highlighting the confusion and conflicting information in its documentation regarding whe
Exploring Persistence and Durability in Key-Value Databases
The article discusses the author's experience working on a key-value database, exploring different approaches for persistence and durability
Implementing a Durable Execution Engine Using SQLite for Persistent Workflows
The article explores building a Durable Execution (DE) engine using SQLite, explaining how DE engines make multi-step workflows persistent a
Typhon Database: Three Configurable Durability Modes in a Single WAL for Flexible Workloads
This article is part of a series about building a database engine called Typhon in C#. It discusses how Typhon implements three different du
dev.to·1mo agoThe transactional outbox pattern: keeping a database and Kafka consistent
medium.com·1mo ago
Debugging a Critical Timing Issue: How Adding LiDAR Streaming Froze My Autonomous Robot
A developer shares a debugging nightmare where adding LiDAR streaming over WebRTC to their autonomous sidewalk robot causes the critical 100
campedersen.com·5mo ago

Comments
Sign in to join the conversation.
No comments yet. Be the first.