-
Notifications
You must be signed in to change notification settings - Fork 21
Refactor SQS and SNS #14
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
Conversation
9e61426 to
f18b646
Compare
…nd all test passed
f18b646 to
0b64723
Compare
|
Hi @Mariscal6. Appreciate your work on this - I'm really keen to use this package for an upcoming project. I have a request if that's okay. At the moment it seems we can't specify the I have left a couple of small suggestions - I Hope you don't mind 😄 |
@georgedbarr Thanks for the feedback. Yes, I think adding it is useful. I don't know if it's worth doing it in this version. I tried to isolate myself as much as possible from the FIFO Queues, because I had the feeling that they were going to give me quite a headache. I'll add the changes that were suggested to me on discord and come back to this topic. Thank you! |
|
@georgedbarr added. But there is no test for this yet, keep that in mind. |
|
II think there is something wrong with the docker image or with my code but I cannot see the error. You can easily reproduce the error running cmd/sns-sqs/main.go. And setting a break point in the SQS Marshaller, you will see you get different messages formats. The first iteration works fine (I have seen it work up to three messages in a row). |
|
@m110 @roblaszczak Any feedback? Sorry for pushing, I don't want it to be forgotten :) |
|
The error I am encountering is due to the fact that the attributes when there is a subscription of sns, are shared in the body instead of the MessageAttributes They say that using the RawMessageDelivery option should fix it but it is not the case, at least for the image we are using for testing. Honestly, I have tried using localstack but the performance is worst than pafortin/goaws, so I would not change it. |
|
I'll look into it this week, thank you for contributing! |
|
What are the blockers for getting this merged? Is any help needed? |
| newConfig.Endpoint = aws.String(awsEndpoint) | ||
| } | ||
| return newConfig | ||
| func SetEndPoint(endpoint string) config.LoadOptionsFunc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| func SetEndPoint(endpoint string) config.LoadOptionsFunc { | |
| func EndpointOption(endpoint string) config.LoadOptionsFunc { |
Since its no longer setting anything
Also the package connection is a bit iffy on this one, maybe config, where other config related functionality could reside in the future? Nitpick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the review Nikola!
|
@m110 can we merge this? |
|
Thank you everyone for contributing here! |
I don't quite know how to handle the error if a message cannot be deleted.