Replies: 1 comment 1 reply
-
same as #5458 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
nats.go有个js.Publish函数,是个同步接口,它可以确保消息按顺序到达nats-server,但执行得有些慢,我必须等待返回才能再次调用js.Publish,这样每秒只能发布大约1000条消息。
如果有类似js.PublishBatch(msgs []*Msg,...) (msgids []uint64, err error) 这样的函数,我就可以在一次调用中发送多个消息,且能保证顺序送到服务器,能提高tcp链路的吞吐量和传输效率。
另外:
我只是想缩短js.Publish的执行时间。
非常感谢!
Beta Was this translation helpful? Give feedback.
All reactions