Search
Lessons (32)
- S3: Store Files Safely
Use S3 for uploads, images, backups, and static files without making buckets public by accident. What S3 is …
- Design a File Storage Service
… Every upload goes through your app server . Ten people uploading 2 GB each ties up your servers for …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… StorageService) {} @Post('upload') @UseInterceptors(FileInterceptor('file')) upload( @UploadedFile( new ParseFilePipe({ validators: [ new MaxFileSizeValidator({ maxSize: 5 1024 1024 }), // 5 …
- Storage, Search and Location Queries
… ask to upload profile-photo.jpg API - Client: short-lived, scoped presigned upload URL Client - Object storage: upload …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
Take slow document processing out of the upload request: save the file, write down a job, put it …
- IAM: Who Can Do What
… For the book shop, a developer may read logs, the order API may upload receipts, and the email …
- Configuration, Secrets and Storage
… This is good for temporary files and bad for databases or user uploads. For data that must remain …
- Nginx Reverse Proxy & HTTPS
… location /uploads/ { alias /var/www/myapp/uploads/; expires 7d; } client max body size 10m; allow uploads up to …
- Serverless Architecture
… order.id }) }; }; ts // Triggered by an S3 upload: create a thumbnail export const handler = async (event: S3Event) = { for …
- Safe AWS Deployments with IaC and CI/CD
… Value: !Ref UploadsBucket CloudFormation generates a bucket name, avoiding a hard-coded naming collision. This template creates a …
- EC2, Storage and Auto Scaling
… Keep user uploads in S3 and shared session data in an appropriate external store. Otherwise a user's …
- Timeouts, Retries & Backpressure
… 5,000 uploads at once Your image service can process 100 images at a time . Suddenly 5,000 …
- Zero-Downtime Deploys & Rollbacks
… env" "$RELEASE/.env" ln -s "$BASE/shared/uploads" "$RELEASE/uploads" log "Installing and building (the live site is …
- IAM Deep Dive: Policy Evaluation, STS and Cross-Account Access
… s3: ", "Resource": ["arn:aws:s3:::shop-uploads", "arn:aws:s3:::shop-uploads/ "], "Condition": { "Bool": { "aws:SecureTransport": "true" }, "IpAddress …
- Testing, Preconditions, and Policy Checks
… Do not upload raw plan JSON to an untrusted service. Exercise: add a second test assertion for a …
- Providers and Your First AWS Resources
… If you uploaded objects, remove all object versions and delete markers before deleting a versioned bucket. This example …
- AWS: Start Here
… customers RDS PostgreSQL Store structured data with transactions Uploaded covers Private S3 bucket Store file bytes separately from …
- AWS Interview Questions: Clear Answers
… restoration. When would you choose S3? For files: uploads, images, backups, reports, and static assets. I would not …
- Meaningful Names
… L["Module / global scope"] -- very descriptive l1["MAX UPLOAD SIZE MB"] The wider a name travels, the more …
- Production Capstone and Interview Practice
… Destroy only dev application resources when finished, after confirming the plan and clearing any object versions you uploaded …
- CloudFront: Faster Websites and Safer File Delivery
… h1 <p Delivered through CloudFront.</p </body </html Upload it to the bucket root. Then configure CloudFront: 1 …
- Cost Optimization and the Well-Architected Framework
… when access patterns are unknown. - Abort incomplete multipart uploads; expire old versions. json { "Rules": [{ "ID": "tier-and-expire …
- AWS Data Pipelines in Plain Language
… cents, or 43.00 in the example currency. Upload the file to a dedicated S3 prefix such as …
- Serverless: Lambda and API Gateway
… safely. What serverless means here With Lambda, you upload a function. AWS runs it when an event arrives …
- CI/CD with GitHub Actions
… secrets.SSH KNOWN HOSTS }}" ~/.ssh/known hosts - name: Upload and activate env: TARGET: ${{ secrets.SSH USER }}@${{ secrets.SSH …
- Architecture Patterns at Scale
… Use serverless for bursty, short jobs (resize an image on upload). Walk through a failure The catalog goes …
- ACID, Transactions & Locks
… for a collision. - Do validation, API calls, file uploads and emails before BEGIN or after COMMIT . - Never wait …
- Monitoring, Logs & Backups
… plus point-in-time recovery for important data Uploaded files rsync or restic to object storage (S3, Backblaze …
- CI/CD Fundamentals and Pipeline Design
… Publish artifact Push image to a registry, upload a .tgz Store the tested build Seconds 9. Deploy to …
- Scaling, Load Balancing & Rate Limiting
… R[(Redis sessions)] A2 & B2 -- S3[(S3 file uploads)] end Rule: any server should be able to handle …
- Node.js and Express
… with a request ID on every line File uploads multer with size and type limits, store in object …
- Go Concurrency: Goroutines, Channels and Context
… Done() defer func() { <-sem }() // give the permit back upload(f) }() } wg.Wait() errgroup: WaitGroup plus errors plus cancellation …