¿Necesito manejar esto como:
ses.sendEmail( //body and other options }, function (err, data) { if (err) //parse error and attmept to retry });¿O se hará simplemente manejándolo como:
var ses = new aws.SES({apiVersion: apiVersion,maxRetries: 10});AFAIK aws sdk no maneja la limitación de velocidad. use este módulo de limitación de velocidad para envolver su ses.send así,
var RateLimiter = require('limiter').RateLimiter; // Allow 50 requests per second. Also understands // 'second', 'minute', 'day', or a number of milliseconds var limiter = new RateLimiter(50, 'second'); //huge number of requests for (var i = 0; i < 10000; i++) { //Throttle requests limiter.removeTokens(1, function (err) { if (err) throw err // err will only be set if we request more than the maximum number of // requests we set in the constructor // remainingRequests tells us how many additional requests could be sent // right this moment ses.sendEmail({ //body and other options }, function (err, data) { if (err) throw err //parse error and attempt to retry }) }); }