Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
JavaDevTeam
notes
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
notes
/
RocketMQ
/
RocketMQ-入门.java
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
63 lines (49 loc) · 1.5 KB
master
Breadcrumbs
notes
/
RocketMQ
/
RocketMQ-入门.java
Copy path
Top
File metadata and controls
Code
Blame
63 lines (49 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
----------------------------
RocketMQ
-
入门
|
----------------------------
#
哈
,
没错
.
又是阿里爸爸的神器
'事务消费'
'顺序消费'
'消息重试'
'定时消息'
#
有两个版本
,
一个是开源的
.
一个是非开源的
#
是一款分布式
,
队列模型中间件
.
具有以下特点
能够严格保证消息顺序
能提供丰富的消息拉取模式
高效的订阅者水平扩展能力
实时的消息订阅机制
亿级消息堆积能力
#
在线文档
http
:
//www.boyunjian.com/javadoc/com.alibaba.rocketmq/rocketmq-client/3.1.3/_/com/alibaba/rocketmq/client/consumer/listener/MessageListenerOrderly.html
#
牛逼之处
强调集群
,
非单点产品
.
任意节点高可用
.
水平可扩展
海量消息堆积能力
,
消息堆积后
,
写入延迟低
支持上万队列
消息失败重试机制
消息可查询
开源社区活跃
成熟度
(
经过阿里双十一考验
)
#
缺点
RocketMQ
,
并不解决重复消费的问题
#
Metaq3
.0
版本改名
,
产品名称改为RocketMQ
#
RocketMQ
'不遵循任何规范'
,
这个是很叼的
,
仅仅是参考了各种规范与同类产品的设计思想
#
版本简介
1.
x和2
.
x
,
集群都是需要Zookeeper
3.
x后抛弃了zk
,
自己内部实现了一个name
server的组件
#
下载地址
https
:
//github.com/alibaba/RocketMQ/releases
#
端口详情
nameserver
9876
mqserver
10911
#
安装
(
Linux
)
1
,
从git上clone最新的的发布版
*
git
clone
git
@
github
.
com
:
alibaba
/
RocketMQ
.
git
2
,
进入目录
,
执行
install
.
sh
*
必须要有maven环境
,
才能进行编译
3
,
编译OK后
,
进入目录
,
获取到rocketmq
*
target
/
alibaba
-
rocketmq
-
broker
/
alibaba
-
rocketmq
#
如果懂这个流程
,
那windows安装也没多大区别
#
环境变量配置
export
ROCKETMQ_HOME
=/
usr
/
local
/
rocketmq
/
alibaba
-
rocketmq
export
PATH
=
$PATH
::
$ROCKETMQ_HOME
/
bin
#
命令管理
You can’t perform that action at this time.