Skip to content

Implement publishBatch and pullBatch methods #379

Closed

Description

@stephenplusplus

Activity

  1. changed the title [-]Implement publishBatch method[/-] [+]Implement publishBatch and pullBatch methods[/+] on Feb 3, 2015
  2. ryanseys commented on Feb 5, 2015

    @ryanseys
    Contributor

    According to #377 (comment) the suggested way of publishing and pulling messages is now through these methods on top of our existing publish and pull methods. We can just rework publish to support an array of messages and always use publishBatch API call behind the scenes. Similarly, pull right now returns 1 message so we can either use maxEvents: 1 by default to maintain backward compatibility or we can pull many messages, and document the new maxEvents option. Thoughts?

  3. added this to the Pub/Sub Alpha milestone on Feb 5, 2015
  4. stephenplusplus commented on Feb 9, 2015

    @stephenplusplus
    ContributorAuthor

    Just accepting an array to publish is a great idea. Same for pull; just accept an object with maxCount (instead of maxEvents?) that if absent, will default to 1/current behavior. 👍

    I'd like to promote the priority of this one, since it breaks every build (which is now 3 builds to account for each supported platform) - https://travis-ci.org/GoogleCloudPlatform/gcloud-node/jobs/50067298

  5. ryanseys commented on Feb 9, 2015

    @ryanseys
    Contributor

    SGTM, if you'd like to jump at this one, be my guest. I'm a little occupied this morning.

  6. stephenplusplus commented on Feb 9, 2015

    @stephenplusplus
    ContributorAuthor

    On it 👍

  7. 19 remaining items

  8. added a commit that references this issue on Feb 24, 2026
  9. added a commit that references this issue on Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🚨This issue needs some love.api: pubsubIssues related to the Pub/Sub API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions