Google Cloud Pub/Sub C++ Client  1.35.0
A C++ Client Library for Google Cloud Pub/Sub
Public Types | List of all members
google::cloud::pubsub::MaxPendingBytesOption Struct Reference

The maximum size for pending messages. More...

#include <google/cloud/pubsub/options.h>

Public Types

using Type = std::size_t
 

Detailed Description

The maximum size for pending messages.

After a publisher flushes a batch of messages the batch is (obviously) not received immediately by the service. While the batch remains pending it potentially consumes memory resources in the client (and/or the service).

Some applications may have constraints on the number of bytes and/or messages they can tolerate in this pending state, and may prefer to block or reject messages.

Definition at line 136 of file options.h.

Member Typedef Documentation

◆ Type

Definition at line 137 of file options.h.