<?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 Mamidirajesh on Medium]]></title>
        <description><![CDATA[Stories by Mamidirajesh on Medium]]></description>
        <link>https://medium.com/@mamidirajesh777?source=rss-b9e7462dadea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4gP1pBcTeDWBfN5A</url>
            <title>Stories by Mamidirajesh on Medium</title>
            <link>https://medium.com/@mamidirajesh777?source=rss-b9e7462dadea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:21:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mamidirajesh777/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[ Day 3: Understanding Databases in System Design — SQL vs NoSQL, CAP Theorem & Replication]]></title>
            <link>https://medium.com/@mamidirajesh777/day-3-understanding-databases-in-system-design-sql-vs-nosql-cap-theorem-replication-aa4cc97985fb?source=rss-b9e7462dadea------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa4cc97985fb</guid>
            <dc:creator><![CDATA[Mamidirajesh]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 17:18:56 GMT</pubDate>
            <atom:updated>2025-06-11T17:20:08.849Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧠 Day 3: Understanding Databases in System Design — SQL vs NoSQL, CAP Theorem &amp; Replication</h3><p>When building scalable systems, <strong>choosing the right database</strong> and understanding how it behaves under scale is crucial. Today, I focused on how databases impact system architecture, performance, and resilience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZvFeJ24E6k28cr0BHP-4TQ.png" /></figure><h3>📘<strong> 1. SQL vs NoSQL — When &amp; Why to Use</strong></h3><h4>🔹 SQL (Relational Databases)</h4><ul><li>Structured schema (tables, rows, relations)</li><li>ACID compliance (Atomicity, Consistency, Isolation, Durability)</li><li>Great for: Complex queries, transactions, data integrity</li><li>Examples: PostgreSQL, MySQL, Oracle</li></ul><p>✅ <strong>Use When:</strong></p><blockquote>Data relationships are strong (e.g., e-commerce orders &amp; users)</blockquote><blockquote>You need strict consistency (e.g., financial apps)</blockquote><h3>🔸 NoSQL (Non-relational DBs)</h3><ul><li>Flexible schema: key-value, document, graph, or columnar</li><li>Often eventually consistent</li><li>Great for: High-speed reads/writes, distributed data</li><li>Examples: MongoDB, Cassandra, Redis, DynamoDB</li></ul><p>✅ <strong>Use When:</strong></p><ul><li>You prioritize performance and scalability</li><li>Schema can evolve (e.g., social media profiles, logs)</li></ul><h3>⚖️ 2. CAP Theorem — Trade-offs at Scale</h3><p>The <strong>CAP Theorem</strong> tells us that in a distributed system, we can only pick <strong>2 out of 3</strong>:</p><ul><li><strong>C — Consistency</strong>: All nodes see the same data at the same time</li><li><strong>A — Availability</strong>: Every request gets a (non-error) response</li><li><strong>P — Partition Tolerance</strong>: System continues despite network splits</li></ul><p>💡 <strong>Real-World Mapping:</strong></p><ul><li><strong>CP</strong>: MongoDB (Consistent &amp; Partition Tolerant)</li><li><strong>AP</strong>: Cassandra (Available &amp; Partition Tolerant)</li><li><strong>CA</strong>: Rare in distributed systems</li></ul><p>Understanding CAP helps you <strong>design systems based on what’s more important: data integrity or availability</strong>.</p><h3>🔄 3. Database Replication — Scaling Reads &amp; Ensuring Availability</h3><h3>🔁 Master-Slave (Primary-Replica) Replication</h3><ul><li>Writes go to <strong>master</strong>, reads from <strong>slaves</strong></li><li>Helps <strong>scale reads</strong> and adds <strong>redundancy</strong></li></ul><h3>🧩 Multi-Master Replication</h3><ul><li>Multiple nodes accept writes</li><li>Conflict resolution becomes important</li></ul><h3>🔐 Benefits of Replication</h3><ul><li>Fault tolerance (failover to replicas)</li><li>Load balancing (reads distributed)</li><li>Disaster recovery</li></ul><p>🚨 <strong>Challenges:</strong></p><ul><li>Replication lag</li><li>Conflict resolution</li><li>Data consistency under heavy load</li></ul><h3>✨ Summary</h3><p>Today’s key insight: <strong>The database is not just storage — it’s your system’s backbone.</strong><br> Choosing between SQL and NoSQL, understanding CAP trade-offs, and planning for replication will <strong>make or break</strong> your system’s ability to scale.</p><blockquote><em>“Data is the new oil, and your database is the engine that refines it.”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa4cc97985fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ System Design Day 2: Understanding Latency, Throughput, and Availability]]></title>
            <link>https://medium.com/@mamidirajesh777/system-design-day-2-understanding-latency-throughput-and-availability-0134ef08a3a8?source=rss-b9e7462dadea------2</link>
            <guid isPermaLink="false">https://medium.com/p/0134ef08a3a8</guid>
            <dc:creator><![CDATA[Mamidirajesh]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 17:59:37 GMT</pubDate>
            <atom:updated>2025-06-09T17:59:37.886Z</atom:updated>
            <content:encoded><![CDATA[<p>🧠 <strong>System Design Day 2: Understanding Latency, Throughput, and Availability</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n0mvmz9rBxChuWUHC8Kfug.png" /></figure><p>In the world of scalable web applications, performance isn’t just a feature — it’s a necessity. Today’s focus is on three foundational pillars: Latency, Throughput, and Availability.</p><p>🔍 <strong>1. Latency – How Fast Is Fast Enough?</strong></p><p>Latency is the time delay between a user’s request and the system’s response. It’s measured in milliseconds (ms) and plays a critical role in user experience.</p><p>🔧 <strong>Real-world analogy:</strong></p><p>When you flip a light switch, latency is the time it takes for the light to turn on.</p><p>🔍 <strong>In web systems:</strong></p><p>API response time</p><p>Page load time</p><p>Database query execution time</p><p><strong>Ideal latency target:</strong></p><p>&lt; 100ms for APIs</p><p>&lt; 1s for interactive web pages</p><p>&lt; 3s for entire page loads</p><p>🔄 <strong>Techniques to reduce latency:</strong></p><p>Caching (Redis, CDN)</p><p>Database indexing</p><p>Load balancing</p><p>Using asynchronous processing (message queues)</p><p>🚀 <strong>2. Throughput – How Much Can the System Handle?</strong></p><p>Throughput measures how much data or how many requests a system can process in a given time — often requests per second (RPS).</p><p>🧪 <strong>Example:</strong></p><p>A payment gateway that can process 5000 transactions per second has a throughput of 5k RPS.</p><p>🔍 <strong>Why it matters</strong>:</p><p>When designing for scale (millions of users), a high-throughput system is essential to avoid bottlenecks.</p><p>🔄 <strong>Techniques to improve throughput:</strong></p><p>Horizontal scaling (more servers)</p><p>Database sharding</p><p>Efficient algorithms</p><p>Batch processing</p><p>💡 <strong>3</strong>. <strong>Availability</strong> <strong>–</strong> <strong>Always</strong> <strong>Ready</strong> <strong>When You Need It</strong></p><p>Availability is the percentage of time a system is operational and accessible. It’s often expressed as &quot;nines&quot;:</p><p>Availability	Downtime per year</p><p>99%	~3.65 days<br>99.9%	~8.76 hours<br>99.99%	~52 minutes<br>99.999%	~5.26 minutes</p><p>🔍 <strong>Goals:</strong></p><p>No single point of failure</p><p>Redundant systems</p><p>Failover mechanisms</p><p>🔄 <strong>Tools to ensure high availability:</strong></p><p>Load balancers</p><p>Health checks &amp; auto-healing</p><p>Multi-region deployment</p><p>Chaos testing (Netflix&#39;s Chaos Monkey)</p><p>🧠 <strong>Summary of Key Learnings:</strong></p><p><strong>Concept	Definition	Goal	Solution</strong> Examples</p><p>Latency	Time to respond to a request	Fast responses	Caching, DB Indexing, Async jobs<br>Throughput	Requests/data handled per second	High capacity under load	Horizontal scaling, Sharding<br>Availability	System uptime &amp; reliability	Always available	Load balancing, Redundancy, Failover</p><p>✍️ <strong>Personal Takeaway</strong></p><p>Understanding latency, throughput, and availability changed how I view performance. It’s not just about building something that works, but building something that scales. Every feature, architecture decision, and tool selection should be aligned with these core metrics.</p><p>If this helped you, follow me here on Medium for more hands-on learning logs from my system design journey.</p><p>#SystemDesign #WebDevelopment #Performance #Scalability #Backend #SoftwareEngineering #MediumWriters #LearningInPublic</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0134ef08a3a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Why System Design Is the Backbone of Scalable Web Applications]]></title>
            <link>https://medium.com/@mamidirajesh777/why-system-design-is-the-backbone-of-scalable-web-applications-da22353deff9?source=rss-b9e7462dadea------2</link>
            <guid isPermaLink="false">https://medium.com/p/da22353deff9</guid>
            <dc:creator><![CDATA[Mamidirajesh]]></dc:creator>
            <pubDate>Sun, 08 Jun 2025 18:51:28 GMT</pubDate>
            <atom:updated>2025-06-08T19:01:56.959Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*ni35Lt_z9-SjphAcsjBbag.avif" /></figure><h4>🔧 What Is System Design?</h4><p>System design is about thinking beyond functions and features. It’s the architecture, scalability, and infrastructure planning that determines how your application performs at scale, how reliable it is under stress, and how maintainable it becomes over time.</p><p>In short:</p><blockquote><strong><em>Code is what makes it run.<br> System design is what makes it last.</em></strong></blockquote><h3>💥 Why System Design Is Critical</h3><p>Here are a few reasons every serious developer needs to master system design:</p><h3>1. Scalability</h3><p>What happens when your app goes from 100 users to 1 million?<br> Without proper design choices — caching, load balancing, database sharding — it crumbles.</p><h3>2. Reliability</h3><p>Can your system handle downtime or partial failures?<br> Users expect 24/7 availability. System design helps ensure graceful degradation and fault tolerance.</p><h3>3. Performance</h3><p>It’s not just about making things “work,” it’s about making them work fast.<br> Slow APIs, database bottlenecks, and unoptimized queries are often symptoms of poor design.</p><h3>4. Maintainability</h3><p>An app with a messy monolith or no separation of concerns becomes a nightmare for dev teams.<br> System design helps introduce modularity through microservices or clean architecture patterns.</p><h3>🛠️ Real-World Scenarios Where System Design Matters</h3><ul><li><strong>Real-time Chat App</strong> → How do you manage thousands of WebSocket connections?</li><li><strong>E-commerce Platform</strong> → How do you ensure product availability, even under flash sales?</li><li><strong>Video Streaming</strong> → How do you deliver low-latency, high-quality streams globally?</li></ul><p>These are the problems developers face at scale — and they don’t have code-only solutions.</p><h3>🎯 Thinking Like an Architect</h3><p>When you study system design, you shift from “How do I build this feature?” to “How do I build a system that supports this feature at scale?”</p><p>Here are a few core concepts every dev should get familiar with:</p><ul><li>Load Balancers</li><li>API Gateways</li><li>Message Queues (like RabbitMQ, Kafka)</li><li>Database Sharding</li><li>CDNs &amp; Caching (Redis, Cloudflare)</li><li>CAP Theorem</li><li>Microservices vs Monoliths</li></ul><h3>🚀 Final Thoughts</h3><p>System Design isn’t just for tech leads or senior engineers — it’s for any developer who wants to build apps that scale, perform, and evolve.</p><p>If you’re someone who:</p><ul><li>Wants to crack system design interviews</li><li>Wants to build your own product</li><li>Or just wants to think like an architect…</li></ul><p>#SystemDesign #WebDevelopment #Scalability #SoftwareEngineering #Backend #Architecture #Microservices #DevMindset #FAANGPrep #Coding</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da22353deff9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>