2025-03-21 19:10:18 +08:00

35 lines
809 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# asinkj-test-mq
## 模块说明
1. rabbitmq: 普通消息、延迟队列
2. rocketmq普通消息、事务消息、延迟消息
3. kafka普通消息
## 使用方式
rocketmq
**注意由于rocketmq并没有自动创建topic的功能, 所以需要进入到rockerMQ文件路径中执行**
创建普通消息的topic
```sh
sh mqadmin updateTopic -n <nameserver_address> -t <topic_name> -c <cluster_name> -a +message.type=NORMAL
```
```shell
bin/mqadmin updatetopic -n localhost:9876 -t test-topic -c DefaultCluster
```
创建事务消息的topic
```sh
sh mqadmin updateTopic -n <nameserver_address> -t <topic_name> -c <cluster_name> -a +message.type=TRANSACTION
```
```shell
bin/mqadmin updatetopic -n localhost:9876 -t transaction-topic -c DefaultCluster -a +message.type=TRANSACTION
```