Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Cloud Pub/Sub ordering key #2863

Closed
LukBed opened this issue Apr 21, 2022 · 0 comments
Closed

Google Cloud Pub/Sub ordering key #2863

LukBed opened this issue Apr 21, 2022 · 0 comments
Milestone

Comments

@LukBed
Copy link
Contributor

LukBed commented Apr 21, 2022

Short description

GCP Pub/Sub supports ordering by optional ordering key - unfortunately it's not supported by Alpakka so far.

Details

PubSub message in Google Cloud REST API

{
  "data": string,
  "attributes": {
    string: string,
    ...
  },
  "messageId": string,
  "publishTime": string,
  "orderingKey": string
}

Alpaka model

final class PubSubMessage private (val data: Option[String],
                                   val attributes: Option[immutable.Map[String, String]],
                                   val messageId: String,
                                   val publishTime: Instant) 

Ordering can be implemented by adding orderingKey field to PubSubMessage.

@LukBed LukBed changed the title GCP Pub/Sub ordering Google Cloud Pub/Sub ordering key Apr 21, 2022
ennru pushed a commit that referenced this issue Apr 29, 2022
* Support ordering key for Pub/Sub
* backward compatibility for PubSubMessage.create Java API
@LukBed LukBed closed this as completed Apr 29, 2022
@ennru ennru added this to the 4.0.0 milestone Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants