ExitStatelessness: externalizing application state1 / 9
Explanation

Make the request portable, not the instance permanent

How request context and external state stores make processing instances interchangeable while preserving correctness under concurrent requests, instance loss, and retries. · advanced

Statelessness means that processing a request correctly does not depend on an earlier request reaching the same instance. Each request carries authentication material, a resource identifier, operation inputs, and a stable retry key. The instance validates identity and authorization; identifiers supplied by a caller are not proof of permission.

This architecture updates a versioned resource whose large payload lives separately from its metadata. Instances share the same code, configuration, permissions, and external records. Session affinity is unnecessary: losing an instance loses work in progress, not the only copy of committed business state.

The arrows show logical request and storage calls, from caller to dependency; replies are omitted. Only application instances access the stores. These are not data-replication arrows, and this design has no direct store-to-store transfers.

request contextrequest contextconditional transactionsimmutable payloadscache lookups
UsersCaller: context and stable retry key
Elastic Load Balancing (ELB)Application Load Balancer
Amazon EC2Interchangeable processing instances
Amazon DynamoDBVersioned state and idempotency records
Amazon S3Immutable payload objects
Amazon ElastiCacheDisposable reference-data cache

1 / 7 The caller sends authentication material, a resource identifier, operation inputs, an expected resource version, and an idempotency key. Retries of the same logical operation retain that key.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.