Reputation: 1760
We are experiencing very high latencies when we start a Google PubSub client. Messages are not arriving before minutes after the client initialization.
When looking in the Google Cloud console, we can indeed see that google.pubsub.v1.Subscriber.StreamingPull
calls have very high latencies (around 8 minutes):
Is it expected behaviour? If not, what could cause this issue?
Best regards
Upvotes: 4
Views: 1351
Reputation: 17206
The latency in the Google Cloud console would not be correlated with latency in receiving messages. The nature of a StreamingPull request is that it stays open for a long time, until shut down by a connection error or when a shutdown is initiated on the client. The latency in the console would indicate how long the connections are staying open, not how long it is taking to receive messages. This is also why the error rate is 100%.
Messages should be received quickly after starting up a subscriber, assuming there are messages available in the backlog to receive. There are many different things that could lead to delays in message delivery:
Upvotes: 1