Skip to content
rusthacks.dev

Tag

tokio

33 posts

Flat illustration for the post “Debugging Async Backtraces and Task Dumps in Tokio”, composed around async.
Tooling

Debugging Async Backtraces and Task Dumps in Tokio

A hung async service has no useful thread backtrace. Tokio task dumps capture the await stack of every task. Enable tokio_unstable and taskdump, trigger a dump from a signal or endpoint, and read where each task is parked.

4 min read
Flat illustration for the post “Background Job Queues in Rust Compared by Trade Off”, composed around architecture.
Architecture

Background Job Queues in Rust Compared by Trade Off

Pick a background job system for a Rust service: an in-process Tokio channel, a database table with SKIP LOCKED, Redis queues, or a broker. Compare durability, retries, scale and operational cost.

3 min read