受欢迎的博客标签

NET Core 使用 System.Threading.Channels 消息队列 - 处理心跳数据

Published

System.Threading.Channels 是.NET Core 3.0 后推出的新的集合类型, ,它可以用来做消息队列,进行数据的生产和消费, 公开的 Writer 和 Reader api对应消息的生产者和消费者,也让Channel更加的简洁和易用,

与Rabbit MQ 等其他队列不同的是,Channel 是进程内的队列

不需要添加第三方中间件,直接添加现有的模块即可。

https://github.com/lackguozi/LearnChannelWebApi

 

 

blog

https://cloud.tencent.com/developer/article/2319394?areaId=106001