spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

SnsNotificationMessage variant for EventBridge

Open frjonsen opened this issue 1 year ago • 1 comments

Type: Feature

Is your feature request related to a problem? Please describe. In our projects we've opted for EventBridge rather than SNS. EventBridge also has a wrapper, similar to that of SNS, but some different fields. Currently we are unwrapping this message to get the to the actual data in our own in-house framework, but feel that there could be a case for including a variant of the existing SnsNotificationMessage annotation, but for the EventBridge wrapper.

Describe the solution you'd like A new annotation, such as EventBridgeMessage, as well as a corresponding message converter, similar to SnsMessageConverter.

Describe alternatives you've considered Defining a model like record EventBridgeMessage<T>(T detail) { }.

frjonsen avatar Nov 11 '24 18:11 frjonsen

Hey @frjonsen, yep, I think this does make sense.

If you could provide a prototype PR with an integration test so we can have a clearer notion of how that looks that'd be great.

Thanks!

tomazfernandes avatar Nov 20 '24 16:11 tomazfernandes