I'm servicing an application developed in Zend Framework 2 and I need, in that order:
- Send tasks to a queue in AWS SQS.
- Process queue tasks through an application command that will use AWS SES.
I found two interesting components to do both of these tasks: SlmQueueSqs and SlmMail . However, because I do not have much practice with ZF2, I'm getting a little bit to implement these features.
What's been done so far:
- The application sends e-mails in sync with the request; to avoid overloading the servers, I need to put the body of the email and the recipient in an SQS queue.
- I customized the application with the AWS keys in the
aws.local.php
file. - I have loaded the required modules:
Aws
,SlmQueue
andSlmQueueSqs
. - I created the command that will run every minute to pick up the elements that are in the queue and trigger the emails via SES, but still lack integration with SES itself.
The necessary documentation is in the above links - however, because I do not have much practice to work with the ZF2 service container, I have not been able to follow them strictly so far.