ES
Personal projectBackend Microservice & Idempotency

Back-in-Stock Alerts

Backend notification microservice for restock alerts with strict idempotency and fault tolerance.

Back-in-Stock Alerts
Problem addressed

Lost e-commerce conversions from stockouts, duplicate notification emails triggered by webhook retries, and race conditions during high traffic bursts.

Solution

Partial unique index deduplication, atomic state machine transitions (open → processing → notified), real-time stock checks, and deterministic idempotency keys via Resend.

Tech Stack

Node.js 22 (node:http, node:sqlite, node:crypto), SQLite WAL mode, Docker, Resend API.

Architecture & Resilience:

Strict cryptographic idempotency • SQLite WAL persistence • Strict Content Security Policy & Basic Auth admin panel.