Skip to main content
avatarJay Patel

How Amazon S3 Works Under the Hood

10 min readBackend, Distributed Systems

A deep dive into how S3 actually stores 100 trillion objects — the metadata/data split, flat namespace, placement service, durability through erasure coding, versioning, multipart uploads, garbage collection, and consistency.

#s3#aws#object-storage#distributed-systems#storage-internals

Solving the Double-Booking Problem: Distributed Locking, Idempotency, and Redis

9 min readBackend, Distributed Systems

How I built a ticket booking system that handles concurrent seat reservations using Redis distributed locks, PostgreSQL pessimistic locking, idempotency keys, and compensating transactions.

#redis#distributed-locking#idempotency#concurrency#postgresql#nextjs#bullmq#typescript

Building an Agent-Driven UI with the A2UI Protocol

5 min readWeb Development, AI

How I implemented the A2UI (Agent-to-UI) protocol to let an AI agent dynamically generate interactive UIs using streaming messages, data binding, and declarative components.

#a2ui#nextjs#typescript#ai-agents#strands-sdk#react