GeezerVison is showing github.com — Pubsub java client has pub/ack latency greater than a second · Issue #1367 · googleapis/google-cloud-java
Pubsub java client has pub/ack latency greater than a second #1367DescriptionIn comparative tests, the gcloud java client's publish latency is over 10x worse than a grpc client in java and the gcloud Python client. Even in relatively low-throughput tests, the client consistently takes 1-2 seconds for a publish call, when other tests are getting results on the order of tens of milliseconds. at the same message size/QPS. Activitymziccard commented on Nov 2, 2016
Even in relatively low-throughput tests, the client consistently takes 1-2 seconds for a publish call
This is very strange. Can you share the code you are using for testing? I just run a quick test and I am getting publish times in the range 50-60milliseconds, which is in line with other user reports. jrheizelman commented on Nov 2, 2016 mziccard commented on Nov 2, 2016 @jrheizelman can you clarify what you mean with "pub/ack latency"? Are you measuring the total time it takes for a message to be published and then received? jrheizelman commented on Nov 3, 2016 No, the time it takes for the publish call to complete (i.e. be acked by the server). In this case, the time elapsed on the stopwatch in the call in my above post, so the amount of time the publish call blocks for.
Similarly, when we tried using the async publish call to see where the slowdown was taking place, the future was returned almost immediately, as you'd expect, but then the get() call took a second+ changed the title [-]Pubsub java client has terrible pub/ack latency[/-] [+]Pubsub java client has pub/ack latency greater than a second[/+] on Nov 3, 2016mziccard commented on Nov 3, 2016 @jrheizelman can you share with us the command you are using to start the test? (so we can compare data on a common config) jrheizelman commented on Nov 3, 2016 Closing this issue because from communication with the pubsub teams, this is a known issue that's being worked on.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|