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

168
Views
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 answers
Answer question

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 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!