Skip to main content
avatarJay Patel.

Lab notes

Writing

9 min readBackend, Distributed Systems

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

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
5 min readWeb Development, AI

Building an Agent-Driven UI with the A2UI Protocol

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