什么是“交付模式"?在AMQP中? [英] What is the "delivery mode" in AMQP?

查看:222
本文介绍了什么是“交付模式"?在AMQP中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解有2种选择:

  • 非持久"
  • 持久"

但这实际上是什么意思?

But what does this actually mean?

非持久性",如:如果没有使用者,则AMQP结构将尝试传递消息,该消息将被丢弃吗?

"Non-persistent" as in : the AMQP fabric will try to deliver the message if there are no consumers, the message will be dropped?

持久性",如:AMQP将重试该消息,直到消费者接受为止?

"Persistent" as in : AMQP will retry the message until a consumer accepts it??

推荐答案

传递给持久"队列的标记为持久"的消息将记录到磁盘.如果发生崩溃,则会恢复持久队列以及崩溃之前存储的所有持久性消息.

Messages marked as 'persistent' that are delivered to 'durable' queues will be logged to disk. Durable queues are recovered in the event of a crash, along with any persistent messages they stored prior to the crash.

这篇关于什么是“交付模式"?在AMQP中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆