Two AWS designs for an image pipeline
A comparison of a Node.js worker you run yourself and a setup with presigned uploads plus Lambda. What each design includes, and how to choose.
Long-form articles on software engineering, product building, and lessons learned.
A comparison of a Node.js worker you run yourself and a setup with presigned uploads plus Lambda. What each design includes, and how to choose.
How Lambda receives messages from SQS, parses the nested S3 event, resizes the image, and writes to another bucket. Also batches, timeouts, and Sharp on Amazon Linux.
How an S3 ObjectCreated event can put a message on SQS. Covers the queue access policy, decoding object keys, and writing processed files to a different bucket.
How to generate a short-lived S3 PUT URL in Node.js so the browser uploads the file directly. Also CORS, matching signed headers, and why the URL is a secret.
SQS can deliver the same message more than once. A DynamoDB conditional update lets one worker claim the job. Also covers failed claims and reclaiming a stuck row after a crash.
If a message fails every time, SQS can move it to a dead-letter queue instead of retrying forever. Covers maxReceiveCount, retention, alarms, and redriving after a fix.

How to send a small job to Amazon SQS after the file is in S3. Covers SendMessage, long polling, visibility timeout, and deleting the message only after the worker finishes.

How a Node.js API writes the original file to Amazon S3 with PutObject and returns HTTP 202. Resizing happens later, not in the same request.

How LSM trees buffer writes in memory, flush sorted files, compact in the background, and trade read and space costs for high ingest – plus when a B-tree still fits better.

A practical guide to database indexes: what they are, how B-trees find rows, when composite and covering indexes help, and when another index only slows your writes.

JavaScript frees memory for you, but that does not mean you can ignore it. Learn how allocation, garbage collection, and weak references work – and how to write code that stays fast.

Web Workers API allows you to run JavaScript in background threads, separate from the main execution thread. This keeps your UI responsive, improves performance, and enables heavy tasks to run without blocking the user experience.

Every large-scale web application faces the same challenges: handling more users, managing growing amounts of data, maintaining low latency, and ensuring consistency. Learn the architectural patterns used to solve them.

Infrastructure as Code turns manual infrastructure management into repeatable, version-controlled automation. Explore Terraform, Ansible, Docker, Kubernetes, and the role each plays in modern DevOps.