<?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 Saud Anwar on Medium]]></title>
        <description><![CDATA[Stories by Saud Anwar on Medium]]></description>
        <link>https://medium.com/@saudanwar17?source=rss-4fabe1f363d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9Nqlluv00EvD-nj0ElGjXQ.jpeg</url>
            <title>Stories by Saud Anwar on Medium</title>
            <link>https://medium.com/@saudanwar17?source=rss-4fabe1f363d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:08:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saudanwar17/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[Delievery Framework in System Design]]></title>
            <link>https://medium.com/@saudanwar17/delievery-framework-in-system-design-ae9f62eb6948?source=rss-4fabe1f363d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9f62eb6948</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <dc:creator><![CDATA[Saud Anwar]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 17:21:26 GMT</pubDate>
            <atom:updated>2026-09-22T17:21:26.300Z</atom:updated>
            <content:encoded><![CDATA[<p>System design interviews move fast. It’s important that you have a clear roadmap to help you think linearly and avoid scope creep. Delivery framework is a sequence of steps and timings recommended for your interviews.</p><p>Here’s the framework!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vBmd8vXl4L5IO3wskm-njg.png" /></figure><h3>Requirements</h3><p>The goal of the requirements section is to get a clear understanding of the system that you are being asked to design.</p><p><strong>1) Functional Requirements: </strong>Functional requirements are your “Users/Clients should be able to…” statements. These are the core features of your system and should be the first thing you discuss with your interviewer.</p><p>e.g if you are asked to design a platform like X, then functional requirements can be :</p><ul><li>Users should be able to post tweets</li><li>Users should be able to follow other users</li><li>Users should be able to see tweets from users they follow</li></ul><p><strong>2) Non-Functional Requirements: </strong>Non-functional requirements are statements about the system qualities that are important to your users.</p><p>e.g if you are asked to design a platform like X, then non-functional requirements can be :</p><ul><li>The system should be highly available, prioritizing availability over consistency</li><li>The system should be able to scale to support 10M+ DAU (Daily Active Users)</li><li>The system should be low latency, rendering feeds in under 200ms.</li></ul><h3><strong>Core Entities</strong></h3><p>Next you should take a moment to identify and list the core entities of your system. These are the core entities that your API will exchange and that your system will persist in a Data Model.</p><p>For our Twitter example, our core entities are rather simple:</p><ul><li>User</li><li>Tweet</li><li>Follow</li></ul><h3>API or System Interface</h3><p>Now you will define the contract between system and its users.You will use this contract to guide your high-level design and to ensure that you’re meeting the requirements you’ve identified.</p><p>you have to decide now — which protocol you should follow?</p><p><strong>REST (Representational State Transfer)</strong>: Uses HTTP verbs (GET, POST, PUT, DELETE) to perform CRUD operations on resources. This should be your default choice for most interviews.</p><p><strong>GraphQL</strong>: Allows clients to specify exactly what data they want to receive, avoiding over-fetching and under-fetching. Choose this when you have diverse clients with different data needs.</p><p><strong>RPC (Remote Procedure Call)</strong>: Action-oriented protocol (like gRPC) that’s faster than REST for service-to-service communication. Use for internal APIs when performance is critical.</p><p>For Twitter, we would choose REST and design our endpoints using our core entities as resources.</p><pre>POST /v1/tweets<br>body: {<br>  &quot;text&quot;: string<br>}<br><br>GET /v1/tweets/{tweetId} -&gt; Tweet<br><br>POST /v1/follows<br>body: {<br>  &quot;followee_id&quot;: string<br>}<br><br>GET /v1/feed -&gt; Tweet[]</pre><h3>Data Flow</h3><p>It is an optional step, you can use this to describe the high level sequence of actions or processes that the system performs on the inputs to produce the desired outputs.</p><h3>High Level Design</h3><p>Now we can start to design the architecture of our system, this consists of drawing boxes and arrows to represent the different components of your system and how they interact. Components are basic building blocks like servers, databases, caches, etc.</p><p>For our simple Twitter example, here is how you might build up your design, one endpoint at a time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O9UXzTbBNkiQfOlpyEY-8g.png" /><figcaption>For our simple Twitter example, here is how you might build up your design, one endpoint at a time</figcaption></figure><h3>Deep Dives</h3><p>Now that you have a high-level design in place you’re going to use the remaining 10 or so minutes of the interview to harden your design by:</p><ul><li>Ensuring it meets all of your non-functional requirements</li><li>Addressing edge cases</li><li>Identifying and addressing issues and bottlenecks</li><li>Improving the design based on probes from your interviewer.</li></ul><p>So for example, one of our non-functional requirements for Twitter was that our system needs to scale to &gt;100M DAU. We could then lead a discussion oriented around horizontal scaling, the introduction of caches, and database sharding — updating our design as we go.</p><p>Thanks for being till here!<br>Saud Anwar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9f62eb6948" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Load Balancing]]></title>
            <link>https://medium.com/@saudanwar17/load-balancing-c40fb22e34f9?source=rss-4fabe1f363d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c40fb22e34f9</guid>
            <category><![CDATA[load-balancing]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[Saud Anwar]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 05:13:51 GMT</pubDate>
            <atom:updated>2025-11-07T05:13:51.012Z</atom:updated>
            <content:encoded><![CDATA[<p>It helps to spread the traffic across a cluster of servers to improve responsiveness and availability of applications, websites or databases.</p><p>LB also keeps track of the status of all the resources while distributing requests. If a server is not available to take new requests or is not responding or has elevated error rate, LB will stop sending traffic to such a server.</p><p><strong>How it improves responsiveness and availability?</strong></p><p>Typically a load balancer sits between the client and the server accepting incoming network and application traffic and distributing the traffic across multiple backend servers using various algorithms. By balancing application requests across multiple servers, a load balancer reduces individual server load and prevents any one application server from becoming a single point of failure, thus improving overall application availability and responsiveness.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZLWIoSMxSNKro9Bj.png" /></figure><p>To utilise the full scalability and redundancy we can use LB at each layer of the system :</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0z8MEn1RVHdA7Vhf.png" /></figure><p>LB between user and webserver, webserver and application server, application and db server</p><p><strong>How does the load balancer choose the backend server?</strong></p><p>Load balancers consider two factors before forwarding a request to a backend server, first is whether the server is actually responding and then use a pre-configured algorithm to select one from the set of healthy servers.</p><p>There is a variety of load balancing methods, which use different algorithms for different needs.</p><ul><li><strong>Least Connection Method</strong> — This method directs traffic to the server with the fewest active connections.</li><li><strong>Least Response Time Method </strong>— This algorithm directs traffic to the server with the fewest active connections and the lowest average response time.</li><li><strong>Least Bandwidth Method </strong>— This method selects the server that is currently serving the least amount of traffic measured in megabits per second (Mbps).</li><li><strong>Round Robin Method </strong>— This method sends each new request to the next server. When it reaches the end of the list, it starts over at the beginning. It is most useful when the servers are of equal specification and there are not many persistent connections. If servers are of different specification then we use weighted round robin.</li><li><strong>IP Hash</strong> — Under this method, a hash of the IP address of the client is calculated to redirect the request to a server.</li></ul><p><strong>Redundant Load Balancers</strong></p><p>The load balancer can be a single point of failure; to overcome this, a second load balancer can be connected to the first to form a cluster. Each LB monitors the health of the other and, since both of them are equally capable of serving traffic and failure detection.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VCdH44JPEE6AN5C5.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c40fb22e34f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling and its types]]></title>
            <link>https://medium.com/@saudanwar17/scaling-and-its-types-c48a708419a8?source=rss-4fabe1f363d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c48a708419a8</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[scaling-up]]></category>
            <category><![CDATA[trends]]></category>
            <category><![CDATA[scaling]]></category>
            <dc:creator><![CDATA[Saud Anwar]]></dc:creator>
            <pubDate>Wed, 29 Oct 2025 17:32:06 GMT</pubDate>
            <atom:updated>2025-10-29T17:32:06.562Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Scaling </strong>means increasing a system’s capacity to handle more load — either by adding stronger machines (vertical scaling) or more machines (horizontal scaling).</p><p>You can relate it with the example of a mobile phone, when you buy a cheap mobile with less RAM and storage then your mobile hangs by using heavy games or a lot of applications simultaneously. The same happens with the EC2 instance, when a lot of traffic comes at the same time then it also starts choking, that time we need to scale our system.</p><p><strong>Why do we need scaling?</strong></p><ul><li>Handle increased user load and traffic.</li><li>Ensure high availability and reliability.</li><li>Maintain performance and response time.</li><li>Support growing data and storage needs.</li></ul><p>The following are two ways to do scaling:</p><ol><li><strong>Vertical Scaling</strong></li><li><strong>Horizontal Scaling</strong></li></ol><h3><strong>Vertical Scaling</strong></h3><p>It refers to the process of increasing the capacity or capabilities of an individual hardware or software component within a system.</p><p>Vertical scaling simply means the process of adding more power (CPU, RAM, etc.) to your servers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQJldRJYQ-a8JE47vTiRNQ.png" /></figure><p>We upgrade the same system rather than adding more systems. Add more power to your machine by adding better processors, increasing RAM, or other power-increasing adjustments.</p><p>Good example of vertical scaling is MySQL as it allows for an easy<br>way to scale vertically by switching from smaller to bigger machines.</p><p><strong>Advantages of Vertical Scaling</strong></p><ul><li>A server’s performance and ability to manage incoming requests can both be enhanced by upgrading its hardware.</li><li>Upgrading a single node is usually the focus of vertical scaling, which might be simpler than maintaining several nodes.</li></ul><p><strong>Disadvantages of Vertical Scaling</strong></p><ul><li>Vertical scaling is not possible beyond a point. We can’t infinitely increase the specs of the machine. We will hit a bottleneck, and beyond that, we can’t increase the specs.</li><li>One server still receives all incoming requests thus increasing the possibility of downtime in the event of a server failure.</li></ul><h3><strong>Horizontal Scaling</strong></h3><p>As we discussed vertical scaling is not possible beyond a point,so the solution to this is to add more machines and distribute the incoming load. It is called horizontal scaling.</p><p>Horizontal scaling allows you to scale by adding more servers into your pool of resources.</p><p><em>e.g An employee is working for a company with x amount of salary per month but you can increase his salary to 50% or 75% so that he can work more but you know that he has a limitation he can’t handle all the work alone so the solution is to hire a new employee for your work to distribute the work and reduce load one one individual and now even more work can be done now. So when he was working alone and you give him hike of 50% or 75% that was vertical scaling and when you hired one more employee is example of horizontal scaling.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Guw_4t4i4pwf3-rNnLmDA.png" /></figure><p>Good examples of horizontal scaling are <strong>Cassandra</strong> and <strong>MongoDB</strong> as they both provide an easy way to scale horizontally by adding more machines to meet growing needs.</p><p><strong>Advantages of Horizontal Scaling</strong></p><ul><li>More nodes or instances can handle a larger number of incoming requests.</li><li>By distributing the load over several nodes or instances, it is less likely that any one server will get overloaded.</li></ul><p><strong>Disadvantages of Horizontal Scaling</strong></p><ul><li>Difficult to maintain strong consistency across distributed nodes. Requires synchronization, messaging, or replication between nodes.</li><li>Issues can be spread across nodes, making root-cause analysis tricky.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c48a708419a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Latency, Throughput And Availability]]></title>
            <link>https://medium.com/@saudanwar17/latency-throughput-and-availability-966b2f1b5b75?source=rss-4fabe1f363d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/966b2f1b5b75</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[availability]]></category>
            <category><![CDATA[throughput]]></category>
            <category><![CDATA[latency]]></category>
            <dc:creator><![CDATA[Saud Anwar]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 18:14:42 GMT</pubDate>
            <atom:updated>2025-10-22T18:14:42.829Z</atom:updated>
            <content:encoded><![CDATA[<p>In system design, <strong>latency</strong> (how fast), <strong>throughput</strong> (how much data), and <strong>availability</strong> (how often it’s working) are crucial. They are the core pillars that determine your system’s performance. Balancing them correctly is key to building a responsive, scalable, and reliable service that users can depend on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1E_BJH8cOUJ1jV2RcYjsw.png" /></figure><p>So let’s start exploring more about these terms one by one:</p><h3><strong>Latency</strong></h3><p>Latency is the time taken for a single request to travel from the client to the server and back (or a single unit of work to complete). It is usually measured in milliseconds (ms).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*9pU294uRSQ3RZFtf.jpg" /><figcaption>It combines a number of delays — Response times, transmission, and processing time.</figcaption></figure><p>In very simple words if a website is taking very less to load it has low latency that is what we want in our system.</p><p>Let me give you example of some latencies:</p><ul><li>Reading 1 MB from RAM: 0.25 ms</li><li>Reading 1 MB from SSD: 1 ms</li><li>Reading 1 MB from HDD: 20 ms</li></ul><h3><strong>Throughput</strong></h3><p>Throughput is the number of successful requests or units of work the system can handle per second. It is typically measured in requests per second (RPS) or transactions per second (TPS).</p><blockquote>e.g if a server can handle only 72000 request in an hour then thorughput will be 72000/3600 = 2(RPS).</blockquote><p>Here are a few contexts in which throughput is commonly used:</p><ul><li><strong>Network Throughput:</strong> How much data can pass through a network (like Wi-Fi or internet) in one second.</li><li><strong>Disk Throughput:</strong> How fast your hard drive or SSD can read (open) or write (save) files.</li><li><strong>Processing Throughput:</strong> How many tasks or calculations your computer’s processor (CPU) can complete per second.</li></ul><p>So till now, ideal case for us is a system with high throughput and low latency.</p><h3><strong>Availability</strong></h3><p>A system‘s readiness and accessibility to users at any given moment is referred to as availability.</p><p><strong><em>How can we measure availability ?</em></strong></p><blockquote><em>Availability (%) = ((Uptime) / (Uptime + Downtime)) * 100;</em></blockquote><ul><li><strong>Uptime</strong>: The total time a system is operational and functioning as expected.</li><li><strong>Downtime</strong>: The total time the system is unavailable due to failures, maintenance, or other issues.</li></ul><p><strong>Conclusion: </strong>We want a system with high throughput, high availability and low latency.</p><p>This is second part of our series , in previous part we discussed about the importance of system design however going through the series you will realise the real importance of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=966b2f1b5b75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why System Design is important?]]></title>
            <link>https://medium.com/@saudanwar17/why-system-design-is-important-9e2f1f688156?source=rss-4fabe1f363d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e2f1f688156</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[system-design-course]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[Saud Anwar]]></dc:creator>
            <pubDate>Mon, 20 Oct 2025 10:42:22 GMT</pubDate>
            <atom:updated>2025-10-20T10:42:22.911Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Interviews at Big MNCs</strong></h3><p>System design is an important skill in the tech industry, especially for freshers aiming to grow. <strong>Top MNCs like Google, Uber and Amazon</strong> emphasize system design during interviews, with <strong>40% of recruiters</strong> prioritizing it.</p><h3><strong>Only for interviews?</strong></h3><p>Apart from your interviews, it helps in the development of scalable and effective solutions to address practical issues such as managing millions of users or ensuring reliable performance. Gaining knowledge of system design makes you stand out and gets you ready for significant positions in software development.</p><p><strong>Let’s take an example:</strong></p><p>You may have built some personal projects in college where you have a backend in NodeJS (or any other framework) and a Database.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m4tz6K-sbO_H2NHF.png" /></figure><p>User (or client) requests to your application. Then you may be doing some calculations in the backend server and performing CRUD operations in the database to return a response. This is good for prototype and personal projects, but in the real world, when we have actual users (in millions or billions), this simple architecture may not work. We need to think about scaling, fault tolerance, security, monitoring and all sorts of things to make our system reliable and work efficiently in all cases. For this we study different concepts in system design.</p><p><strong>My personal experience:</strong></p><p>When I joined HashiCorp as software engineer, I quickly realized how crucial system design is in real-world engineering. During one of my projects, I worked on developing API wrappers for Terraform’s Multiple Team Token (MTT) feature. At first, it felt like a straightforward implementation — just build and connect APIs. But as the system grew, I had to think about scalability, fault tolerance, and performance under heavy load. Running K6 performance tests made me see how even small design choices, like handling authentication or request concurrency, could affect the entire system’s stability. That experience taught me that system design isn’t just about diagrams or theory — it’s about making decisions that allow your system to scale gracefully and stay reliable when thousands of users are depending on it.</p><p>I hope all is clear about why do we need to learn system design.<br>This is just the beginning — next week, we’ll cover eveerything about Server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e2f1f688156" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Augment Code vs Github Copilot]]></title>
            <link>https://medium.com/@saudanwar17/augment-code-vs-github-copilot-6dafd4ae8ebf?source=rss-4fabe1f363d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dafd4ae8ebf</guid>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[augment-code]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Saud Anwar]]></dc:creator>
            <pubDate>Sat, 18 Oct 2025 20:02:02 GMT</pubDate>
            <atom:updated>2025-10-18T20:02:02.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crjMHBBkwxhzLcC318YNtA.png" /></figure><p>AI coding assistants have emerged as powerful tools to address these challenges, but they take fundamentally different approaches. Some focus on accelerating individual developer productivity through intelligent code completion and suggestions. Others target the broader architectural complexity that slows down entire engineering organizations.</p><p>GitHub Copilot dominated AI coding with fast autocomplete. <a href="https://www.augmentcode.com/">Augment Code</a> built something different: AI that actually understands the architectural patterns holding your distributed systems together.</p><h3>What to Consider while comparing GitHub Copilot and Augment Code?</h3><ul><li>Context depth — Copilot works within 4K-8K token windows (think single files); Augment provides 200,000-token context that references your entire codebase architecture.</li><li>Workflow scope — Copilot gives you excellent code completion and chat help. Augment delivers autonomous agents that plan, build, test, and ship complete features.</li><li>Enterprise scale — Copilot handles standard projects well. Augment specializes in massive codebases where understanding existing systems becomes your biggest bottleneck.</li><li>Architectural understanding — Copilot maintains file-level context. Augment provides persistent “memories” that learn team patterns and architectural decisions across repositories.</li></ul><h3><strong>The Context : Big win for Augment code</strong></h3><p>When generating new code, understanding your codebase — including the libraries, coding style, and architectural approach — is crucial to ensuring the generated code is usable.</p><p>With GitHub Copilot, you can provide some context, for example, through the chat interface, open files, or other methods. While this can result in better code that aligns more closely with your project, the process remains fairly manual and, at times, tedious.</p><p>This is where newer tools like Augment Code shine. You don’t need to explicitly specify additional files or context; Augment automatically takes your entire project into account. As a result, the code completions are far more aligned with your specific setup, significantly reducing the need to modify AI-generated code.</p><h3>Speed</h3><p>The speed of completions is on another level. I hadn’t realized GitHub Copilot was slow until I used Augment — it’s noticeably 2–3 times faster in many cases.</p><h3><strong>My Take</strong></h3><p>GitHub Copilot has had a strong head start, offering polished plugins with more features and broader IDE support. Additionally, its chat interface excels at casual “conversation,” making it great for brainstorming ideas or explaining bugs. However, when dealing with more complex codebases, Copilot’s code generation often falls short. You frequently need to provide extensive instructions and context through the chat interface to get results that truly align with your project.</p><p>This is where Augment Code truly excels. One could say, “Context is king,” and Augment proves it. While its completions aren’t always perfect, they consistently align more closely with your project compared to Copilot’s output — often without the need to manually input additional context via a chat interface.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dafd4ae8ebf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>