`

rabbitmq 学习-7-rabbitmq 支持场景

阅读更多

What messaging scenarios are supported by AMQP and RabbitMQ?

AMQP is a very general system that can be configured to cover a great variety of messaging middleware use-cases. For example:

 

  • Point-to-point communication

    One of the simplest and most common scenarios is for a message producer to transmit a message addressed to a particular message consumer. AMQP covers this scenario by allowing queues to be named and to be bound to a "direct" exchange, which routes messages to queues by name.

  • One-to-many broadcasting (including multicast)

    In this scenario, the broadcasters publish messages to an AMQP "fanout" exchange, and subscribers create and subscribe to their own private AMQP queues, which forward published messages on to them, with one copy per queue.

    Multicast is addressed at the broker implementation level. AMQP clients need not be made aware of transport-level optimisations such as multicast: broker clusters are free to use whatever such low-level optimisations are available from configuration to configuration.

    Multiple optimisations are possible, since AMQP separates routing logic (exchanges and bindings) from message queueing (queues). Multicast relates only to routing from message publishers to message queues, and as a routing optimisation can be completely physically decoupled from AMQP's logical semantics. Further optimisations include physical separation of exchange from queue or even colocation of queue with a consumer application.

  • Transactional publication and acknowledgement

    AMQP supports transactional publication, where an AMQP channel is opened, transactional mode is selected, messages are published and acknowledged, and the transaction is committed. The system guarantees atomicity and durability properties for transactional message activity.

  • High-speed transient message flows

    Messages are individually flagged as transient or persistent in AMQP at the time of publication. By sending messages outside the transactional part of the protocol, in non-persistent mode, an application can achieve very high throughput and low latency.

  • Reliable persistent message delivery

    Messages that are published in persistent mode are logged to disk for durability. If the server is restarted, the system ensures that received persistent messages are not lost. The transactional part of the protocol provides the final piece of the puzzle, by allowing the server to communicate its definite receipt of a set of published messages.

  • Store-and-forward

    Store-and-forward is implemented by delivering messages marked as "persistent" to AMQP's durable queues. Published, persistent messages delivered to durable queues are stored on disk until a consumer retrieves and deletes them.

  • Wide area messaging

    Because routing logic is decoupled from message delivery, RabbitMQ is able to support extended broker clustering across WANs. Some of the approaches include AJAX-style access to AMQP resources, and spanning-tree pseudo-multicast implemented internally to a RabbitMQ cluster.

  • File streaming

    The AMQP protocol, version 0-8, supports file streaming by way of the de>filede> content class. Very large files are transferred to a temporary area on the broker before being routed to queues for download by consumers.

分享到:
评论

相关推荐

    rabbitmq-server-mac-standalone-3.5.3

    在这个场景中,我们关注的是RabbitMQ在Mac操作系统上的安装过程。 首先,我们需要了解的是`rabbitmq-server-mac-standalone-3.5.3.tar.gz`这个文件。这是一个针对Mac OS的独立RabbitMQ服务器的压缩包,版本为3.5.3...

    rabbitmq-server-windows-3.6.10.zip

    7. **消息模型**:RabbitMQ支持多种消息模型,如Direct、Fanout、Topic和Header,可以根据你的应用场景选择合适的模型。 8. **监控与日志**:RabbitMQ提供了丰富的监控工具和日志记录,可以帮助你了解系统的运行...

    rabbitmq-perf-test-2.7.0-bin.tar.gz

    在使用"rabbitmq-perf-test-2.7.0-bin"进行性能测试时,你可以调整以下参数来获取不同场景下的性能数据: - **并发数(Concurrency)**:设置同时运行的生产者或消费者数量。 - **消息大小(Message Size)**:定义...

    rabbitmq-server-3.6.5-1.noarch.zip

    此版本的RabbitMQ被打包成RPM(Red Hat Package Manager)格式,是Linux发行版如CentOS 7中常用的软件包管理方式。 RabbitMQ是一个开源的消息代理和队列服务器,基于AMQP(Advanced Message Queuing Protocol)协议...

    rabbitmq-server-generic-unix-2.7.0.tar.gz

    此外,RabbitMQ还支持多种语言的客户端库,方便在各种应用程序中集成和使用。 总之,RabbitMQ的安装和启动是一个相对简单的过程,但在实际部署中,还需要考虑日志管理、持久化、集群配置以及安全性等多个方面。理解...

    rabbitmq-java-client-bin-3.3.4.zip

    - **消息确认**:RabbitMQ支持两种确认模式,一种是自动确认,另一种是手动确认。手动确认可以确保消息被正确处理后才从队列中删除。 - **线程安全**:在多线程环境中,正确管理和关闭资源,避免Channel和Connection...

    最新版windows rabbitmq-server-3.8.5.zip

    总之,RabbitMQ Server 3.8.5在Windows环境下提供了稳定的消息队列服务,适用于各种需要高效、可靠消息传递的应用场景。用户可以通过安装`rabbitmq-server-3.8.5.exe`快速搭建本地环境,并利用其丰富的特性来优化...

    rabbitmq-server-3.9.10.rar

    RabbitMQ,作为一款广泛应用的消息中间件,是企业级系统中实现异步处理、解耦架构和高并发场景的重要工具。本篇文章将围绕RabbitMQ 3.9.10这一版本,深入探讨其核心特性、安装配置、工作原理以及实际应用。 一、...

    rabbitmq-server-windows-3.7.4

    - **工作模式**:RabbitMQ支持多种工作模式,如简单模式、发布/订阅模式、路由模式等,以适应不同的应用场景。 安全性: - **用户身份验证(Authentication)**:RabbitMQ支持多种身份验证机制,包括内置的用户...

    经典安全消息队列工具rabbitMQ rabbitmq-server-3.7.9

    3. **集群架构**:RabbitMQ支持集群部署,多个节点可以组成一个集群,共同提供服务。这样不仅可以提高可用性和容错性,还能实现负载均衡,提升系统的整体性能。在集群中,消息可以在节点间透明地复制和分发,确保...

    rabbitmq-server-3.6.10-1.el7.noarch.zip

    标题中的“rabbitmq-server-3.6.10-1.el7.noarch.zip”指的是RabbitMQ服务器的特定版本,3.6.10,针对的是Linux发行版 CentOS 7(因为“el7”通常代表“Enterprise Linux 7”,这是CentOS的一个版本)。这个文件是一...

    rabbitmq-server-3.8.3和otp_win64_22.0.zip

    7. **安全与权限控制**:RabbitMQ通过用户、虚拟主机和权限控制来保障系统的安全。你需要为不同的用户分配适当的访问权限。 8. **持久化**:RabbitMQ支持消息和队列的持久化,即使在服务器重启后也能恢复数据,这...

    rabbitmq-server-3.8.9.exe

    7. **RabbitMQ与编程语言集成**: - **客户端库**:RabbitMQ提供多种编程语言的客户端库,如Python的pika,Java的rabbitmq-client等,方便开发者进行集成。 8. **最佳实践**: - **合理设计消息模式**:根据业务...

    rabbitmq-server-3.8.9-1+erlang-23.1.1+socat-1.7.3.2

    在这个场景下,我们讨论的是在Linux CentOS7环境下安装RabbitMQ 3.8.9版本,以及它依赖的Erlang 23.1.1和socat 1.7.3.2的安装过程。 首先,Erlang是RabbitMQ的运行环境,它是一款强大的并行计算语言,特别适合构建...

    rabbitmq-server-windows-3.7.5.zip

    7. **管理界面**:RabbitMQ提供了一个Web管理界面,用户可以通过浏览器查看和管理节点、队列、交换机、绑定等资源,进行监控和故障排查。 安装“rabbitmq-server-windows-3.7.5.zip”步骤如下: 1. 下载并解压...

    rabbitmq-server windows安装包

    4. **配置文件**:默认配置文件位于安装目录下的`etc/rabbitmq/rabbitmq.config`,可以根据需要进行修改以适应不同的应用场景。 5. **插件管理**:RabbitMQ提供了一些预装的插件,如用于管理界面的`rabbitmq_...

    rabbitmq-c-0.8.0.zip

    4. **源码查看**:描述中提到可以直接查看源码,这为开发者提供了透明度,有助于学习和理解RabbitMQ-C的工作原理,以及如何在实际项目中有效地使用它。 5. **测试OK**:这意味着这个版本的库经过了测试,至少在某种...

    rabbitmq-server-3.7.18.zip

    - **多协议支持**:除了AMQP,RabbitMQ还支持STOMP、MQTT等多种消息协议,适应不同的应用场景。 - **高可用性**:通过镜像队列、复制和集群等机制,RabbitMQ可以实现高可用性和数据冗余,确保消息不会丢失。 - **...

    rabbitmq-server3.7版本和otp_win64安装包

    - 支持多种消息模式:Direct, Fanout, Topic, Header 等,适应不同应用场景。 总之,RabbitMQ 3.7 版本和 OTP_win64 的安装是部署消息中间件服务的基础步骤。理解这些基本概念和操作,有助于开发者更好地利用 ...

    rabbitmq-server-3.6.14-1.el7.noarch.rpm

    RabbitMQ还提供了多种消息模式,如直接、主题、头部和扇出,以适应不同应用场景的需求。此外,它还支持高可用性、集群、持久化和事务等特性,确保消息的可靠传输。 在实际开发中,RabbitMQ常被用作微服务架构中的...

Global site tag (gtag.js) - Google Analytics