amranidev / micro-bus

Event driven microservices with laravel/lumen and AWS
MIT License
73 stars 11 forks source link

Support Laravel Queue UUID + Bugfix on the PublisherFifo facade #18

Closed ffeytons closed 2 years ago

ffeytons commented 2 years ago

Introduction Some parts of the Laravel Queue system rely on a uuid field which, in the case of the Laravel AWS SQS driver, is supposed to be included in the Body field of the AWS SQS data. In the Laravel Queue system, this UUID is generated by Laravel when the job is created and included in the Body field of the message sent to AWS SQS. In the case of micro-bus however, the AWS SQS Body is generated by AWS SNS and does not include the uuid field.

This can cause issues, for example with the database-uuids failed jobs driver of Laravel, that cannot store in the failed_jobs table the micro-bus jobs that have failed because they do not include the UUID.

Content of this Pull Request This Pull Request adds to micro-bus:

Additionally, this Pull Request fixes a bug on the PublisherFifo facade, that prevented this facade from working.

Environment Tested on Laravel 9.

amranidev commented 2 years ago

Nice one @ffeytons - Merging...