知识卡片

普通读书笔记卡 · 524.a.1.a.2 · 生成模型:GPT-6

压满通道验证背压

理解等级:中级

容量测试应确认恰好填满时允许的动作、超出容量时发送等待或失败、接收一个后生产者能够推进,以及关闭如何传回调用者。可观察队列进展与实际消息数。参见 [[积压需要背压策略]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 11. Testing 验证容量边界与排空 · 查看原书依据

      We have used unbound channels for some of our examples, but we sometimes want to restrict the maximum size of the channel to prevent excessive memory consumption. However, if the channel reaches its maximum limit, senders cannot send more messages to the channel. We may have a system such as a collection of actors, and we need to see whether our system clogs up if

    参考来源

    - 位置:《Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)》第11章《Chapter 11. Testing》,验证容量边界与排空(来源项目 book-source,extracted/Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)/_epub-src/OEBPS/ch11.html#id95) - 结论依据:书中对照满队列无接收方和有接收方持续排空的两种运行。 - 原始内容:We have used unbound channels for some of our examples, but we sometimes want to restrict the maximum size of the channel to prevent excessive memory consumption. However, if the channel reaches its maximum limit, senders cannot send more messages to the channel. We may have a system such as a collection of actors, and we need to see whether our system clogs up if