
AWS Lambda is a serverless compute service that runs code in response to events without provisioning or managing servers.
Key Features:
Whether you're building scheduled scrapers, processing crawl results, or orchestrating data pipelines, AWS Lambda provides scalable, cost-effective serverless compute.
Web scraping workflow
AWS Lambda runs application code without requiring you to operate a dedicated server. A scraping pipeline can use a function for bounded acquisition or processing tasks whose runtime and dependencies fit the chosen Lambda execution environment.
Consider it for discrete collection or processing steps in an AWS application. Keeping batches bounded makes timeouts and partial failures easier to manage than putting a whole site's crawl into one invocation.
Lambda is compute, not a managed scraper. Browser binaries and libraries need an appropriate package or container, and execution limits depend on the selected mode. Preserve progress externally, make writes safe to repeat and configure timeout, memory, network access and request pacing for the actual task.
AWS Lambda runs functions in response to events, including API requests, queues and changes in other AWS services. AWS operates the execution infrastructure; your application provides code, dependencies and configuration.
Sources (checked ): Lambda introduction
Standard Lambda invocations have a 15-minute (900-second) timeout. Managed Instances can allow up to 90 minutes for asynchronous invocations and event-source mappings other than Amazon MQ and Amazon DocumentDB. Memory, payload and concurrency quotas also depend on the execution mode and invocation type.
Sources (checked ): Lambda quotas
Yes. Lambda supports documented Python runtimes. Supply a handler and package the dependencies your function needs; runtime versions and package compatibility determine the deployment configuration.
Sources (checked ): Lambda Python runtimes
Lambda charges depend on the execution mode and resources used. Request counts, execution duration, memory and optional features affect the bill. Free allowances or account credits have limits, and connected AWS services can incur separate charges.
Sources (checked ): Lambda pricing
Yes, if you package a compatible browser, WebDriver, and runtime dependencies. A container image is one way to do this; verify browser startup and a representative page in the exact deployed image. Lambda container images must satisfy Lambda runtime requirements and operate with a read-only root filesystem; /tmp provides writable temporary storage. Configure browser temporary files accordingly, close sessions after each job, and persist results outside the invocation. Split long crawls into bounded jobs and check the resource and execution limits for the Lambda execution option you select.
Sources (checked ): Create a Lambda Event Function using a container image - AWS Lambda; Lambda quotas - AWS Lambda; Write your first Selenium script | Selenium
Check the execution report, duration, and browser logs before diagnosing an out-of-memory failure from a lost session. Lambda reports Max Memory Used, which AWS recommends using when sizing the function. For a long lazy-loaded list, test smaller batches and fewer simultaneous pages, close browsers explicitly, and save progress outside the invocation. If an authorized paginated data source exists, compare that route with expanding one page indefinitely. Adjust memory after measuring; investigate timeout and navigation failures separately.
Sources (checked ): Best practices for working with AWS Lambda Event Functions - AWS Lambda; Lambda quotas - AWS Lambda
Verified against the official AWS Lambda website and documentation.