Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

171
Visualizações
How to run a batch API operation for hundreds of URLs?

I’d like to run a batch operation where my script calls the Pagespeed Insights API for a list of URLs, returns the JSON and saves it to Dynamo. Each API response averages between 20-30 sec, so maybe 30 URLs max before my Lambda times out at 15 min max. I’ll eventually have the list of URLs at maybe 200+.

What’s the best approach/stack for this?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Have a Lambda function put the URLs into an SQS queue and another Lambda function that gets invoked for messages in the Queue. The second Lambda handles querying one URL and stores the result in DynamoDB. You also get retries in case something goes wrong by using SQS.

You can limit concurrent executions by setting a concurrency limit for the second Lambda function. You can also configure batching for the SQS integration and have each Lambda invocation handle up to 10 URLs.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda