-
Notifications
You must be signed in to change notification settings - Fork 16
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
return the result from the publisher to the caller. #130
Conversation
For SNS and SQS a user would need to catch exceptions and for EventBridge they would need to check the response which is likely to be forgotten. For example we forgot to think about it. I believe EventBridge's If we decide to support the batch flow in the future we can handle that threw separate APIs. |
I agree to create a separate API for batch processing in the future. For returning the errormessage to the user with eventbridge, we check the response and throw a Message Exception. Let's call it For the other publishers SQS and SNS, we catch the exceptions and wrap it with the same |
I agree we should have the Yes to your logic for checking the response from event bridge and throw All publishers should throw |
src/AWS.Messaging/Publishers/EventBridge/EventBridgePublishResponse.cs
Outdated
Show resolved
Hide resolved
Changes are done. I did had some issues in GIT so the local history looks strange. But I assume you can squash it, so that does not causes issues. |
Thanks @robvanpamel. Don't worry about the commits, we will squash when we merge. The PR looks good to me. Let me get another team member on the team to review it. |
src/AWS.Messaging/Publishers/EventBridge/EventBridgePublishResponse.cs
Outdated
Show resolved
Hide resolved
src/AWS.Messaging/Publishers/EventBridge/EventBridgePublisher.cs
Outdated
Show resolved
Hide resolved
src/AWS.Messaging/Publishers/EventBridge/EventBridgePublishResponse.cs
Outdated
Show resolved
Hide resolved
Could you please rebase your PR on top of |
I rebased, added the change file and pointed to dev iso main |
Is any action from my side required to integrate this into the next release? |
@robvanpamel Your side is good. We just need schedule a release to include your change. Thanks for the PR. |
Version |
Description of changes:
When a message fails from eventbridge, the error result was not shown. This could lead to some issues in the future.
I adapted this so the errormessage and if required the errorcode can be retrieved
As the publisher is abstracted across EventBridge, SQS and SNS I had to make some sacrifices for naming; event <-> message.
Please have a look at it and provide some feedback so it can be adapted where you need it.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.