I am New to AWS SQS and Laravel. By following the Laravel 5.2 documentation I have dispatched $customer_id(integer) to AWS SQS.
Controller Code:
$this->dispatch(new ExampleJob($customer_id));
ExampleJob Code: [app\jobs
public function handle(Mailer $mailer)
{
$mailer->send('Customer.Queue', ['Customer' => $this->customer], function ($m) {
// });
Whenever I POST data through controller, new message($customer_id) gets inserted in SQS Queue.That's good.
Now My problem is I am stuck in processing the messages in SQS queue. I need to process each customer ID and insert record to another Application(like NetSuite). How to process SQS queue running Queue Listener? Please Help me and correct me if I am wrong.