Tech
One Unbounded Channel, 188 MB of Regret
Every producer/consumer queue I've written in the last few years sits on System.Threading.Channels , and nearly every one starts with Channel.CreateUnbounded . It's the overload that asks no questions. No capacity to pick, no full-queue policy to design, WriteAsync never waits. Last week I caught myself typing it into yet another background worker and realized I'd never measured what that convenience costs when the consumer falls behind.
So I built the smallest pipeline that could embarra...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to