Tag: Channels
All the articles with the tag "Channels".
-
System.Threading.Channels:.NET 内置的生产者-消费者管道,不需要 RabbitMQ
Published: at 07:16 AM一个上传接口在并发上来后把 CPU 打满、把其他请求拖死。问题不在异步写得不对,而在没有一条带背压的工作管道。这篇文章用 System.Threading.Channels 从零搭出生产者-消费者模式,把并发控制、背压和平滑关停一起讲清楚。