GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #1367

New issue
Copy link
New issue
Copy link
Closed
Closed
Pubsub java client has pub/ack latency greater than a second#1367
Copy link
Assignees
jrheizelman

Description

@jrheizelman
jrheizelman
opened on Nov 2, 2016
Issue body actions

In 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.

Activity

Next
  1. mziccard commented on Nov 2, 2016

    @mziccard
    mziccard
    on Nov 2, 2016
    Contributor
    More actions

    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.

  2. jrheizelman commented on Nov 2, 2016

    @jrheizelman
    jrheizelman
    on Nov 2, 2016
    Author
    More actions

    Sure, we've been using it in a load testing framework here:

    https://github.com/GoogleCloudPlatform/pubsub/blob/master/load-test-framework/src/main/java/com/google/pubsub/clients/gcloud/CPSPublisherTask.java

    The call is:
    Stopwatch stopwatch = Stopwatch.createStarted();
    pubSub.publish(topic, messages);
    stopwatch.stop();

    We've been getting those numbers pretty consistently, even when there's only 1 thread sending the publish requests in at a time. In the same framework, a grpc client (if you want to see it, it's present in the grpc branch of the same repo) is getting 100-150ms pub/ack latency on the same test, same topic as the gcloud one.

  3. mziccard commented on Nov 2, 2016

    @mziccard
    mziccard
    on Nov 2, 2016
    Contributor
    More actions

    @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?

  4. jrheizelman commented on Nov 3, 2016

    @jrheizelman
    jrheizelman
    on Nov 3, 2016
    Author
    More actions

    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+

  5. jrheizelman
    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, 2016
  6. mziccard commented on Nov 3, 2016

    @mziccard
    mziccard
    on Nov 3, 2016
    Contributor
    More actions

    @jrheizelman can you share with us the command you are using to start the test? (so we can compare data on a common config)

  7. jrheizelman commented on Nov 3, 2016

    @jrheizelman
    jrheizelman
    on Nov 3, 2016
    Author
    More actions

    Closing this issue because from communication with the pubsub teams, this is a known issue that's being worked on.

  8. jrheizelman
    closed this as completedon Nov 3, 2016
  9. JustinBeckwith
    assigned
    jrheizelman
    on Feb 1, 2021
  10. github-actions
    added 2 commits that reference this issue on Jun 29, 2022

    chore: update java template (googleapis#1367) (googleapis#735)

    f4c4dbc

    chore: update java template (#1367) (#432)

    28044ee
  11. github-actions
    added a commit that references this issue on Sep 30, 2022

    deps: update dependency gcp-releasetool to v1.8.8 (#1367)

    e57822d
  12. suztomo
    added 3 commits that reference this issue on Feb 1, 2023

    chore: update java template (#1367) (#749)

    3ee9dc3

    chore: update java template (#1367) (#303)

    714c708

    chore: update java template (#1367) (#627)

    a3378ee
  13. 7 remaining items

  14. suztomo
    added a commit that references this issue on Mar 11, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    d7b47ee
  15. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(main): release 1.24.0 (#1367)

    7eaebbc
  16. suztomo
    added 3 commits that reference this issue on Mar 23, 2026

    chore: update java template (googleapis#1367) (googleapis#776)

    3a08fdb

    deps: update dependency org.springframework.data:spring-data-bom to v…

    a46db0f

    chore(main): release 2.13.3 (googleapis#1368)

    6f94217
  17. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    chore: update java template (#1367) (#846)

    7ffec29

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    0d9cb6c
  18. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    chore: update java template (#1367) (#846)

    c5af239

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    e42255d
  19. meltsufin
    added 4 commits that reference this issue on Apr 29, 2026

    chore: update java template (#1367) (#1045)

    7c9beab

    chore(main): release 1.120.23 (#1367)

    f1844eb

    chore: update java template (#1367) (#1045)

    39e5ebb

    chore(main): release 1.120.23 (#1367)

    8dd53dd
  20. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-bigtable…

    a97a481

    feat: Support Cloud Bigtable Changestream (googleapis#1569)

    99071f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jrheizelman
    jrheizelman

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.