Give each request enough context
How processing workers use explicit input and external durable records to handle ingestion requests correctly without relying on memory or files retained from earlier invocations. · associate
A stateless worker can handle an ingestion request without remembering an earlier invocation. Its input must identify both the work and the data needed to perform it. For example, a message can carry a request ID, an S3 bucket and object key, an object version ID, and a transformation version.
The request need not contain the entire dataset. An explicit reference to durable data is enough, provided another worker can resolve it. Pinning the object and transformation versions prevents a retry from silently using changed inputs. A filename such as /tmp/previous-upload.csv is not enough: a replacement worker cannot rely on that earlier invocation's file.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.