Skip to content

Commit 73d184d

Browse files
authored
pubsub/gcppubsub: decrease max batch buffer size from 9MB to 8MB (#3698)
1 parent 28d6973 commit 73d184d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pubsub/gcppubsub/gcppubsub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ var sendBatcherOpts = &batcher.Options{
8686
MaxHandlers: 2,
8787
// The PubSub service limits the size of the request body in a single Publish RPC.
8888
// The limit is currently documented as "10MB (total size)" and "10MB (data field)" per message.
89-
// We are enforcing 9MiB to give ourselves some headroom for message attributes since those
89+
// We are enforcing 8MiB to give ourselves some headroom for message attributes since those
9090
// are currently not considered when computing the byte size of a message.
91-
MaxBatchByteSize: 9 * 1024 * 1024,
91+
MaxBatchByteSize: 8 * 1024 * 1024,
9292
}
9393

9494
var defaultRecvBatcherOpts = &batcher.Options{

0 commit comments

Comments
 (0)