title: AWS SES: how to send a large amount of emails (> 10000 at a time)
body: <p>I am building an email sending service (lambda, Nodejs) which will send email to list of addresses at the same time.</p>
  
  <p>Because of requirement: each address receives a different email content, I cannot send multiple emails in one request, but one by one.</p>
  
  <pre><code>_array = ... // list of address + html content, &gt; 10000 records
  for (var i = 0; i &lt; _array.length; i++) {
      var params = {
          Destination: {/* required */
              ToAddresses: [_array[i].email]
          },
          Message: {/* required */
              Body: { /* required */
                  Html: {
                      Data: _array[i].html,
                      Charset: 'UTF-8'
                  },
              },
              Subject: { /* required */
                  Data: 'Your order detail', /* required */
                  Charset: 'UTF-8'
              }
          },
          Source: "mytestemail@email.com"
      }
  
      let send = await ses.sendEmail(params).promise();
  
  }
  </code></pre>
  
  <p>Currently, I don't have that big data to test, but I tested with 100-200 emails, it's working, and take 15-40 secs to complete sending emails. Mathematically, 10000 need more than 25 mins to complete the task. Therefore, this approach is not scalable, because of lambda timeout limit at 15 mins </p>
  
  <p>Any better approach or suggestion is appreciated.</p>
  
  <p>Edit:</p>
  
  <p>The solution from @Thales Minussi is awesome, I implemented it and it's working. I marked it as an answer, but still, I welcome all best practices address this issue. Share, learn, and code happily</p>