I've read all this doc : https://cloud.google.com/pubsub/docs/publisher there are 3 examples:
- Publishing to topic
- Publishing with batch mode
- Publishing with retrying requests
I want to combine example 2 and 3 into single so publishing with batch mode works with retrying requests. How can I do this?
The object
pubsub_v1.PublisherClient
accepts both parameters as input for the construction.By including the two optional parameters
batch_settings
andclient_config
you can configure batch mode with retrying requests.