The problem of high bandwidth usage of nats service

29 views
Skip to first unread message

SeeYouAgain

unread,
Dec 10, 2024, 9:47:42 AM12/10/24
to nats
My nats is in cluster mode. I tried to traverse the for loop multiple times and start multiple instances. I used js.Publish to publish messages. The current message volume is not too much. The number of copies of each stream is 3, but it appears The problem of high bandwidth usage has been solved. The highest download reached 800 MB and the upload reached 600 MB. Is it a problem that I have created multiple instances? Or is it because the nats service needs to use so much bandwidth? The following is my program to initialize the connection and obtain nats.JetStreamContext
connection.go
main.go
Reply all
Reply to author
Forward
0 new messages