An object store keeps data as individually addressable objects with metadata. In cloud applications, it provides persistent storage outside disposable servers, so uploaded data survives if a server disappears. section 9.3.3
Listing 9.1 Stateful Design vs. Stateless Design
# Wrong (Stateful): Saves user upload to the fragile local filesystem
with open('profile.jpg', 'wb') as f:
f.write(user_upload)
# Right (Stateless): Saves user upload directly to an external S3 Bucket
import boto3
boto3.client('s3').put_object(Bucket='mybucket', Key='profile.jpg',
Body=user_upload)Compare saving an upload to a fragile local filesystem with sending it directly to an S3 bucket. section 9.3.3






