Custom integrations and validation for messages in @SqsListener (3.x) #854
Replies: 3 comments 2 replies
-
Hey @jacek-kaczmarek, nice work there. A few comments: 1 and 2: extending 3: Take a look at the SqsListenerConfigurer interface, which also allows managing argument resolvers.
You can have deserialized messages in the Interceptor if you configure a SqsMessagingMessageConverter that can serialize it based on some information. For instance, You'll still receive the messages in batches though. Perhaps you can tell me a little bit more about your use case and we might be able to come up with a feature to support that in the framework.
Let me know if that makes sense to you. Thanks. |
Beta Was this translation helpful? Give feedback.
-
thanks for the chat and hints. We have tried this out in our repo and it seems to work. In the next days someone from our team will create a PR, most probably @maksym-telepchuk-ocado. Cheers. |
Beta Was this translation helpful? Give feedback.
-
we have submitted a PR a few days ago. The change works very well in all our cases. Could you please kindly take a look? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
first of all thank you for providing Spring Cloud AWS 3.0.
Context
I am a provider of a company's internal library for multiple users (hundreds) that uses @SqsListener (2.4, now moving to 3.x). We provide custom integrations (attribute passing from messages and payload checks). I would like to ask if the way I intend to integrate with SqsListener is correct / thinkable.
Questions
SqsListenerAnnotationBeanPostProcessor
is one of the (intended) ways to customise behaviour?Please advise.
Example custom integration
Beta Was this translation helpful? Give feedback.
All reactions