Trishnangshu Goswami
Writing

Essays & notes

Production debugging stories, frontend architecture decisions, and lessons from building real-time systems.

2026
2025

Shipping a Payment Flow Across Web and Native Without Losing Your Mind

Building a Razorpay payment flow that works across web, React Native, and WebView — with a postMessage bridge, HMAC verification, and webhook reconciliation.

PaymentsReact NativeArchitecture

Doctor Scheduling with Recurring Rules and Timezone Traps

RRule-based recurring availability, lazy slot generation with IST-UTC conversion, FOR UPDATE SKIP LOCKED for race-safe booking, and payment locking with cron-based cleanup.

BackendPostgreSQLSystem Design

Building a Real-Time Assessment Engine with WebSockets and State Machines

How we built a real-time clinical assessment engine using Socket.IO, Redis state machines, and config-driven scoring — with emergency short-circuits for risk detection.

ArchitectureWebSocketsSystem Design

Rendering 20 Message Types in a Chat UI Without Losing Your Mind

Rendering 20 message types in a single chat UI with a switch statement, the isLastMessage single-active-step pattern, and three hooks pushing to one Redux store.

FrontendReactSystem Design

What I Learned Deploying a Full Observability Stack for a Side Project

Deploying Prometheus, Grafana, Loki, Tempo, and Alertmanager for a Node.js backend. What actually caught production issues and what was overkill.

InfrastructureMonitoringSystem Design

Building a Retry-Aware API Client with Silent Token Refresh

Building an Axios-based HTTP client with linear backoff retries, a subscriber queue for silent token refresh, server-down detection via CustomEvents, and forced logout after repeated failures.

ArchitectureTypeScriptFrontend

OTP Auth, Rate Limiting, and the Token Refresh Dance

Phone-based OTP auth with crypto-safe generation, cookie-only JWT delivery, escalating rate limits across six tiers, and full refresh token rotation with bcrypt verification.

BackendSecurityNode.js
2022
2021