-
Notifications
You must be signed in to change notification settings - Fork 215
Closed
Labels
api: pubsubIssues related to the googleapis/python-pubsub API.Issues related to the googleapis/python-pubsub API.
Description
The default publisher limit exceeded behavior is inconsistent between Python and Java libraries. Python "silently" skips messages while Java blocks. I'm migrating an application from Java to Python, and I was surprised the behavior to be different. How come? Both libraries use thread pools without async-io (or it's java equivalent). At the very least this inconsistency should be documented and emphasized.
- Python default settings:
python-pubsub/google/cloud/pubsub_v1/types.py
Line 130 in 265f410
limit_exceeded_behavior: LimitExceededBehavior = LimitExceededBehavior.IGNORE - Java default settings: https://github.com/googleapis/java-pubsub/blob/1c79ad7336f51ffd4e177be5c2f2a7de902b47b8/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L697
Metadata
Metadata
Assignees
Labels
api: pubsubIssues related to the googleapis/python-pubsub API.Issues related to the googleapis/python-pubsub API.