消息队列:一种用于在不同程序/服务之间异步传递消息的通信机制。发送方把消息放入队列,接收方按顺序取出并处理,从而实现解耦、削峰填谷、提高可靠性等。(该词在技术语境中最常见;也可泛指“消息排队等待处理”的机制。)
/ˈmɛsɪdʒ kjuː/
Please put the task into the message queue.
请把这个任务放进消息队列里。
To avoid overloading the database during peak traffic, we routed incoming events through a message queue and processed them in batches.
为避免高峰流量时压垮数据库,我们把进入的事件先通过消息队列转发,再分批处理。
message 源自中古法语 message(“信息、口信”),更早与拉丁语词根有关;queue 源自法语 queue(原意“尾巴”,引申为“队列、排队”)。合在一起的 message queue 属于现代计算机领域的复合词,字面义即“消息的队列”。