- 优点:
支持任意时间的延迟消息
任意延迟消息不到期不会删除
rocketmq原有的所有优点
- 缺点:
commitlog、comsumequeue文件空间浪费
不支持DLedger 模式
rocketmq原有的所有缺点
- 可配置项:
//任意延迟消息属性配置
//commitLog路径
anyDelayStorePathCommitLog =G:\\BaiduNetdiskWorkspace\\temp\\rocketmq\\dataDir\\dataDir\\anydelaycommitlog
//消息队列存储路径
anyDelaystorePathConsumeQueue =G:\\BaiduNetdiskWorkspace\\temp\\rocketmq\\dataDir\\dataDir\\anydelayconsumequeue
//任意延迟消息保留时间,指的是到达延迟时间后再经过多少天才删除
anyDelayfileReservedTime = 48
- 使用方法:
//注:跟message.setDelayTimeLevel();冲突
Message message = new Message("my_topic", "Hello RocketMQ".getBytes());
//指定11秒后到期
message.setDelayTimeStamp(11000);
//or 指定11秒后到期
//message.setFixTimeStamp(System.currentTimeMillis()+11000);
Apache RocketMQ is a distributed messaging and streaming platform with low latency, high performance and reliability, trillion-level capacity and flexible scalability.
It offers a variety of features:
- Messaging patterns including publish/subscribe, request/reply and streaming
- Financial grade transactional message
- Built-in fault tolerance and high availability configuration options base on DLedger
- A variety of cross language clients, such as Java, C/C++, Python, Go, Node.js
- Pluggable transport protocols, such as TCP, SSL, AIO
- Built-in message tracing capability, also support opentracing
- Versatile big-data and streaming ecosytem integration
- Message retroactivity by time or offset
- Reliable FIFO and strict ordered messaging in the same queue
- Efficient pull and push consumption model
- Million-level message accumulation capacity in a single queue
- Multiple messaging protocols like JMS and OpenMessaging
- Flexible distributed scale-out deployment architecture
- Lightning-fast batch message exchange system
- Various message filter mechanics such as SQL and Tag
- Docker images for isolated testing and cloud isolated clusters
- Feature-rich administrative dashboard for configuration, metrics and monitoring
- Authentication and authorization
- Free open source connectors, for both sources and sinks
- Mailing Lists: https://rocketmq.apache.org/about/contact/
- Home: https://rocketmq.apache.org
- Docs: https://rocketmq.apache.org/docs/quick-start/
- Issues: https://github.com/apache/rocketmq/issues
- Rips: https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal
- Ask: https://stackoverflow.com/questions/tagged/rocketmq
- Slack: https://rocketmq-invite-automation.herokuapp.com/
We always welcome new contributions, whether for trivial cleanups, big new features or other material rewards, more details see here.
Apache License, Version 2.0 Copyright (C) Apache Software Foundation
This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.
The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.
The following provides more details on the included cryptographic software:
This software uses Apache Commons Crypto (https://commons.apache.org/proper/commons-crypto/) to support authentication, and encryption and decryption of data sent across the network between services.