From 8954411ac5807e0a419eb745807467423fd83959 Mon Sep 17 00:00:00 2001 From: Robert van Gent Date: Thu, 9 Apr 2026 17:05:58 +0000 Subject: [PATCH] pubsub/gcppubsub: decrease max batch buffer size from 9MB to 8MB --- pubsub/gcppubsub/gcppubsub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubsub/gcppubsub/gcppubsub.go b/pubsub/gcppubsub/gcppubsub.go index b51a606851..c30879f0db 100644 --- a/pubsub/gcppubsub/gcppubsub.go +++ b/pubsub/gcppubsub/gcppubsub.go @@ -86,9 +86,9 @@ var sendBatcherOpts = &batcher.Options{ MaxHandlers: 2, // The PubSub service limits the size of the request body in a single Publish RPC. // The limit is currently documented as "10MB (total size)" and "10MB (data field)" per message. - // We are enforcing 9MiB to give ourselves some headroom for message attributes since those + // We are enforcing 8MiB to give ourselves some headroom for message attributes since those // are currently not considered when computing the byte size of a message. - MaxBatchByteSize: 9 * 1024 * 1024, + MaxBatchByteSize: 8 * 1024 * 1024, } var defaultRecvBatcherOpts = &batcher.Options{