ShadowySpirits commented on issue #5184: URL: https://github.com/apache/rocketmq/issues/5184#issuecomment-1279906207
> The core of this optimization is to process dispatchRequest concurrently Maybe a better way is to make the dispatch method asynchronous. ```java public interface CommitLogDispatcher { CompletableFuture<DispatchResult> dispatch(final DispatchRequest request); } ``` So we don't need complex data structure to cache messages, we just need to handle futures. -- 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: dev-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org