cserwen commented on pull request #2290: URL: https://github.com/apache/rocketmq/pull/2290#issuecomment-835185037
@vongosling Based on this implementation, we have a better optimization plan. We can use [RocksDB](https://github.com/facebook/rocksdb) to save delayed messages.  **This has the following advantages:** - Delay messages can be stored separately from normal messages - Save the message with the delivery time as the key, which can serve as an index - When the message is delivered, the commitLog will not be read randomly - It is also necessary to record the messages that have been delivered to avoid the problem of repeated message delivery caused by master-slave switching **Of course it has the following disadvantages:** - RocksDB will be added to RocketMQ, resulting in an increase in RocketMQ dependency -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
