RFC: logging: experimental batching writer by pongad · Pull Request #2910 · googleapis/google-cloud-java (original) (raw)

@pongad

Manually written batching implementation. Unlike GAX batching, it implements flushing and does not deal with partition keys.

If we're OK with where this is heading, we should make this work with batching settings (shouldn't be hard) and load-test before migrating things to it.

If not, this can serve as a starting point for a better GAX batching implementation.

In an experiment, I publish 1M messages of 300 bytes each. Using LoggingHandler gives me ~14,000 msg/s. BatchingWriter gives ~67,000, using similar BatchingSettings. Letting users configure these settings might be important though; I have observed ~300K msg/s given enough CPU and memory.

@googlebot googlebot added the cla: yes

This human has signed the Contributor License Agreement.

label

Feb 15, 2018

pongad

chingor13 pushed a commit that referenced this pull request

Feb 20, 2026

@cloud-java-bot

#2910)

suztomo pushed a commit that referenced this pull request

Mar 9, 2026

@renovate-bot @gcf-owl-bot

lqiu96 pushed a commit that referenced this pull request

Mar 20, 2026

@cloud-java-bot

#2910)

chingor13 pushed a commit that referenced this pull request

Mar 30, 2026

@BenWhitehead

meltsufin pushed a commit that referenced this pull request

May 8, 2026

@renovate-bot @mutianf

Co-authored-by: Mattie Fu mattiefu@google.com

This was referenced

May 28, 2026

blakeli0 added a commit that referenced this pull request

Jun 3, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})