Skip to content

Feature: Expose pubsub PublishSettings along with ReceiveSettings  #1026

Open
@JamesBLewis

Description

@JamesBLewis

Motivation

The google pubsub client allows you to configure your receive and publish settings. via pubsub.ReceiveSettings and pubsub.PublishSettings. This sdk exposes the ReceiveSettings in its interface via the protocol Struct but does not give the same treatment to PublishSettings. I propose we correct this omission with a backwards compatible change exposing this and thus allowing the user to configure things like batch publishing of messages without effecting the existing behaviour of the client.

As PublishSettings are not currently configurable, all events are published with pubsub.DefaultPublishSettings. This means that even by exposing ReceiveSettings we would not impact any programs which rely upon not specifying PublishSettings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions