Skip to content

Commit 6c4b677

Browse files
committed
Update RM
1 parent be86ce4 commit 6c4b677

File tree

3 files changed

+72
-16
lines changed

3 files changed

+72
-16
lines changed

.github/workflows/maven.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Java CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
- name: Build with Maven
17+
run: mvn -B package --file pom.xml

README.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,27 @@
77
<a href="https://www.xuxueli.com/xxl-mq/"><strong>-- Home Page --</strong></a>
88
<br>
99
<br>
10-
<a href="https://travis-ci.org/xuxueli/xxl-mq">
11-
<img src="https://travis-ci.org/xuxueli/xxl-mq.svg?branch=master" >
12-
</a>
13-
<a href="https://hub.docker.com/r/xuxueli/xxl-mq-admin/">
14-
<img src="https://img.shields.io/badge/docker-passing-brightgreen.svg" >
10+
<a href="https://github.com/xuxueli/xxl-mq/actions">
11+
<img src="https://github.com/xuxueli/xxl-mq/workflows/Java%20CI/badge.svg" >
1512
</a>
1613
<a href="https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-mq/">
1714
<img src="https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-mq/badge.svg" >
1815
</a>
19-
<a href="https://github.com/xuxueli/xxl-mq/releases">
20-
<img src="https://img.shields.io/github/release/xuxueli/xxl-mq.svg" >
21-
</a>
22-
<a href="http://www.gnu.org/licenses/gpl-3.0.html">
23-
<img src="https://img.shields.io/badge/license-GPLv3-blue.svg" >
24-
</a>
25-
<a href="https://www.xuxueli.com/page/donate.html">
16+
<a href="https://github.com/xuxueli/xxl-mq/releases">
17+
<img src="https://img.shields.io/github/release/xuxueli/xxl-mq.svg" >
18+
</a>
19+
<a href="https://github.com/xuxueli/xxl-mq/">
20+
<img src="https://img.shields.io/github/stars/xuxueli/xxl-mq" >
21+
</a>
22+
<a href="https://hub.docker.com/r/xuxueli/xxl-mq-admin/">
23+
<img src="https://img.shields.io/docker/pulls/xuxueli/xxl-mq-admin" >
24+
</a>
25+
<a href="http://www.gnu.org/licenses/gpl-3.0.html">
26+
<img src="https://img.shields.io/badge/license-GPLv3-blue.svg" >
27+
</a>
28+
<a href="https://www.xuxueli.com/page/donate.html">
2629
<img src="https://img.shields.io/badge/%24-donate-ff69b4.svg?style=flat-square" >
27-
</a>
30+
</a>
2831
</p>
2932
</p>
3033

doc/XXL-MQ官方文档.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
## 《分布式消息队列XXL-MQ》
22

3-
[![Build Status](https://travis-ci.org/xuxueli/xxl-mq.svg?branch=master)](https://travis-ci.org/xuxueli/xxl-mq)
4-
[![Docker Status](https://img.shields.io/badge/docker-passing-brightgreen.svg)](https://hub.docker.com/r/xuxueli/xxl-mq-admin/)
5-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-mq/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-mq/)
3+
[![Actions Status](https://github.com/xuxueli/xxl-mq/workflows/Java%20CI/badge.svg)](https://github.com/xuxueli/xxl-mq/actions)
4+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-mq-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-mq-client/)
65
[![GitHub release](https://img.shields.io/github/release/xuxueli/xxl-mq.svg)](https://github.com/xuxueli/xxl-mq/releases)
6+
[![GitHub stars](https://img.shields.io/github/stars/xuxueli/xxl-mq)](https://github.com/xuxueli/xxl-mq/)
7+
[![Docker pulls](https://img.shields.io/docker/pulls/xuxueli/xxl-mq-admin)](https://hub.docker.com/r/xuxueli/xxl-mq-admin/)
78
[![License](https://img.shields.io/badge/license-GPLv3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0.html)
89
[![donate](https://img.shields.io/badge/%24-donate-ff69b4.svg?style=flat-square)](https://www.xuxueli.com/page/donate.html)
910

@@ -630,6 +631,41 @@ transaction | 事务开关,开启消息事务性保证只会成功执行一次
630631
- 7、升级xxl-rpc、xxl-registry至较新版本,Broker注册发现服务做适配性优化;
631632

632633

634+
### Tmp
635+
636+
1、模型说明:
637+
- AppName:服务应用,一个应用包含多个 Consumer;
638+
- instance:uuid;
639+
- Topic:消息主题,逻辑消息队列;
640+
- Message:消息队列,物理消息队列;msgid + msgbody + topic + group + shardingId + status + retryCount + effectTime;
641+
- topic:关联 消息主题;
642+
- group:
643+
- shardingId:消费分片ID,限制0-1000之内;结合Consumer在线列表,匹配消费分片范围,实现并行分片消费消息;
644+
2、模块组成:
645+
- Broker:
646+
- Manage:提供 AccessToken、Topic、Message 管理能力;
647+
- Registry:提供 Consumer 注册、动态发现能力;消息分片消费时使用;
648+
- Broker Server:提供消息存储、读写能力;
649+
- OpenAPI:生产、批量查询、锁定、消费消息;(http+gson;借助 xxl-tool 实现通用 http-rpc 能力;)
650+
- Producer:
651+
- 功能:直连Broker;发起消息生产;
652+
- 性能:内存queue,批量异步推送;异常,写本地磁盘;(xxl-tool)
653+
- 要点:
654+
- 普通消息:指定 topic + group,生产单条消息,借助 shardingid 分片消费;
655+
- 广播消息:指定 topic,根据在线 group 列表生产多条消息;
656+
- Consumer:
657+
- 功能:查询消息,消费消息,回调消息;
658+
- 性能:批量查询、批量回调;
659+
- 要点:
660+
- 注册:
661+
- 写:instanceUUID : topic + group + shardingId
662+
- 读:instanceIndex / instanceNum;
663+
- 查询:分片查询:topic + group + 注册分片计算->消息分片范围;
664+
- 属性:
665+
- topic:绑定 Topic,只消费该topic的消息;
666+
- group:绑定 Topic Group,group 维度隔离,只消费该group下消息;同一 topic 支持绑定多group,可借助 group 实效消息广播;
667+
668+
633669
### TODO
634670
- 会考虑移除 mysql 强依赖的,迁移 jpa 进一步提升通用型。
635671
- producer消息,推送broker失败,先缓存本次文件;

0 commit comments

Comments
 (0)