apache / rocketmq-client-go

Apache RocketMQ go client
https://rocketmq.apache.org/
Apache License 2.0
1.28k stars 408 forks source link

pull mode consume history message very slow #1134

Open UnderTreeTech opened 3 months ago

UnderTreeTech commented 3 months ago

First I produce 1k msg to broker, then I run the examples/consumer/pull/pull.go code with minor changes (only start one goroutine to consume), just like

for i := 0; i < 1; i++ {
        go func() {
            for {
                pull()
            }
        }()
    }

There the consume rate is very slow, every pull will block about 25s. But if modify the suspend param to false at https://github.com/apache/rocketmq-client-go/blob/f4875c1bbca66be050ec71359a8b447e0b63e743/consumer/pull_consumer.go#L445 the consume rate comes fast.

wupeaking commented 1 month ago

I have same issue.