Closed oryband closed 8 months ago
Hi @oryband , looking at the lines you refer to in the post, I see that currently:
Python:
limit_exceeded_behavior: LimitExceededBehavior = LimitExceededBehavior.IGNORE
Java:
.setFlowControlSettings(
FlowControlSettings.newBuilder()
.setLimitExceededBehavior(FlowController.LimitExceededBehavior.Ignore)
.build())
Where both languages have the behavior as ignore. Could you please let me know where you observe this deviation?
@oryband , Closing this issue as not reproducible due to the reasons mentioned in https://github.com/googleapis/python-pubsub/issues/1055#issuecomment-1979857702. Please feel free to re-open the issue if required.
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.