Class DeliveryConfig (1.7.0)

DeliveryConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The settings for a subscription's message delivery.

Attribute

NameDescription
delivery_requirement google.cloud.pubsublite_v1.types.Subscription.DeliveryConfig.DeliveryRequirement
The DeliveryRequirement for this subscription.

Classes

DeliveryRequirement

DeliveryRequirement(value)

When this subscription should send messages to subscribers relative to messages persistence in storage. For details, see Creating Lite subscriptions <https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions>__.

Values: DELIVERY_REQUIREMENT_UNSPECIFIED (0): Default value. This value is unused. DELIVER_IMMEDIATELY (1): The server does not wait for a published message to be successfully written to storage before delivering it to subscribers. DELIVER_AFTER_STORED (2): The server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.