Skip to content
Discussion options

You must be logged in to vote

There is currently no API to process messages in batches, nor to ack them in batches. AFAIK, all Pub/Sub client libraries do the same thing, and the rationale includes:

  • Pub/Sub does not guarantee that any batch published into the service are preserved. That is, a sender could publish a batch and that could be delivered as multiple smaller batches (or vice-versa).
  • There is no additional billing for sending acks or nacks.
  • The general case (multiple ordering keys in a single batch, maybe with the same keys appearing more than once) requires breaking the batch per key and then reassembling.

I understand that there is an additional CPU cost involved in making more RPCs. Maybe we should consi…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@pantoss
Comment options

@coryan
Comment options

coryan Aug 23, 2022
Collaborator

@pantoss
Comment options

Answer selected by coryan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants