<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>design on MU</title><link>https://choy-mutao.github.io/%E5%8D%9A%E5%AE%A2_60/design/</link><description>Recent content in design on MU</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sun, 18 Aug 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://choy-mutao.github.io/%E5%8D%9A%E5%AE%A2_60/design/index.xml" rel="self" type="application/rss+xml"/><item><title>消息队列, 生产与消费</title><link>https://choy-mutao.github.io/%E5%8D%9A%E5%AE%A2_60/design/message_queue/</link><pubDate>Sun, 18 Aug 2024 00:00:00 +0000</pubDate><guid>https://choy-mutao.github.io/%E5%8D%9A%E5%AE%A2_60/design/message_queue/</guid><description>描述 问题的产生, 在于一个计算逻辑中的两个柱体 A 和 B 之间存在数据的生产先后顺序, 需要用 A 生成 B 的一个前置数据, 再由 B 输出产生结果, 而 A 中的数据在时间上没有关联性, 即 t 时刻生成的 数据 \(A_t\) 与 t+1 时刻 \(A_{t+1}\) 无关
为了程序主逻辑运行的效率, 对 A 和 B 采用异步执行, 即当 在 A 生成数据后, B再开始运行</description></item></channel></rss>