I wonder whether there is a way to use only lambda function when I dispatched a job in laravel.
What I'm using is below.
In Laravel, I dispatch a job with SQS connection and job is in Laravel project. I searched how I can use SQS as a trigger for lambda function. And I found this document. ( Using AWS Lambda with Amazon SQS ) If I follow this document, I think I can run job in lambda. But In Laravel project, job will be run again. I want to use only lambda as a job.
How I can run only lambda function as a job?
No it is not possible. Sqs, database or redis are just for keeping the serialized(encoded etc) version of your laravel jobs. Here is the closest you may get;
aws php sdk or http request(guzzle, curl) to your sqs and let lambda to consume your sqs.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With