Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
¿Nodes js AWS sdk maneja automáticamente la limitación de velocidad y los reenlaces o necesito intentar volver a intentarlo después de analizar la respuesta?

¿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});
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

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 }) }); }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!