Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

BatchingSettings default value for elementCountThreshold #543

@zhengzhu88

Description

@zhengzhu88

When creating a BatchingSettings object using the builder, if a user doesn't explicitly call builder.setElementCountThreshold(), the builder uses the default elementCountThreshold of 1. That means that the default behavior of the BatchingSettings object is to not batch at all. I spent a good 30 minutes trying to figure out my application wasn't batching messages even when I was using a BatchingSettings object. Can the default value be something greater than 1, just so that when the user tries to batch something, it doesn't look like the library is broken?

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions