Engineering Notes
Backend systems, distributed architecture, AI/NLP, and algorithms with production context and implementation tradeoffs.
Browse
Latest writing
Designing API Rate Limiters: Algorithms, Distributed Systems, and Production Trade-offs
A practical guide to rate-limiting algorithms, atomic Redis enforcement, failure modes, multi-region trade-offs, and the edge cases that shape production API design.
KaryaFlow: A Distributed Autonomous Task Orchestration System
An agentic control plane with deterministic scheduling and optional retrieval-augmented decision intelligence — designed so no task remains idle without system intervention, and so correctness never depends on LLM availability.
7 Dynamic Programming Patterns That Cover 90% of LC Hard
Pattern recognition is the real skill in DP — Knapsack, LIS, Grid, Interval, Tree, Bitmask, and Digit DP patterns broken down with examples.
SanketLens: A Multi-Tenant gRPC Observability Engine
A token-scoped ingestion gateway with gateway-enforced tenant labels, multi-level load shedding, and app-scoped opinionated reports — designed to remove repeated Prometheus / Grafana / Collector / Tempo / Loki setup from every backend codebase.
Keyword Extractor
Built a Bangla keyword extraction pipeline that ranks sentence tokens with transformer embeddings and produces keyword-text pairs for low-resource text generation research.
RBAC That Survives Real Tenants
What I learned comparing flat permission catalogs, per-request scope injection, tenant roles, module gates, and immediate revocation.
LeetCode #146 — LRU Cache: Every Way to Solve It
From brute force to the optimal O(1) doubly linked list + hashmap solution, with full Go implementation and complexity analysis.
ProcessCache: In-Process LRU Cache for Go
A bounded, thread-safe Go cache package that keeps Redis out of simple hot paths while preserving exact global LRU order, O(1) prefix-scoped eviction, TTL expiration, typed reads, stats, custom sizing, and clean shutdown.