Developer finds 96x cost gap in web scrapers traced to a single misconfigured memory field
A developer benchmarked all 11 of their published web-scraping Actors across 22 runs, calculating cost per 1,000 rows using platform billing data. The results showed a 96-fold spread in costs, ranging from $0.008 to $0.730 per thousand rows. Initially, the author attributed the gap to request efficiency — cheaper scrapers extracted multiple rows per request, while expensive ones made one request per row. However, a reader's question prompted a deeper check, revealing that the four most expensive Actors were all configured with 4,096 MB of memory, compared to 512 MB for the rest. Since the platform bills by memory multiplied by runtime, the eightfold RAM difference — apparently inherited from a template and never changed — was the primary driver of the cost disparity.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in