zf-fr / zfr-eb-worker

ZfrEbWorker is a thin layer to simplify the usage of SQS queues and Elastic Beanstalk environments
MIT License
8 stars 2 forks source link

How to handle AWS internal events #57

Closed wysow closed 6 years ago

wysow commented 6 years ago

Hello,

One more problem we are facing is how can we handle AWS internal events as they do not have the message attribute name, for example a S3 putObject event sent to a SQS queue...

Simple solution we are thinking of would be to handle the case in the WorkerMiddleware class to set a default name for the message somehow... Maybe using the simple default-message string but we think that there could be some edge cases doing this... What do you think ?

More complex solution could be to handle more accurately all kind of internal AWS events, extracting some information from the payload body...

danizord commented 6 years ago

Fixed by #59