Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add description for MaximumClientWritesPending #411

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

CendealChen
Copy link
Contributor

No description provided.

@CendealChen CendealChen changed the title add description for MaximumClientWritesPending(#410) add description for MaximumClientWritesPending Jun 19, 2024
@CendealChen
Copy link
Contributor Author

@thedevop
Copy link
Collaborator

thedevop commented Jul 21, 2024

You may also want to point it out that setting this value very low may result in lost messages for subscribers, especially for busy topics. One can monitor the metrics MessagesDropped when that occurred.

I do agree the current default is biased towards not dropping messages, perhaps 128 may be sufficient, which translates to a fixed memory cost of 1KB per connection. That makes it smaller than ClientNetReadBufferSize and ClientNetWriteBufferSize, both at 2KB.

@mochi-co mochi-co merged commit dc272d2 into mochi-mqtt:main Jul 30, 2024
@mochi-co
Copy link
Collaborator

Always happy to have more extensive documentation, thank you @CendealChen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants