logo

Shedding old code with ecdysis: graceful restarts for Rust services at Cloudflare

ID: 52e54a48-474c-5f59-8e6f-b778a7b607bf

STIX ID: report--52e54a48-474c-5f59-8e6f-b778a7b607bf

Feed Name: Cloudflare Blog

Date Published: 2026-02-13

Date Updated: 2026-04-27

Author: Manuel Olguín Muñoz

...
...

Cloudflare announces and explains ecdysis, an open-sourced Rust library that enables zero-downtime, graceful restarts for network services using a fork-then-exec model with inherited listening sockets, ensuring no dropped or refused connections during upgrades. The post outlines why naive restarts fail, how ecdysis coordinates parent/child readiness and draining, its Tokio and systemd integrations, security considerations (explicit FD inheritance, CLOEXEC, seccomp compatibility), a simplified echo-server example, and how it compares to Cloudflare’s tableflip (Go) and shellflip (Rust) alternatives, noting its proven production use across Cloudflare’s global network.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.