Change MaximumClientWritesPending to 64#461
Conversation
|
@lneoe, for my use case (also large number of connections), I also set this to a much smaller value (128) than the default. However, many do not necessary use in environments with large number of connections. For those use cases, it is preferable to have a higher value to prevent possible loss of delivery. |
Yes, larger values can prevent message loss, but this consideration is primarily necessary in scenarios with very frequent message transmission and relatively slow consumption rates. |
|
Are you using the broker in embedded mode? if so, you can consult #453 for additional server settings that can reduce memory usage. |
Yes, I'm using embedded mode, and I've also configured it through setting my own mqtt.Options. The main reason for submitting this PR is considering that such a large default value isn't necessary for most scenarios, and we often use default settings because they typically represent a more universal solution. |
Adjust MaximumClientWritesPending default value: from 1024*8 to 64
Technical Impact