1
I am maintaining an application developed in Zend Framework 2 and accurate, in that order:
- Send jobs to a queue in AWS SQS.
- Process queue jobs via an application command that will use AWS SES.
I found two interesting components to do these two tasks: the Slmqueuesqs and the Slmmail. However, because I don’t have much practice with ZF2, I’m picking up a bit to implement these features.
What has been done so far:
- The application sends emails in sync with the request; to avoid overloading the servers, I need to place the body of the email and the recipient in an SQS queue.
- I customized the application with the AWS keys in the file
aws.local.php
. - I’ve had the necessary modules uploaded:
Aws
,SlmQueue
andSlmQueueSqs
. - I created the command that will run every minute to take the elements that are in the queue and fire the emails via SES, but still missing integration with the SES itself.
The necessary documentation is in the links above - however, because I haven’t had much practice working with the ZF2 service container, I haven’t been able to follow them to the letter so far.
I do not know if your question is valid because it is too vague and does not indicate a specific problem to solve.
– mlemos