You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Rebus extensively and it works great! But one thing annoys me with our current solution. We have a few cases where we get messages from AWS and these don't conform to the format Rebus needs. So we need to have some sort of AWS Lambda function to transform all "native" AWS messages like S3.ObjectCreated into a "rebus-friendly" message. This seems like a bad work-around at best and it is hard to maintain....
An example of a message would be the S3EventNotification which looks like this:
I tried looking into hooking into the pipeline as discussed somewhere on stack-overflow, but I was getting in over my head and thought that I couldn't be the only person with this issue, so instead i started to think that I must be missing something obvious...
Is there any (good) way of getting these messages through Rebus?
The text was updated successfully, but these errors were encountered:
Yeah well, I can definitely see why this would be useful.
BUT Rebus requires the presence of the rbs2-msg-id header with the message's ID.
AND Rebus' SQS transport uses a special envelope for messages to cope with SQS' built-in limitation that messages can have no more than 10 headers.
So there's a couple of built-in obstacles that prevent you from using Rebus directly.
What you COULD do though, as you mention (and this would be my preferred solution), is to map the messages to something Rebus can work with in a Lambda function, or in a background thread in the process that hosts your Rebus endpoint.
We use Rebus extensively and it works great! But one thing annoys me with our current solution. We have a few cases where we get messages from AWS and these don't conform to the format Rebus needs. So we need to have some sort of AWS Lambda function to transform all "native" AWS messages like S3.ObjectCreated into a "rebus-friendly" message. This seems like a bad work-around at best and it is hard to maintain....
An example of a message would be the S3EventNotification which looks like this:
I tried looking into hooking into the pipeline as discussed somewhere on stack-overflow, but I was getting in over my head and thought that I couldn't be the only person with this issue, so instead i started to think that I must be missing something obvious...
Is there any (good) way of getting these messages through Rebus?
The text was updated successfully, but these errors were encountered: