Writing

  1. From a Broken Payment Flow to a Resilient Registration System: What I Learned Building Zeron Academy Payments from Scratch

    This article is a walkthrough of what happened when nobody watching, what broke, how I investigated it, how I redesigned the deployment process, why Razorpay became a problem, why I moved to Cashfree, and finally how I built a manual QR fallback so that payment-provider problems can no longer block student registrations.

    · 16 min read · AWS

  2. Closures vs Private in TypeScript: If We Have private and #, Why Do We Still Need Closures?

    When TypeScript gets converted to JavaScript, the private keyword is not preserved as a JavaScript runtime privacy mechanism.

    · 8 min read · Javascript

  3. AWS Lambda Just Got Faster: What the New Network Bandwidth Increase Means for Developers

    A function might need to download a large file from Amazon S3, call another service, process the response, and upload the result somewhere else. In such cases, giving the Lambda more CPU does not necessarily solve the problem if the function is spending most of its execution time waiting for data to move across the network.

    · 7 min read · AWS

  4. Crazy prototypes in JavaScript

    Managing prototypes manually feels heavy on your head because you are forced to write fragmented code across different lines, whereas classes let us group everything inside a single, clean block.

    · 2 min read · Javascript

  5. Rate Limiting in C# (Part 1): Fixed Window Algorithm Explained with Real-World Edge Cases

    Rate limiting is one of the most critical components in backend systems. It protects APIs from abuse, ensures fair usage, and stabilizes systems under load.

    · 3 min read · C#

  6. Understanding Encapsulation and Abstraction in C#: From Syntax to System Design

    When developers start learning object-oriented programming, concepts like encapsulation and abstraction often feel theoretical. But in real-world systems, these ideas are not just academic—they directly influence how maintainable, scalable, and reliable your code becomes.

    · 4 min read · C#

  7. Fixing Rate Limiting & Stability in a Serverless Next.js Admin Panel

    Learn how to implement rate limiting in a Next.js serverless environment, prevent memory leaks, and improve authentication security with a practical approach.

    · 2 min read · Component Design

  8. Architecture Behind thesagarpanwar.com (Real-World Backend + AWS System Design)

    Learn how a real-world website is built using Next.js, AWS, DynamoDB, WordPress (headless), and GraphQL. Full system architecture explained.

    · 3 min read · System Design