Files
nexus/wiki/concepts/消息队列.md

1.1 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
消息队列 concept
software-engineering
architecture
message-queue
async
distributed-systems
开发经验与项目规范整理文档
2025-12-30

Definition

消息队列Message Queue 是一种用于服务之间异步通信的中间件。生产者将消息发送到队列,消费者异步从队列中取出并处理,实现服务间的松耦合。

Core Principles

  • 解耦:生产者和消费者无需同时在线,直接依赖接口
  • 削峰填谷:在高负载时缓存消息,平滑处理压力
  • 异步任务处理:非实时任务可放入队列异步处理
  • 提高系统稳定性与吞吐:通过异步处理提升系统整体吞吐量

Source Reference

来源:开发经验与项目规范整理文档