提交 160b9070 编写于 作者: K kavin

Merge remote-tracking branch 'upstream/develop' into develop

......@@ -5,7 +5,6 @@
RocketMQ架构上主要分为四部分,如上图所示:
- Producer:消息发布的角色,支持分布式集群方式部署。Producer通过MQ的负载均衡模块选择相应的Broker集群队列进行消息投递,投递的过程支持快速失败并且低延迟。
- Consumer:消息消费的角色,支持分布式集群方式部署。支持以push推,pull拉两种模式对消息进行消费。同时也支持集群方式和广播方式的消费,它提供实时消息订阅机制,可以满足大多数用户的需求。
......
# 最佳实践(best practice)
# 最佳实践
## 1 生产者
......@@ -38,7 +38,7 @@
- **SLAVE_NOT_AVAILABLE**
消息发送成功,但是此时Slave不可用。此时消息已经进入Master服务器队列,只有Master服务器宕机,消息才会丢失。如果Broker服务器的角色是同步Master,即SYNC_MASTER(默认是异步Master服务器即ASYNC_MASTER),但没有配置slave Broker服务器,则将返回该状态——无Slave服务器可用。
消息发送成功,但是此时Slave不可用。如果Broker服务器的角色是同步Master,即SYNC_MASTER(默认是异步Master服务器即ASYNC_MASTER),但没有配置slave Broker服务器,则将返回该状态——无Slave服务器可用。
### 1.2 消息发送失败处理方式
......
......@@ -2,9 +2,9 @@
## 1 Transaction message status
There are three states for transactional message:
1. TransactionStatus.CommitTransaction: commit transaction,it means that allow consumers to consume this message.
2. TransactionStatus.RollbackTransaction: rollback transaction,it means that the message will be deleted and not allowed to consume.
3. TransactionStatus.Unknown: intermediate state,it means that MQ is needed to check back to determine the status.
- TransactionStatus.CommitTransaction: commit transaction,it means that allow consumers to consume this message.
- TransactionStatus.RollbackTransaction: rollback transaction,it means that the message will be deleted and not allowed to consume.
- TransactionStatus.Unknown: intermediate state,it means that MQ is needed to check back to determine the status.
## 2 Send transactional message example
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册