<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by M.AbuZar Chughtai on Medium]]></title>
        <description><![CDATA[Stories by M.AbuZar Chughtai on Medium]]></description>
        <link>https://medium.com/@chughtaimabuzar?source=rss-af4bd537cf3d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qjAfCSilwtm3Ardq</url>
            <title>Stories by M.AbuZar Chughtai on Medium</title>
            <link>https://medium.com/@chughtaimabuzar?source=rss-af4bd537cf3d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:20:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chughtaimabuzar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why app.UseForwardedHeaders() Is Essential in ASP.NET]]></title>
            <link>https://medium.com/@chughtaimabuzar/why-app-useforwardedheaders-is-essential-in-asp-net-f65db69a1609?source=rss-af4bd537cf3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f65db69a1609</guid>
            <category><![CDATA[http-protocol]]></category>
            <category><![CDATA[reverse-proxy]]></category>
            <category><![CDATA[rate-limiting]]></category>
            <dc:creator><![CDATA[M.AbuZar Chughtai]]></dc:creator>
            <pubDate>Sat, 27 Jun 2026 17:58:34 GMT</pubDate>
            <atom:updated>2026-06-27T17:58:34.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HiOcPi7mUHCqe8RGClFrBA.jpeg" /></figure><h3>Why app.UseForwardedHeaders() Is Essential in ASP.NET Core (Especially Behind Render, Nginx, or Cloudflare)</h3><p>If you’ve ever deployed an ASP.NET Core application to <strong>Render</strong>, <strong>Azure</strong>, <strong>AWS</strong>, <strong>Nginx</strong>, or <strong>Cloudflare</strong>, you’ve probably come across this line of code:</p><pre>app.UseForwardedHeaders();</pre><p>Most developers simply copy and paste it without giving it much thought.</p><p>But here’s the interesting part:</p><blockquote><em>Without this single middleware, your application might think </em><strong><em>every request is coming from your hosting provider instead of the real user.</em></strong></blockquote><p>That can break rate limiting, authentication, logging, HTTPS detection, redirects, and several other production features.</p><p>Let’s understand <strong>why this middleware exists</strong>, what problem it solves, and why it should appear near the beginning of your middleware pipeline.</p><h3>A Request Doesn’t Usually Reach Your Application Directly</h3><p>When we first learn ASP.NET Core, we imagine the request flow like this:</p><pre>User Browser<br>      │<br>      ▼<br>ASP.NET Core Application</pre><p>Simple enough.</p><p>Unfortunately, that’s almost never how production environments work.</p><p>A real production request often looks like this:</p><pre>User Browser<br>      │<br>      ▼<br>Cloudflare<br>      │<br>      ▼<br>Render Load Balancer<br>      │<br>      ▼<br>ASP.NET Core Application</pre><p>Or perhaps:</p><pre>User<br> │<br> ▼<br>Nginx<br> │<br> ▼<br>Kestrel</pre><p>Your application is no longer talking directly to the user.</p><p>Instead, it’s communicating with a <strong>reverse proxy</strong>.</p><h3>What Is a Reverse Proxy?</h3><p>Think of a company CEO.</p><p>Visitors don’t usually walk directly into the CEO’s office.</p><p>Instead:</p><pre>Visitor<br>   │<br>Receptionist<br>   │<br>CEO</pre><p>The receptionist greets visitors, verifies them, and then tells the CEO who is waiting outside.</p><p>The CEO never directly interacts with visitors.</p><p>The receptionist acts as a <strong>middleman</strong>.</p><p>A reverse proxy works in exactly the same way.</p><pre>User<br>   │<br>Reverse Proxy<br>   │<br>Your ASP.NET Core App</pre><p>The proxy accepts every incoming internet request and forwards it to your application.</p><h3>Why Do Cloud Providers Use Reverse Proxies?</h3><p>Almost every cloud hosting platform places a reverse proxy in front of your application.</p><p>Examples include:</p><ul><li>Render</li><li>Azure App Service</li><li>AWS Load Balancer</li><li>Cloudflare</li><li>Railway</li><li>DigitalOcean App Platform</li></ul><p>These proxies provide many production features:</p><ul><li>SSL/TLS termination</li><li>Load balancing</li><li>DDoS protection</li><li>Caching</li><li>Compression</li><li>Request routing</li><li>High availability</li></ul><p>Your application focuses on business logic while the proxy handles networking concerns.</p><h3>The Hidden Problem</h3><p>Imagine a user whose real IP address is:</p><pre>203.55.80.14</pre><p>The request travels like this:</p><pre>User (203.55.80.14)<br>        │<br>        ▼<br>Render Proxy (35.201.100.1)<br>        │<br>        ▼<br>ASP.NET Core Application</pre><p>Inside your application, you might access:</p><pre>HttpContext.Connection.RemoteIpAddress</pre><p>You expect:</p><pre>203.55.80.14</pre><p>Instead, ASP.NET Core sees:</p><pre>35.201.100.1</pre><p>Why?</p><p>Because the proxy — not the user’s browser — is the machine directly connected to your application.</p><h3>Why Is This a Big Deal?</h3><p>Let’s say you’ve implemented IP-based rate limiting.</p><p>Each user is allowed:</p><pre>100 requests per minute</pre><p>Without forwarded headers, every request appears to come from:</p><pre>35.201.100.1</pre><p>That means your application thinks this is happening:</p><pre>Ali    → 35.201.100.1<br>Ahmed  → 35.201.100.1<br>Sara   → 35.201.100.1<br>John   → 35.201.100.1</pre><p>From the application’s perspective, they’re all the <strong>same client</strong>.</p><p>Once the limit is reached:</p><ul><li>Ali gets blocked.</li><li>Ahmed gets blocked.</li><li>Sara gets blocked.</li><li>John gets blocked.</li></ul><p>Even though they’re completely different users.</p><p>Clearly, that’s not what we want.</p><h3>How Reverse Proxies Preserve the Original Client Information</h3><p>Fortunately, reverse proxies don’t simply forward requests.</p><p>They also attach additional HTTP headers containing information about the original client.</p><p>A typical request might include:</p><pre>X-Forwarded-For: 203.55.80.14<br>X-Forwarded-Proto: https</pre><p>These headers tell your application:</p><ul><li>The original client’s IP address</li><li>The original protocol (HTTP or HTTPS)</li></ul><h3>So What Does UseForwardedHeaders() Actually Do?</h3><p>This middleware reads those forwarded headers and updates ASP.NET Core’s request information.</p><p>Before the middleware:</p><pre>RemoteIpAddress<br>↓<br>35.201.100.1</pre><p>After the middleware:</p><pre>RemoteIpAddress<br>↓<br>203.55.80.14</pre><p>Now every middleware and controller receives the correct client IP instead of the proxy’s IP.</p><h3>What About HTTPS?</h3><p>This middleware doesn’t just fix IP addresses.</p><p>It also fixes the request protocol.</p><p>Suppose the user visits:</p><pre>https://myapp.com</pre><p>Cloudflare decrypts HTTPS and forwards the request to your application over HTTP.</p><p>Without forwarded headers:</p><pre>Request.Scheme</pre><p>returns:</p><pre>http</pre><p>Even though the user clearly connected over HTTPS.</p><p>After calling:</p><pre>app.UseForwardedHeaders();</pre><p>ASP.NET Core correctly reports:</p><pre>https</pre><h3>Why Does the Correct Protocol Matter?</h3><p>Many ASP.NET Core features rely on knowing whether the original request used HTTPS.</p><p>Examples include:</p><ul><li>Secure authentication cookies</li><li>UseHttpsRedirection()</li><li>URL generation</li><li>OAuth authentication</li><li>JWT callback URLs</li><li>Identity</li><li>Swagger</li><li>Redirects</li></ul><p>Without forwarded headers, these features may behave incorrectly in production.</p><h3>Why Should This Middleware Run Early?</h3><p>Middleware executes in order.</p><p>Imagine this pipeline:</p><pre>Rate Limiter<br>↓<br>Forwarded Headers<br>↓<br>Authentication</pre><p>The rate limiter runs first.</p><p>It only sees the proxy’s IP address.</p><p>Only afterward does the forwarded headers middleware fix the client information.</p><p>Unfortunately, by then it’s already too late.</p><p>The correct order is:</p><pre>Forwarded Headers<br>↓<br>Rate Limiter<br>↓<br>Authentication<br>↓<br>Authorization<br>↓<br>Endpoints</pre><p>Now every middleware receives the real client information.</p><h3>A Real Production Scenario</h3><p>Imagine your SaaS application launches a new feature.</p><p>Five thousand users log in within a few minutes.</p><p>Without forwarded headers:</p><pre>Every request<br>↓<br>Render Proxy IP<br>↓<br>Rate Limiter<br>↓<br>Everyone gets blocked</pre><p>With forwarded headers enabled:</p><pre>Ali   → 203.55.1.1<br>Sara  → 180.90.3.6<br>John  → 55.90.10.1<br>Ahmed → 91.14.7.9</pre><p>Each user is treated independently.</p><p>Exactly as intended.</p><h3>Common Forwarded Headers</h3><p>The middleware understands several commonly used headers.</p><p>HeaderPurposeX-Forwarded-ForOriginal client IPX-Forwarded-ProtoOriginal protocol (HTTP/HTTPS)X-Forwarded-HostOriginal host nameForwardedStandard RFC header containing client, protocol, and host information</p><h3>Can These Headers Be Trusted?</h3><p>Not automatically.</p><p>A malicious client could manually send:</p><pre>X-Forwarded-For: 1.2.3.4</pre><p>If your application blindly trusted every forwarded header, attackers could spoof their IP addresses.</p><p>That’s why ASP.NET Core is designed to trust forwarded headers <strong>only from known proxies or trusted networks</strong> that you explicitly configure.</p><p>This prevents clients from impersonating other IP addresses while still allowing legitimate reverse proxies to provide accurate request information.</p><h3>Key Takeaways</h3><p>app.UseForwardedHeaders() may look like a small line of code, but it plays a critical role in production deployments.</p><p>It ensures your application:</p><ul><li>Detects the real client IP address</li><li>Detects the original HTTPS request</li><li>Allows rate limiting to work correctly</li><li>Generates accurate URLs</li><li>Supports secure authentication</li><li>Works properly behind reverse proxies and load balancers</li></ul><p>If your ASP.NET Core application is deployed behind <strong>Render, Azure, AWS, Nginx, Cloudflare, or any reverse proxy</strong>, this middleware isn’t just recommended — it’s an essential part of a production-ready application.</p><h3>About the Author</h3><p><em>Full-Stack .NET Developer specializing in ASP.NET Core, Angular, and enterprise-grade system design.<br></em>Focused on building scalable, maintainable, and secure applications through architectural discipline.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f65db69a1609" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Is Not the Constraint, The Architectural Decisions Matters.]]></title>
            <link>https://medium.com/@chughtaimabuzar/angular-is-not-the-constraint-the-architectural-decisions-matters-70ed12b898e6?source=rss-af4bd537cf3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/70ed12b898e6</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[angular-cli]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[M.AbuZar Chughtai]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 17:35:46 GMT</pubDate>
            <atom:updated>2026-04-06T17:47:57.604Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ozJlHTE2HpZghZ5cuYx1sw.jpeg" /></figure><p>In modern frontend discussions, <strong>Angular</strong> is often labeled as <em>slow</em>, <em>complex</em>, or <em>over-engineered framework</em>.<br>But in most real-world cases, the problem is not the framework.</p><p>It’s the <strong>architecture behind it</strong>.</p><p>Blaming Angular is a convenient way to avoid confronting a deeper issue:<br><strong>poor engineering decisions at the system level</strong>.</p><h3>The Myth of a “Heavy Framework”</h3><p>Angular didn’t become widely adopted because it was simple.<br>It became dominant in enterprise environments because it enforces:</p><ul><li><strong>Structure</strong></li><li><strong>Consistency</strong></li><li><strong>Separation of concerns</strong></li></ul><p>What many developers call “complexity” is often just <strong>discipline they are not used to</strong>.</p><p>A framework that forces you to think in:</p><ul><li><strong>modules</strong></li><li><strong>services</strong></li><li><strong>components</strong></li><li><strong>data flow</strong></li></ul><blockquote><em>This may feel restrictive if your approach to development is <br>“</em><strong><em>feature-first, not system-first</em></strong><em>.”</em></blockquote><h3>Poor State Management Is the Silent Killer</h3><p>One of the biggest reasons Angular applications degrade over time is <strong>uncontrolled state</strong>.</p><p>Common patterns you’ll see:</p><ul><li>Data being stored in multiple places without a single source of truth</li><li>Services acting as both <strong>state containers</strong> and <strong>business logic layers</strong></li><li>Components directly mutating shared data</li></ul><p>The result?</p><ul><li>Inconsistent UI behavior</li><li>Hard to debug issues</li><li>Increasing fragility with every new feature</li></ul><blockquote><em>This is not Angular failing, it’s lack of </em><strong><em>state management strategy</em></strong><em>.</em></blockquote><p>A well-architected Angular application treats state as:</p><ul><li><strong>predictable</strong></li><li><strong>traceable</strong></li><li><strong>intentionally scoped</strong></li></ul><h3>Bad Component Boundaries Create Chaos</h3><p>Angular promotes <strong>component-based architecture </strong>but it does not enforce <em>good boundaries</em>.</p><p>Without discipline, developers create:</p><ul><li>Components that handle <strong>UI, business logic, and API calls</strong> all at once</li><li>Deeply nested components passing data through multiple layers</li><li>Tight coupling between unrelated parts of the UI</li></ul><p>This leads to:</p><ul><li>Code that cannot be reused</li><li>Changes that break unexpected areas</li><li>A system that becomes harder to reason about over time</li></ul><p>Strong architecture defines:</p><ul><li>What a component <strong>should do</strong></li><li>What it <strong>must never do</strong></li></ul><p>Clear boundaries are what make systems scalable not the framework itself.</p><h3>Services Are Not a Dumping Ground</h3><p>In many Angular codebases, <strong>services</strong> become a place where everything goes:</p><ul><li>API calls</li><li>State management</li><li>Business rules</li><li>Utility logic</li></ul><p>This turns services into <strong>unstructured monoliths</strong>, defeating the purpose of modular design.</p><p>Well designed services have:</p><ul><li><strong>Single responsibility</strong></li><li>Clear <strong>contracts</strong></li><li>Predictable <strong>behavior</strong></li></ul><p>They support the architecture they don’t replace it.</p><h3>Performance Issues Start With Design, Not Optimization</h3><p>When Angular apps feel slow, developers often jump to:</p><ul><li>Change detection tweaks</li><li>Lazy loading adjustments</li><li>Micro-optimizations</li></ul><p>But performance issues usually originate from:</p><ul><li>Excessive re-rendering due to poor state flow</li><li>Unnecessary API calls</li><li>Inefficient component structures</li></ul><p>Optimization cannot fix a system that was not designed properly.</p><blockquote><em>Architecture is the first performance strategy.</em></blockquote><h3>The Real Problem: Avoiding Architectural Thinking</h3><p>It’s easier to say:</p><blockquote><em>“Angular is too complex”</em></blockquote><p>Than to ask:</p><ul><li><strong>Where should this logic live?</strong></li><li><strong>What is the correct data flow?</strong></li><li><strong>What are the boundaries of this component?</strong></li><li><strong>How will this scale in 6 months?</strong></li></ul><p>These are <strong>architectural questions </strong>and avoiding them leads to systems that fail under growth.</p><h3>From Framework User to System Engineer</h3><p>The difference between struggling with Angular and mastering it is not experience with the framework.</p><p>It’s the shift from:</p><ul><li>Writing code → <strong>Designing systems</strong></li><li>Building features → <strong>Defining boundaries</strong></li><li>Solving problems → <strong>Preventing them</strong></li></ul><p>Angular rewards developers who:</p><ul><li>Respect <strong>structure</strong></li><li>Design with <strong>intent</strong></li><li>Think in <strong>systems, not screens</strong></li></ul><h3>Final Thought</h3><p>Angular is not slow. Angular is not the problem.</p><p>It is a framework that exposes:</p><ul><li>Weak <strong>architecture</strong></li><li>Undefined <strong>boundaries</strong></li><li>Undisciplined <strong>state management</strong></li></ul><blockquote>If your Angular application is difficult to maintain, scale, or debug the answer is not to switch frameworks. The answer is to <strong>think like an architect</strong>.</blockquote><h3>About the Author</h3><p><strong><em>Full-Stack .NET Developer</em></strong><em> specializing in </em><strong><em>ASP.NET Core</em></strong><em>, </em><strong><em>Angular</em></strong><em>, and </em><strong><em>enterprise system design</em></strong><em>.<br></em>Focused on building scalable, maintainable, and production-ready applications through strong architectural principles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70ed12b898e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Full-Stack Developers Must Think Like Architects]]></title>
            <link>https://medium.com/@chughtaimabuzar/why-full-stack-developers-must-think-like-architects-4a36298a990e?source=rss-af4bd537cf3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a36298a990e</guid>
            <dc:creator><![CDATA[M.AbuZar Chughtai]]></dc:creator>
            <pubDate>Fri, 26 Dec 2025 12:59:14 GMT</pubDate>
            <atom:updated>2025-12-26T12:59:14.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8QXlEzR_or6X4XEVohtRg.jpeg" /></figure><p>In today’s software industry, being a <strong>full-stack developer</strong> is no longer about knowing <em>both frontend and backend frameworks</em>.<br>It’s about understanding how <strong>systems behave, scale, and fail</strong>.</p><p>The developers who advance fastest in their careers are not those who write the most code, they are the ones who <strong>think like architects</strong>.</p><h3>Full-Stack Is Not About Tools, It’s About Systems</h3><p>Many developers define full-stack as:</p><ul><li>ASP.NET Core on the backend</li><li>Angular or React on the frontend</li><li>A database in the middle</li></ul><p>But in real-world enterprise systems, this definition is dangerously incomplete.</p><p>A true <strong>full-stack engineer</strong> understands:</p><ul><li>How backend decisions impact frontend performance.</li><li>How API contracts affect UI stability.</li><li>How authentication/authorization, and data flow connect end-to-end.</li></ul><p>This is architectural thinking. Whether the title says <em>Architect</em> or not.</p><h3>Code Without Architecture Creates Technical Debt</h3><p>One of the most common mistakes in modern applications is <strong>feature-driven development without architectural foresight</strong>.</p><p>This include:</p><ul><li>APIs tightly coupled to UI behavior</li><li>Angular apps breaking after backend changes</li><li>Authentication logic duplicated across layers</li><li>“Quick fixes” becoming permanent liabilities</li></ul><p>These problems don’t arise from bad developers, they arise from developers not thinking in layers, boundaries, and contracts.</p><p>Architecture is what protects your system from its own growth.</p><h3>Architects Think in Boundaries, Not Screens</h3><p>Senior engineers don’t ask:</p><blockquote>“How do I build this page?”</blockquote><p>They ask:</p><ul><li><strong>What responsibility belongs in the backend?</strong></li><li><strong>What logic should remain in the frontend?</strong></li><li><strong>Where should validation truly live?</strong></li><li><strong>What contracts must never break?</strong></li></ul><p>For example:</p><ul><li>A poorly designed API forces Angular to compensate with hacks.</li><li>A well-designed API makes the frontend simple, predictable, and resilient.</li></ul><p>This is why API design is a frontend concern and why architects understand both.</p><h3>Scalability Starts Before Performance Issues Appear</h3><p>Scalability is not:</p><ul><li>Adding servers</li><li>Using cloud services</li><li>Optimizing queries later</li></ul><p>Scalability begins with:</p><ul><li><strong>Stateless backend services</strong></li><li><strong>Clear separation of concerns</strong></li><li><strong>Predictable data models</strong></li><li><strong>Versioned APIs</strong></li></ul><p>A full-stack developer who thinks architecturally builds systems that age gracefully, not systems that panic under growth.</p><h3>Security Is an Architectural Responsibility</h3><p>Security is not a plugin or middleware.</p><p>Architectural thinkers understand:</p><ul><li><strong>Authentication vs Authorization</strong></li><li><strong>Claims-based access</strong></li><li><strong>Role leakage into UI logic</strong></li><li><strong>Trust boundaries between frontend and backend</strong></li></ul><p>When security is designed correctly:</p><ul><li>Angular becomes a consumer, not a decision-maker</li><li>The backend remains the final authority</li><li>Business rules are enforced consistently</li></ul><p>This mindset separates senior engineers from framework users.</p><h3>From Developer to Engineering Leader</h3><p>When full-stack developers adopt architectural thinking, something changes:</p><ul><li>They stop arguing about libraries</li><li>They start discussing trade-offs</li><li>They anticipate problems before they exist</li><li>They design systems others can extend safely</li></ul><p>This is how developers transition into:</p><ul><li><strong>Senior engineers</strong></li><li><strong>Technical leads</strong></li><li><strong>Solution architects</strong></li><li><strong>System owners</strong></li></ul><p>Not by titles — but by thinking.</p><h3>Final Thought</h3><p>Frameworks change.<br>Trends fade.<br>Tools evolve.</p><p>But <strong>architectural thinking compounds</strong>.</p><p>If you’re a full-stack developer aiming to grow beyond implementation and into <strong>impact</strong>, start asking architectural questions today — even if no one gave you the title yet.</p><p>That’s how industry experts are built.</p><h3>About the Author</h3><p><em>Full-Stack .NET Developer specializing in ASP.NET Core, Angular, and enterprise-grade system design.<br></em>Focused on building scalable, maintainable, and secure applications through architectural discipline.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a36298a990e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>