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

Support for GCP PubSub Push Subscriptions #1012

Merged
merged 36 commits into from
Jan 26, 2024
Merged

Support for GCP PubSub Push Subscriptions #1012

merged 36 commits into from
Jan 26, 2024

Conversation

jeremyg484
Copy link
Contributor

@jeremyg484 jeremyg484 commented Jan 5, 2024

Support is added for GCP PubSub Push subscriptions.

Push subscription messages may be handled by methods annotated with the new @PushSubscription annotation.

Push messages are sent to the application via HTTP request from the PubSub service.

Beyond the different infrastructure used to ingest the messages, care has been taken to keep the semantics of @Subscription and @PushSubscription methods nearly identical.

Closes #946

@jeremyg484 jeremyg484 changed the title Support for GCP PubSub Push Messages Support for GCP PubSub Push Subscriptions Jan 5, 2024
@jeremyg484 jeremyg484 self-assigned this Jan 5, 2024
@jeremyg484 jeremyg484 added the type: enhancement New feature or request label Jan 5, 2024
@jeremyg484 jeremyg484 requested review from sdelamo and timyates January 8, 2024 16:58
@jeremyg484
Copy link
Contributor Author

I've got to make some minor changes to one of the tests because it keeps failing (only) in CI, but this is otherwise ready for review.

Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you address the low code coverage detected by sonar and other issues?

@timyates
Copy link
Contributor

timyates commented Jan 9, 2024

Should probably bump the version to 5.4.0-SNAPSHOT in gradle.properties (as these changes are for 5.4.0)

@jeremyg484 jeremyg484 requested a review from sdelamo January 24, 2024 13:41
@sdelamo
Copy link
Contributor

sdelamo commented Jan 25, 2024

@graemerocher @dstepanov please check this PR and see if you are ok with the usage of @Blockingannotation at a method level to allow users to write imperative code.

We played with this idea in security but we went a different direction.

Copy link
Contributor

@graemerocher graemerocher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, very nicely crafted PR 👍

Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

9 New issues
0 Security Hotspots
74.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@sdelamo sdelamo merged commit b1c4f98 into master Jan 26, 2024
11 checks passed
@sdelamo sdelamo deleted the push-subscriptions branch January 26, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Support push delivery in PubSub
5 participants