Git-Yang opened a new issue #3286:
URL: https://github.com/apache/rocketmq/issues/3286


   **Problem:**
   The delay queue currently schedules different queue threads through the 
Timer. Because the timer is a single-threaded scheduling and is executed 
sequentially and serially, the message delivery performance is poor.
   
![image](https://user-images.githubusercontent.com/30995057/130597283-16714bf1-06dd-490d-b52e-297106d833b3.png)
   
   The test results are as follows:
   - Simultaneously send messages with four delay levels
   
![image](https://user-images.githubusercontent.com/30995057/130596075-cb622076-bada-4f08-93fc-139c59117dd8.png)
   
   **Optimization:**
   - By replacing Timer with ScheduledExecutorService, all queue threads can 
send messages concurrently.
   The test results are as follows:
   - Simultaneously send messages with four delay levels
   
![image](https://user-images.githubusercontent.com/30995057/130596592-4f93616c-0c7c-4f9d-9170-662c98aee451.png)
   
   2. Please tell us about your environment:
   Linux / rocketmq 4.8
   
   3. Other information (e.g. detailed explanation, logs, related issues, 
suggestions how to fix, etc):
   - By replacing Timer with ScheduledExecutorService.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to