<?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 Rachitsingh on Medium]]></title>
        <description><![CDATA[Stories by Rachitsingh on Medium]]></description>
        <link>https://medium.com/@100xrachit?source=rss-4fe746ed1ea8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m6A6lVXv95f_44hoA6jJsw.jpeg</url>
            <title>Stories by Rachitsingh on Medium</title>
            <link>https://medium.com/@100xrachit?source=rss-4fe746ed1ea8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:57:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@100xrachit/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[How Tables and Indexes Are Stored on Disk]]></title>
            <link>https://100xrachit.medium.com/how-tables-and-indexes-are-stored-on-disk-6a64906b6f00?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a64906b6f00</guid>
            <category><![CDATA[internal]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[database-design]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 21:32:29 GMT</pubDate>
            <atom:updated>2026-10-03T21:32:29.022Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>A table is stored as pages of row data. An index is a separate, smaller structure that helps the database find the right pages without reading the whole table.</strong></blockquote><h3>Storage concepts</h3><p><strong>What it is:</strong> The physical pieces a database uses to store and find data: tables, row locations, pages, I/O, heaps, and indexes.</p><p><strong>Purpose:</strong> Understand why some queries scan everything while others find a few rows quickly.</p><p><strong>Why not read one row at a time?</strong> Storage works in blocks. Databases read pages containing many rows because asking storage for a separate read per row would be far slower.</p><pre>SQL query<br>   │<br>   ▼<br>Query planner chooses a path<br>   │<br>   ├── no useful index ──► read heap pages sequentially<br>   │<br>   └── useful index ─────► read index pages → find row locations → read matching heap pages</pre><h3>Logical table</h3><p><strong>What it is:</strong> The table you see in SQL, such as employees.</p><p><strong>Purpose:</strong> Give the application a clean row-and-column model without exposing files, pages, or storage locations.</p><p><strong>Why not store one file per row?</strong> Millions of small files would make storage management and scanning expensive. Databases group many rows into pages.</p><pre>Logical SQL view</pre><pre>employees<br>┌────────┬──────────┬──────────┐<br>│ emp_id │ name     │ salary   │<br>├────────┼──────────┼──────────┤<br>│ 10     │ Hussein  │ 100000   │<br>│ 20     │ Adam     │ 200000   │<br>└────────┴──────────┴──────────┘</pre><pre>Physical view</pre><pre>table file → page 0 → page 1 → page 2 → ...</pre><h3>Row identity and physical location</h3><p><strong>What it is:</strong> A primary key is the application’s stable identifier for a row. A database can also have an internal physical location for the stored row version.</p><p><strong>Purpose:</strong> Primary keys model identity. Physical locations help the storage engine locate data quickly.</p><p><strong>Why not use a physical location as the primary key?</strong> A physical location can change after an update, vacuum, rebuild, or data movement. It is an implementation detail, not stable business identity.</p><pre>Application identity                  Physical location</pre><pre>emp_id = 20                    PostgreSQL ctid = (page 4, slot 7)<br>stable business key            location of one stored tuple version</pre><p>In PostgreSQL, ctid is a system column representing a tuple identifier. It identifies a physical row location, so do not use it as an application key.</p><h3>Page</h3><p><strong>What it is:</strong> A fixed-size storage block containing multiple rows or index entries.</p><p><strong>Purpose:</strong> Make I/O predictable and efficient. One page read brings many nearby rows into memory.</p><p><strong>Why not read a single row?</strong> The operating system and storage device transfer blocks. Reading a page amortizes the cost of the I/O across many rows.</p><pre>Heap page 42<br>┌─────────────────────────────────────────┐<br>│ slot 1 → employee 10                    │<br>│ slot 2 → employee 20                    │<br>│ slot 3 → employee 30                    │<br>│ free space                               │<br>└─────────────────────────────────────────┘</pre><p>PostgreSQL’s default block size is 8 KB. InnoDB’s default page size is 16 KB, although it can be configured when the instance is initialized.</p><h3>I/O</h3><p><strong>What it is:</strong> A request to read or write storage data.</p><p><strong>Purpose:</strong> Move pages between durable storage and memory.</p><p><strong>Why care?</strong> I/O is usually much slower than reading a page already cached in memory, so query plans try to avoid unnecessary page reads.</p><pre>Need one employee row<br>     │<br>     ├── page already in buffer cache ──► use memory<br>     │<br>     └── page not cached ───────────────► storage I/O → buffer cache → use row</pre><p>An index can reduce I/O by narrowing the heap pages that must be visited. It is not free: the index itself also uses pages and can require I/O.</p><h3>Heap</h3><p><strong>What it is:</strong> In PostgreSQL terminology, the heap is the table’s main data area, stored separately from its indexes.</p><p><strong>Purpose:</strong> Store complete row data in pages.</p><p><strong>Why not always scan it?</strong> A sequential scan is efficient when many rows are needed. It is wasteful when the query needs a few rows from a large table.</p><pre>Heap table</pre><pre>page 0 → many rows<br>page 1 → many rows<br>page 2 → many rows<br>...</pre><pre>Sequential scan = inspect page 0, then 1, then 2, ...</pre><p>PostgreSQL’s ordinary indexes are separate from the heap. An ordinary index scan commonly reads both the index and the matching heap tuples.<a href="#fn-4">[4]</a></p><h3>Index</h3><p><strong>What it is:</strong> A separate data structure that stores indexed key values and row locations.</p><p><strong>Purpose:</strong> Find a small set of matching rows without scanning every heap page.</p><p><strong>Why not index every column?</strong> Every index consumes storage and must be updated on writes. An index helps only when its read benefit outweighs its write and space cost.</p><pre>B-tree index on emp_id</pre><pre>                 [20 | 50]<br>                 /        \<br>        [10, 20]            [50, 80]<br>            │<br>            ▼<br>   row location: page 42, slot 2<br>            │<br>            ▼<br>     heap page 42 → employee 20</pre><p>In PostgreSQL, an index scan returns tuple identifiers, then retrieves and checks the matching heap tuples. An index-only scan can avoid the heap only when the index contains the required values and PostgreSQL can confirm tuple visibility without visiting the heap.<a href="#fn-5">[5]</a><a href="#fn-4">[4–1]</a></p><h3>One query from SQL to row</h3><pre>SELECT emp_name, emp_salary<br>FROM employees<br>WHERE emp_id = 20;</pre><pre>1. Parser understands the SQL<br>          │<br>          ▼<br>2. Planner compares possible paths<br>          │<br>          ├── sequential scan: read every heap page<br>          │<br>          └── index scan: read B-tree pages for emp_id = 20<br>                                  │<br>                                  ▼<br>                         get page + slot location<br>                                  │<br>                                  ▼<br>                         fetch that heap tuple<br>                                  │<br>                                  ▼<br>                         return name and salary</pre><p>For a selective lookup, the index path usually reads fewer heap pages. For a query that returns a large share of the table, a sequential scan can be cheaper because the pages are read in order.</p><h3>PostgreSQL heap vs InnoDB clustered index</h3><p>Database Main row storage Secondary-index lookup PostgreSQL Heap is separate from all indexes. Index entry leads to a heap tuple location. MySQL InnoDB Rows are stored in the clustered index, normally keyed by the primary key. Secondary index stores the primary-key columns, then InnoDB searches the clustered index.</p><p>InnoDB uses the primary key as its clustered index. Without a primary key, it uses a suitable UNIQUE NOT NULL index or creates a hidden clustered index. PostgreSQL uses a separate heap for main row storage.</p><h3>What to remember</h3><pre>Table  = logical SQL object<br>Page   = physical block containing many rows or index entries<br>I/O    = reading or writing pages between storage and memory<br>Heap   = PostgreSQL&#39;s main row storage<br>Index  = a separate shortcut to likely matching heap rows</pre><ol><li><a href="https://www.postgresql.org/docs/current/ddl-system-columns.html">PostgreSQL documentation: system columns</a><a href="#fnref-1">↩︎</a></li><li><a href="https://www.postgresql.org/docs/current/runtime-config-preset.html">PostgreSQL documentation: block size</a><a href="#fnref-2">↩︎</a></li><li><a href="https://dev.mysql.com/doc/refman/8.0/en/innodb-init-startup-configuration.html">MySQL documentation: InnoDB page size</a><a href="#fnref-3">↩︎</a></li><li><a href="https://www.postgresql.org/docs/current/indexes-index-only-scans.html">PostgreSQL documentation: index-only scans</a><a href="#fnref-4">↩︎</a><a href="#fnref-4-1">↩︎</a><a href="#fnref-4-2">↩︎</a></li><li><a href="https://www.postgresql.org/docs/current/index-scanning.html">PostgreSQL documentation: index scanning</a><a href="#fnref-5">↩︎</a></li><li><a href="https://www.postgresql.org/docs/current/using-explain.html">PostgreSQL documentation: using EXPLAIN</a><a href="#fnref-6">↩︎</a></li><li><a href="https://dev.mysql.com/doc/refman/8.0/en/innodb-index-types.html">MySQL documentation: clustered and secondary indexes</a><a href="#fnref-7">↩︎</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a64906b6f00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Mann ki ho toh acha, na ho toh aur bhi acha.”]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://100xrachit.medium.com/mann-ki-ho-toh-acha-na-ho-toh-aur-bhi-acha-3cfee4c86dd1?source=rss-4fe746ed1ea8------2"><img src="https://cdn-images-1.medium.com/max/736/1*-N1fSZZ50NvR9Vm426xvOQ.jpeg" width="736"></a></p><p class="medium-feed-snippet">Growing up, my mother had a way of simplifying life&#x2019;s hardest lessons into a single sentence. She&#x2019;d say,</p><p class="medium-feed-link"><a href="https://100xrachit.medium.com/mann-ki-ho-toh-acha-na-ho-toh-aur-bhi-acha-3cfee4c86dd1?source=rss-4fe746ed1ea8------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://100xrachit.medium.com/mann-ki-ho-toh-acha-na-ho-toh-aur-bhi-acha-3cfee4c86dd1?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cfee4c86dd1</guid>
            <category><![CDATA[motherhood]]></category>
            <category><![CDATA[calm]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[poetry]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 19:03:19 GMT</pubDate>
            <atom:updated>2025-11-10T19:03:19.455Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[️ System Design 106: Putting It All Together (The Architecture Blueprint)]]></title>
            <link>https://100xrachit.medium.com/%EF%B8%8F-system-design-106-putting-it-all-together-the-architecture-blueprint-f40207936731?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f40207936731</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 18:40:52 GMT</pubDate>
            <atom:updated>2025-10-09T18:40:52.246Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Goal:</strong> Understand how to design an entire large-scale system → from users hitting your website to data being stored and served at scale.</p><h3>📖 Table of Contents</h3><ol><li><strong>Introduction: The Missing Blueprint</strong></li><li><strong>The Building Blocks You’ve Learned So Far</strong></li><li><strong>The Anatomy of a Scalable System</strong></li><li><strong>Step-by-Step: Designing an Instagram-like App</strong></li></ol><ul><li>Step 1: The Client Layer</li><li>Step 2: The Load Balancer</li><li>Step 3: The Application Layer</li><li>Step 4: The Database Layer</li><li>Step 5: The Caching Layer</li><li>Step 6: The Storage Layer (Images, Videos)</li><li>Step 7: The Message Queue</li><li>Step 8: The Analytics and Monitoring Layer</li></ul><p><strong>5. How It All Flows Together</strong></p><p><strong>6. Designing for Scale and Failure</strong></p><p><strong>7. Real-World Examples (Netflix, Uber, Instagram)</strong></p><p><strong>8. Checklist: How to Approach Any System Design Problem</strong></p><p><strong>9. Closing Thoughts</strong></p><h3>1. Introduction: The Missing Blueprint</h3><p>By now, you’ve learned the major <strong>puzzle pieces</strong> of system design → databases, caching, load balancing, replication, and so on.</p><p>But here’s the problem: Most beginners know the parts but <strong>don’t know how they fit together</strong>.</p><p>Think of it like knowing the engine, wheels, and steering → but not how to build a car.</p><p>This final chapter gives you <strong>the blueprint</strong> → how real systems are designed end to end.</p><h3>2. The Building Blocks You’ve Learned So Far</h3><p>Before we dive in, here’s your system design toolkit recap:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*ixTI_UaD3c3AOy6h_4amaw.png" /></figure><p>A real-world system uses <em>all</em> of these →working together like a living organism.</p><h3>3. The Anatomy of a Scalable System</h3><p>Here’s the simplified high-level structure:</p><pre>Client (Browser/App)<br>        |<br>     Load Balancer<br>        |<br>  +----------------+<br>  |   App Servers  |<br>  +----------------+<br>        |<br>   +-----------+<br>   |  Cache    |<br>   +-----------+<br>        |<br>   +-----------+<br>   | Database  |<br>   +-----------+<br>        |<br>   +-----------+<br>   | Blob Store|<br>   +-----------+</pre><p>This is your <strong>mental map</strong>. But we’ll soon expand it into a full-blown distributed system with queues, replicas, and monitoring.</p><h3>4. Step-by-Step: Designing an Instagram-like App</h3><p>Let’s design something tangible.<br> Imagine you’re building <strong>“PicShare”</strong>, a photo-sharing platform (like Instagram).</p><p>You want users to:</p><ul><li>Sign up and log in</li><li>Upload photos</li><li>Like and comment</li><li>View their personalized feed</li><li>Scale to millions of users</li></ul><p>Here’s how we’d build it → step by step:</p><h3>Step 1: The Client Layer</h3><p>Clients include:</p><ul><li>Web browsers (React, Next.js, etc.)</li><li>Mobile apps (React Native, Swift, Kotlin)</li></ul><p>They send HTTP/HTTPS requests to your backend APIs — for login, upload, like, etc.</p><p><strong>Key design choices:</strong></p><ul><li>Use a <strong>CDN</strong> (Content Delivery Network) to serve static assets (JS, CSS, images).</li><li>Compress data (gzip, brotli) for speed.</li><li>Cache API responses on the client where possible.</li></ul><h3>Step 2: The Load Balancer</h3><p>Once the request leaves the client, it hits a <strong>Load Balancer</strong> (like NGINX, AWS ELB, HAProxy).</p><p>It decides <strong>which server</strong> will handle the request.</p><ul><li>If one server is overloaded → LB redirects new requests elsewhere.</li><li>If a server crashes → LB stops sending traffic to it.</li></ul><p><strong>Key strategies:</strong></p><ul><li>Round Robin (simple)</li><li>Least Connections</li><li>IP Hashing (sticky sessions)</li></ul><blockquote>Example: Instagram uses HAProxy + Envoy for smart traffic routing.</blockquote><h3>Step 3: The Application Layer</h3><p>Your API servers run the backend logic:</p><ul><li>Authenticate users</li><li>Handle uploads</li><li>Generate user feeds</li></ul><p>They’re <strong>stateless</strong> — meaning any server can handle any request.<br> User session info is stored in:</p><ul><li><strong>JWT tokens</strong> (client side), or</li><li><strong>Redis session store</strong></li></ul><p><strong>Scale tip:</strong><br> When traffic increases, just spin up more instances.</p><p>Example stack:</p><ul><li>Node.js/Express or Go for APIs</li><li>GraphQL for flexible queries</li><li>Docker + Kubernetes for deployment</li></ul><h3>Step 4: The Database Layer</h3><p>Time to store structured data.</p><p>We’ll use:</p><ul><li><strong>PostgreSQL</strong> for relational data (users, posts, comments)</li><li><strong>MongoDB</strong> or <strong>Cassandra</strong> for feeds or denormalized content</li></ul><p><strong>Schema Design Example:</strong></p><p><strong>Users Table</strong><br> | id | username | email | password_hash |</p><p><strong>Posts Table</strong><br> | id | user_id | caption | created_at |</p><p><strong>Likes Table</strong><br> | id | user_id | post_id |</p><p>Use <strong>indexes</strong> on frequently queried fields like user_id and created_at.</p><p><strong>Scaling tricks:</strong></p><ul><li>Replication: 1 Primary (writes), many Read Replicas.</li><li>Sharding: Split users A–M and N–Z across different DBs.</li></ul><h3>Step 5: The Caching Layer</h3><p>Your DB can’t handle every read request.<br> That’s where caching saves the day.</p><p>Use <strong>Redis</strong> or <strong>Memcached</strong> to store:</p><ul><li>User profiles</li><li>Feed results</li><li>Trending posts</li></ul><p><strong>Patterns:</strong></p><ul><li><strong>Read-Through:</strong> Cache after first DB read.</li><li><strong>Write-Through:</strong> Update cache along with DB.</li><li><strong>Write-Back:</strong> Update cache first, DB later (via async).</li></ul><blockquote>Example: When a user opens Instagram, their feed is fetched from <strong>Redis</strong>, not Postgres.</blockquote><h3>Step 6: The Storage Layer (Images &amp; Videos)</h3><p>User uploads can’t live in your database — they’re huge.</p><p>Use <strong>Object Storage</strong>:</p><ul><li>AWS S3, Google Cloud Storage, or MinIO (self-hosted)</li></ul><p>Process images through:</p><ul><li>A queue or a background worker for resizing and compression.</li></ul><p>Store only metadata in your DB:</p><pre>{<br>  &quot;post_id&quot;: 21,<br>  &quot;url&quot;: &quot;https://cdn.picshare.com/u123/photo45.jpg&quot;,<br>  &quot;size&quot;: &quot;1080x1080&quot;<br>}</pre><blockquote><strong>CDN integration: </strong>Deliver files faster globally (Cloudflare, Akamai, Fastly).</blockquote><h3>Step 7: The Message Queue</h3><p>Some tasks shouldn’t block user actions.<br> Example:<br> User uploads a photo → backend saves metadata → photo gets processed → user gets notified.</p><p>This chain uses <strong>asynchronous processing</strong> with:</p><ul><li>Kafka, RabbitMQ, or AWS SQS</li></ul><p>Example flow:</p><pre>Upload Request<br>     ↓<br>Message Queue<br>     ↓<br>Worker Service (resizes, stores, updates DB)</pre><blockquote>That’s how Instagram processes millions of uploads per second <em>without choking the main app servers.</em></blockquote><h3>Step 8: The Analytics and Monitoring Layer</h3><p>To keep everything alive, you need visibility.</p><p>Tools:</p><ul><li><strong>Prometheus + Grafana</strong> → track CPU, latency, DB queries</li><li><strong>ELK Stack (Elasticsearch, Logstash, Kibana)</strong> → logs</li><li><strong>PagerDuty / OpsGenie</strong> → alerting</li></ul><p>Metrics to watch:</p><ul><li>API latency</li><li>Cache hit ratio</li><li>DB query time</li><li>Error rates</li><li>Uptime (SLA)</li></ul><h3>5. How It All Flows Together</h3><p>Let’s trace one real request:</p><blockquote><em>“User opens the PicShare app to see their feed.”</em></blockquote><ol><li>Client sends request → Load Balancer</li><li>LB routes to the nearest App Server</li><li>App Server checks Redis cache for feed</li></ol><ul><li>Cache hit → returns instantly</li><li>Cache miss → fetches from DB</li></ul><p>4. App Server merges results with the latest posts</p><p>5. Response sent to Client</p><p>6. Images load via CDN</p><p>7. Analytics logs request in the ELK stack</p><p>This whole flow takes ~200–500 ms on a good system.</p><h3>6. Designing for Scale and Failure</h3><p>Things will go wrong. You must plan for that.</p><p><strong>High Availability:</strong></p><ul><li>Use multiple servers across regions (multi-AZ)</li><li>Use failover DB replicas</li><li>Use health checks + auto-scaling</li></ul><p><strong>Fault Tolerance:</strong></p><ul><li>Retries + exponential backoff</li><li>Queues for async recovery</li><li>Redundant cache nodes</li><li>Circuit breakers for flaky services</li></ul><blockquote>Example: Netflix runs <strong>Chaos Monkey</strong>, a tool that randomly kills servers — to test system resilience!</blockquote><h3>7. Real-World Examples</h3><h3>Instagram</h3><ul><li>Postgres for metadata</li><li>Redis for caching</li><li>S3 for storage</li><li>Celery + RabbitMQ for async tasks</li><li>Django backend</li><li>ELB for load balancing</li></ul><h3>Netflix</h3><ul><li>Microservices for scalability</li><li>Cassandra + DynamoDB for data</li><li>Open Connect CDN for video delivery</li><li>Chaos Engineering for resilience</li></ul><h3>Uber</h3><ul><li>MySQL + Riak</li><li>Kafka for real-time events</li><li>Redis for surge pricing cache</li><li>ELK stack for logs</li></ul><h3>8. Checklist: How to Approach Any System Design Problem</h3><p>When facing any design interview or project:</p><ol><li><strong>Understand the Requirements</strong></li></ol><ul><li>Functional (what users can do)</li><li>Non-functional (scalability, latency, availability)</li></ul><p><strong>2. Define Scale</strong></p><ul><li>How many users?</li><li>How many requests per second?</li></ul><p><strong>3. Design the Core APIs</strong></p><ul><li>Think endpoints, request flow.</li></ul><p><strong>4. Choose the Database</strong></p><ul><li>SQL vs. NoSQL based on data pattern.</li></ul><p><strong>5. Add Caching</strong></p><ul><li>To reduce DB load.</li></ul><p><strong>6. Design for Scalability</strong></p><ul><li>Load balancing, replication, sharding.</li></ul><p><strong>7. Add Asynchronous Processing</strong></p><ul><li>Message queues, background jobs.</li></ul><p><strong>8. Add Monitoring</strong></p><ul><li>Metrics, logs, alerts.</li></ul><p><strong>9. Plan for Failures</strong></p><ul><li>Redundancy, fallback, retries.</li></ul><p><strong>10. Optimize for Cost &amp; Simplicity</strong></p><ul><li>Don’t over-engineer for 10 users.</li></ul><h3>9. Closing Thoughts</h3><p>System design isn’t about memorizing buzzwords.<br> It’s about <strong>trade-offs → </strong>between speed, cost, and complexity.</p><p>Every major tech company uses the same building blocks → just assembled differently based on their goals.</p><p>The more systems you mentally design, the sharper your intuition gets.</p><p><strong>If you can explain this diagram, you already think like a systems engineer:</strong></p><pre>Client → Load Balancer → App Servers → Cache → DB → Queue → Workers → Storage → Analytics</pre><p>That’s the <strong>Architecture Blueprint, </strong>the foundation behind Instagram, Netflix, Uber, and every modern app you use.</p><p>If you’ve made it this far, congratulations → you’ve just completed your <strong>System Design Foundations</strong>.</p><h3>A Note from Me</h3><p>Before you scroll away, I just want to say <strong>thank you</strong> 🙏</p><p>This entire <em>System Design 101–106</em> journey has been my attempt to learn, simplify, and share complex ideas in a way that even beginners (like I once was!) can grasp.</p><p>I know I might have made a few mistakes along the way, maybe missed some edge cases, oversimplified a concept, or didn’t phrase something as clearly as I could. But every post here was written with one goal in mind:<br> to make <strong>system design feel less scary and more human.</strong></p><p>I’m still learning, every single day.<br> And your time, feedback, and support mean a lot. ❤️</p><p>If you found this helpful (even a little), I’d love to hear your thoughts in the comments, what you liked, what I could explain better, or what topic you’d like to see next.</p><p>Until then, keep building, keep breaking things, and keep learning.<br> Because that’s what being an engineer is all about. ⚙️✨</p><p>— <strong><em>Rachit Singh</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40207936731" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design 105: High Availability and Fault Tolerance]]></title>
            <link>https://100xrachit.medium.com/system-design-105-high-availability-and-fault-tolerance-8e5b542f5e2b?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e5b542f5e2b</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Sun, 05 Oct 2025 06:30:05 GMT</pubDate>
            <atom:updated>2025-10-05T06:30:05.849Z</atom:updated>
            <content:encoded><![CDATA[<p>When you design systems at scale, <em>things break</em>. Disks fail. Networks drop packets. Servers crash. Someone, somewhere, will deploy a bad update on a Friday evening.</p><p>If your system can’t handle that chaos, users leave.</p><p>That’s why every good architect obsesses over two words: <strong><em>availability</em></strong> and <strong><em>fault tolerance</em></strong>.</p><p>This post breaks them down, not as buzzwords, but as real strategies that keep systems alive when everything else goes wrong.</p><h3>Content of this Blog</h3><ol><li>What is High Availability</li><li>What is Fault Tolerance?</li><li>What availability in Numbers → The “9s”</li><li>Redundancy → The core Idea</li><li>Common Patterns for High Availability</li><li>How Fault Tolerance Works in Practice</li><li>Design for Failure</li><li>Real-World Examples</li><li>Key Takeaways</li><li>What’s Next</li></ol><h3>Step 1: What is High Availability?</h3><p><strong>High Availability (HA)</strong> means keeping your system up and running <em>as much as possible</em>.</p><p>It’s not about never failing → it’s about recovering fast enough that users barely notice.</p><p>Think of Netflix: even if one region’s servers crash, you can still watch your show. That’s high availability.</p><p>You achieve HA by eliminating single points of failure and having backups ready to take over.</p><h3>Step 2: What is Fault Tolerance:</h3><p><strong>Fault tolerance</strong> is one step deeper.</p><p>It’s not just about staying available → it’s about <em>continuing to operate correctly even when components fail</em>.</p><p>A fault-tolerant system can lose a disk, a server, or even a data center and still deliver the right results without manual intervention.</p><p>So:</p><ul><li>High availability = fast recovery.</li><li>Fault tolerance = continuous operation.</li></ul><p>Both are about resilience, just at different levels.</p><h3>Step 3: Availability in Numbers →The “9s”</h3><p>Engineers often measure availability using “nines.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*velkVI2sRHc6x_AQ1QafaA.png" /><figcaption>nines</figcaption></figure><p>The more 9s, the harder (and costlier) it gets. Every extra “9” requires more redundancy, monitoring, and automation.</p><h3>Step 4: Redundancy — The Core Idea</h3><p>At the heart of every reliable system is <strong>redundancy</strong>: multiple components doing the same job, so one can fail without taking the system down.</p><ul><li>Failover<strong>Server redundancy:</strong> multiple app servers behind a load balancer.</li><li><strong>Database redundancy:</strong> primary + replicas.</li><li><strong>Network redundancy:</strong> multiple routes and ISPs.</li><li><strong>Power redundancy:</strong> UPS + generators in data centers.</li></ul><p>Redundancy doesn’t prevent failure → it makes failure <em>harmless</em>.</p><h3>Step 5: Common Patterns for High Availability</h3><p>Let’s go through some practical patterns you’ll actually see.</p><h4>1. Load Balancing</h4><p>We covered this in System Design 103. Load balancers distribute requests across healthy servers and stop sending traffic to failed ones.</p><h4>2. Replication</h4><p>Keep multiple copies of your data.</p><ul><li><strong>Active-passive:</strong> one primary handles writes, standby takes over if it fails.</li><li><strong>Active-active:</strong> multiple nodes handle requests simultaneously.</li></ul><h4>3. Failover</h4><p>Automatic switching from a failed component to a healthy one.<br> Used in databases, DNS, and even whole regions (AWS Route 53, RDS).</p><h4>4. Health Checks</h4><ul><li>Regular pings to ensure components are alive.</li><li>If one fails, traffic reroutes instantly.</li></ul><h4>5. Stateless Services</h4><ul><li>Store session data externally (e.g., Redis) so any server can serve any request.</li><li>This way, if one instance dies, users aren’t affected.</li></ul><h3>Step 6: How Fault Tolerance Works in Practice</h3><p>Fault tolerance = redundancy + isolation + automation.</p><p>This way, if one instance dies, users aren’t affected. Here’s how big systems handle it:</p><ul><li><strong>Redundant components:</strong> no single failure takes the system down.</li><li><strong>Isolation:</strong> one bad service can’t poison others (think microservices).</li><li><strong>Graceful degradation:</strong> if a part fails, the system still provides partial functionality. (e.g., YouTube comments might fail, but video playback still works.)</li><li><strong>Automatic recovery:</strong> self-healing instances via Kubernetes or autoscaling groups.</li></ul><h3>Step 7: Designing for Failure</h3><p>Every system will fail — so design <em>as if it already has</em>.</p><p>Ask yourself:</p><ul><li>What happens if this database goes down?</li><li>What if network latency spikes?</li><li>What if a bad deploy crashes 30% of instances?</li></ul><p>Good engineers simulate these disasters before they happen. Netflix literally built a tool called <strong>Chaos Monkey</strong> that randomly kills servers to ensure the system can handle it.</p><p>If your system can survive random destruction, it’s truly fault-tolerant.</p><h3>Step 8: Real-World Examples</h3><ul><li><strong>Netflix:</strong> Runs across multiple AWS regions; uses Chaos Monkey to test resilience.</li><li><strong>Amazon:</strong> Each service (cart, checkout, product search) runs independently, so one failure doesn’t cascade.</li><li><strong>Banking Systems:</strong> Use active-passive replication and manual failover for safety over speed.</li><li><strong>Google Cloud:</strong> Zones and regions ensure isolation, if one zone fails, workloads move automatically.</li></ul><h3>Key Takeaways</h3><ul><li><strong>High availability</strong> = uptime and quick recovery.</li><li><strong>Fault tolerance</strong> = continuous operation despite failures.</li><li>Redundancy, replication, and isolation are your foundations.</li><li>Add more “9s” only if your use case truly needs it — reliability is expensive.</li><li>Test failure, don’t just hope it won’t happen.</li></ul><h3>What’s Next</h3><p>That wraps up <strong>System Design 105: High Availability and Fault Tolerance</strong>.</p><p>Next up, we’ll start connecting all these pieces → caching, databases, load balancing, and fault tolerance, into <strong>System Design 106: Putting It All Together (The Architecture Blueprint)</strong>.</p><p>That’s where theory becomes system-level thinking.</p><h3>End of the Blog:</h3><p>If you liked my efforts and want to support them, then you can donate any amount below:</p><ul><li><strong>For Indian Users: </strong>Pay via UPI =&gt; rachit.singh01@ptyes</li><li><strong>For non-Indian Users:</strong> buymeacoffee.com/rachitsinghh</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e5b542f5e2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Git and GitHub: A Beginner’s Comprehensive Guide to Version Control]]></title>
            <link>https://100xrachit.medium.com/mastering-git-and-github-a-beginners-comprehensive-guide-to-version-control-825cc3ae0827?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/825cc3ae0827</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Sat, 04 Oct 2025 15:44:07 GMT</pubDate>
            <atom:updated>2025-10-05T06:31:13.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Git and github famous meme" src="https://cdn-images-1.medium.com/max/1024/1*uEsVSblJnJCgSFXnPSlEbA.jpeg" /></figure><p>I thought the scariest part of being a developer would be writing complex logic or debugging production issues. Turns out, I was wrong.</p><p>The thing that really kept me up at night? <strong>Git.</strong></p><p>That one black-and-white log of commits, branches, merges, and conflicts felt like a puzzle I could never solve. Everyone around me seemed to fly through commands like git checkout -b or git rebase, while I was nervously typing git push and praying I wouldn’t break something.</p><p>Spoiler: I did break something. I pushed directly to the main branch in my first week. The team was kind about it, but the embarrassment was enough to make me determined: I was going to master Git and GitHub.</p><p>Here’s what I’ve learned since then → the commands, the concepts, and the mindset that turned Git from my worst nightmare into one of my favorite tools.</p><h3>Why Git and GitHub Matter</h3><p>Before diving into commands, let’s pause. Why do we even need version control?</p><ul><li><strong>History:</strong> Git tracks every change. You can go back in time if something breaks.</li><li><strong>Collaboration:</strong> Multiple developers can work on the same project without stepping on each other’s toes.</li><li><strong>Backup:</strong> Your code isn’t just on your machine; it lives safely on GitHub or another remote.</li><li><strong>Confidence:</strong> You can experiment in a branch without worrying about breaking the main codebase.</li></ul><p>In short, Git is the safety net that makes modern development possible.</p><h3>Git vs GitHub (Clearing the Confusion)</h3><p>I used to think Git and GitHub were the same thing. They’re not.</p><ul><li><strong>Git</strong> → a version control system (lives on your computer).</li><li><strong>GitHub</strong> → a hosting service for Git repositories (lives online).</li></ul><p>Think of Git as your notebook and GitHub as the cloud drive where you share it with teammates.</p><h3>The Basics: Commands Every Fresher Should Know</h3><p>When you create a new project, this command initializes a Git repository in that folder.</p><pre>git init</pre><p>It basically tells Git, “Hey, start tracking changes here.”</p><p>Why it matters: Every repo begins with this.</p><h3>2. git clone → Copying a Project</h3><p>When I joined, I needed to work on existing repositories. That’s where cloning comes in.</p><pre>git clone https://github.com/user/project.git</pre><p>This downloads the entire repository from GitHub to your local machine.</p><h3>3. git status → My Lifeline</h3><p>This is the one command I run the most. It tells you:</p><ul><li>Which files have changed?</li><li>Which are staged for commit.</li><li>Which branch are you on?</li></ul><pre>git status</pre><p>Why it matters: it keeps you sane.</p><h3>4. git add — Selecting Changes</h3><p>Before committing, you need to tell Git which files to include.</p><pre>git add file.txt<br>git add .</pre><p>git add . stage all changes in the current folder.</p><blockquote>“Stage” means preparing specific changes you’ve made to files so they are ready to be saved (committed) in Git.</blockquote><pre>// Think of it like a waiting area:<br>// You edit files in your working folder (working directory).<br>// When you run git add, you&#39;re moving those changes to the staging area.<br><br>Only the changes you stage will be included in the next git commit.</pre><p>I like to think of it as a shopping cart: you add items before checking out.</p><h3>5. git commit → Saving History</h3><p>Once files are staged, a commit records them permanently in Git’s history.</p><pre>git commit -m &quot;Added login feature&quot;</pre><p>The -m lets you add a message describing the change.</p><p>Why it matters: commits are snapshots of your progress.</p><h3>6. git log → Peeking at the Past</h3><pre>git log</pre><p>This shows all past commits with details like author, date, and message.</p><p>It’s your project’s timeline.</p><h3>7. git branch and git checkout — Parallel Universes</h3><p>Branches let you work on features independently.</p><ul><li>git branch → lists branches.</li><li>git branch feature/login → creates a new branch.</li><li>git checkout feature/login → switches to that branch.</li></ul><p>Pro tip: Use the shortcut git checkout -b feature-login to create <em>and</em> switch in one go.</p><p>Why it matters: branching means you can experiment without touching main.</p><h3>8. git merge → Bringing Work Together</h3><p>After finishing a feature in a branch, you merge it back into main.</p><pre>git checkout main<br>git merge feature-login</pre><p>This integrates the work. Sometimes conflicts appear, which you resolve manually before completing the merge.</p><h3>9. git pull and git push → Syncing with the Team</h3><p>This is where Git meets GitHub.</p><ul><li>git pull → fetches and integrates changes from the remote repo into your local copy.</li><li>git push → sends your local commits to the remote (usually GitHub).</li></ul><p>Together, they keep you in sync with teammates.</p><h3>10. git remote → The Connection</h3><pre>git remote -v</pre><p>Shows the remote repositories linked to your project (like GitHub URLs).</p><p>When you clone, this is set automatically. When you init, you add it with:</p><pre>git remote add origin https://github.com/user/project.git</pre><h3>My First Real Mistake: Breaking Main</h3><p>Remember when I said I pushed directly to main? That happened because I didn’t know the proper workflow.</p><p>Here’s what I learned:</p><ol><li>Always create a branch for your work.</li><li>Push that branch to GitHub.</li><li>Open a Pull Request (PR).</li><li>Get reviews, then merge into main.</li></ol><p>This workflow prevents chaos and gives everyone a chance to review code.</p><h3>GitHub Essentials: Beyond Commands</h3><p>GitHub isn’t just a remote repo; it has powerful features:</p><ul><li><strong>Pull Requests (PRs):</strong> A way to propose changes and discuss them before merging.</li><li><strong>Issues:</strong> Track bugs, enhancements, or tasks.</li><li><strong>Actions:</strong> Automate workflows like testing or deployment.</li><li><strong>Wikis and Docs:</strong> Share knowledge within the repo.</li></ul><p>Learning these turned GitHub from “just storage” into a full collaboration hub for me.</p><h3>Tips That Helped Me Get Comfortable</h3><ul><li><strong>Commit often:</strong> Smaller commits are easier to understand and roll back.</li><li><strong>Write clear messages:</strong> Future you (and teammates) will thank you.</li><li><strong>Don’t fear mistakes:</strong> Git is forgiving — you can revert, reset, and recover almost anything.</li><li><strong>Visualize branches:</strong> Tools like GitKraken or GitHub’s graph view helped me see how branches flow.</li></ul><h3>Why Git Still Intimidates Me (Sometimes)</h3><p>I’ll be honest: advanced concepts like rebase, stash, and resolving hairy merge conflicts still makes me sweat. But I’ve learned that you don’t need to know everything at once. Master the basics first; the rest will come naturally as you face real problems.</p><h3>Final Reflection</h3><p>When I started, Git and GitHub felt like a maze. Now, I see them as a superpower. They allow me to collaborate without fear, experiment freely, and sleep better knowing my history is safe.</p><p>If you’re a fresher like me, don’t worry. The commands may look cryptic, but give it time. One day, you’ll realize that version control isn’t just about code, it’s about trust. Trust in your team, trust in the process, and trust that no matter what happens, you can always roll back and try again.</p><p>So the next time you typegit push, do it with confidence. You’ve got this.</p><h3>End of the Blog:</h3><p>If you liked my efforts and want to support them, then you can donate any amount below:</p><ul><li><strong>For Indian Users: </strong>Pay via UPI =&gt; rachit.singh01@ptyes</li><li><strong>For non-Indian Users:</strong> buymeacoffee.com/rachitsinghh</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=825cc3ae0827" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design 103: Load Balancers Explained]]></title>
            <link>https://100xrachit.medium.com/system-design-103-load-balancers-explained-7f4cb4a192a9?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f4cb4a192a9</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Sat, 04 Oct 2025 15:18:32 GMT</pubDate>
            <atom:updated>2025-10-04T15:21:58.694Z</atom:updated>
            <content:encoded><![CDATA[<p>When you first start building software, everything typically resides on a single server. One app, one database, and life feels simple. But as soon as people actually start using it, that one lonely server begins to sweat. Requests pile up, response times slow down, and before you know it, your “simple” app is begging for help.</p><p>Enter: <strong>the Load Balancer.</strong></p><p>Think of it like the friend in your group project who doesn’t actually write the report but decides <em>who should do which section</em>. That’s exactly what a load balancer does: it doesn’t process the request itself; it just determines which server should.</p><p>Let’s break this down in a way that sticks.</p><h3>Why Do We Need Load Balancers?</h3><p>Imagine you run a burger joint. At first, one cook (your server) can handle everything — grill the patties, toast the buns, and serve the customers. But then your place gets popular. A line stretches out the door. If you rely on just one cook, customers will leave.</p><p>Solution? Hire more cooks (more servers). But now there’s a new problem: who decides which cook takes which order? If every customer just yells their order randomly, chaos ensues.</p><p>You need someone at the counter, the load balancer, to distribute orders evenly so no single cook burns out.</p><p>That’s the entire point of load balancing in system design: <strong>spread traffic so no single server gets crushed.</strong></p><h3>What Exactly Is a Load Balancer?</h3><p>A <strong>load balancer</strong> is a middleman sitting between users and your servers. It:</p><ul><li>Receives requests from clients (users, browsers, apps).</li><li>Decides which backend server should handle the request.</li><li>Forwards the request to that server.</li><li>Returns the response to the client (without them ever knowing which server handled it).</li></ul><p>It makes your system <strong>scalable, reliable, and faster, </strong>three words every engineer dreams of hearing.</p><h3>Types of Load Balancers</h3><p>Like most things in engineering, there’s no one-size-fits-all. Load balancers come in flavors, depending on what layer of the network stack they operate at.</p><ol><li><strong>Layer 4 (Transport Layer) Load Balancers</strong></li></ol><ul><li>Works with IP addresses and TCP/UDP connections.</li><li>Doesn’t care about what’s inside the request, just forwards traffic.</li><li>Example: AWS NLB (Network Load Balancer), HAProxy in TCP mode</li></ul><p>2. <strong>Layer 7 (Application Layer) Load Balancers</strong></p><ul><li>Smarter — understands HTTP headers, cookies, paths, etc.</li><li>Can route based on URL (/api goes to one server, /images goes to another).</li><li>Example: NGINX, AWS ALB (Application Load Balancer).</li></ul><p>So if Layer 4 is like a traffic cop just waving cars left or right, Layer 7 is like Google Maps — giving detailed directions depending on your destination.</p><h3>Load Balancing Algorithms</h3><p>Okay, so how does the load balancer decide which server to pick? This is where algorithms come in.</p><ol><li><strong>Round Robin</strong></li></ol><ul><li>Requests go one-by-one to each server in a loop.</li><li>Simple, fair, but not always efficient if servers have different capacities.</li></ul><p><strong>2</strong>. <strong>Least Connections</strong></p><ul><li>Sends the request to the server with the fewest active connections.</li><li>Useful when requests vary in processing time.</li></ul><p><strong>3</strong>. <strong>IP Hash</strong></p><ul><li>Uses the client’s IP address to always send them to the same server.</li><li>Good for “sticky sessions” (like keeping a logged-in user’s shopping cart alive).</li></ul><p><strong>4. Weighted Round Robin</strong></p><ul><li>Like Round Robin, but some servers get more requests if they’re more powerful.</li></ul><p>Each algorithm has its own use case. The trick isn’t memorizing them, it’s knowing <em>when</em> to use which.</p><h3>Benefits of Using a Load Balancer</h3><ol><li><strong>Scalability</strong></li></ol><ul><li>Add more servers behind the balancer as traffic grows</li><li>Users won’t even notice; they’ll hit the same endpoint</li></ul><p><strong>2. High Availability</strong></p><ul><li>If one server crashes, the load balancer stops sending traffic there.</li><li>Your app doesn’t go down just because one machine did.</li></ul><p><strong>3. Performance Boost</strong></p><ul><li>Requests spread evenly → no single server becomes the bottleneck.</li></ul><p><strong>4. Flexibility</strong></p><ul><li>Can route based on request type, user location, or system load.</li></ul><p>In other words, a load balancer is your <strong><em>first safety net when scaling systems.</em></strong></p><h3>Drawbacks (Because Nothing Is Perfect)</h3><p>Load balancers solve problems, but they also bring their own quirks:</p><ul><li><strong>Single Point of Failure</strong> → If your load balancer itself goes down, everything breaks. (Solution: have multiple load balancers in front of each other).</li><li><strong>Added Latency</strong> → Every request makes an extra “hop” through the balancer. Usually small, but it’s there.</li><li><strong>Complexity</strong> → Managing configs, SSL certificates, health checks, not beginner-friendly at first.</li></ul><p>So yes, they’re powerful, but they’re not “free magic.”</p><h3>Real-World Examples</h3><ul><li><strong>NGINX / HAProxy</strong> → The classic open-source choices. Lightweight, fast, widely used.</li><li><strong>AWS ELB/ALB/NLB</strong> → Cloud-managed, saves you from handling the setup yourself.</li><li><strong>Google Cloud Load Balancer / Azure LB → </strong>Same idea, different cloud flavors.</li></ul><blockquote><strong><em>Some facts</em></strong>: When you hit a big site like YouTube or Instagram, your request is almost certainly going through multiple layers of load balancers before it ever touches their servers.</blockquote><h3>When Should You Add a Load Balancer?</h3><p>Don’t throw in a load balancer “just because it sounds cool.” For small apps, it’s overkill. But here’s when you <em>should</em> consider one:</p><ul><li>When your server CPU usage is constantly high under traffic.</li><li>When the downtime of a single machine would be catastrophic.</li><li>When your user base is geographically spread out.</li></ul><p>If you’re just starting with system design, the mental model is simple:<br> 👉 <strong>One server = fine. Two servers = you need a load balancer.</strong></p><h3>Wrapping It Up</h3><p>Load balancers are like the unsung heroes of system design. Users never see them, most beginners don’t even think about them, but without them, the internet as we know it wouldn’t work. They’re the glue that holds scaling systems together.</p><p>So the next time someone asks why their single EC2 instance is dying under load, you’ll know what to say: <em>“Dude, you need a load balancer.”</em></p><h3>Key Takeaways</h3><ul><li>A load balancer is the <strong>traffic cop/restaurant host</strong> of your system.</li><li>They distribute traffic, improve availability, and enable scaling.</li><li>Algorithms (Round Robin, Least Connections, IP Hash) decide how traffic is routed.</li><li>Layer 4 = basic routing. Layer 7 = smart routing.</li><li>Health checks keep systems alive by avoiding dead servers.</li><li>They’re critical for handling real-world scale (Instagram, Netflix, Amazon).</li></ul><p>💡 <strong>Coming up next in the series</strong>: <em>System Design 104: Caching Strategies You’ll Actually Use</em>. Because once you’ve balanced the load, you’ll want to make things faster without hammering your poor database every second.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f4cb4a192a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Bash Commands for Beginners: A Practical Guide to the Linux Terminal]]></title>
            <link>https://100xrachit.medium.com/mastering-bash-commands-for-beginners-a-practical-guide-to-the-linux-terminal-7c61e27ff092?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c61e27ff092</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 13:37:17 GMT</pubDate>
            <atom:updated>2025-10-05T06:28:40.512Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*GS44c0rljvYiXpA6tls8Jw.jpeg" /></figure><p>When I joined my first job as a fresher (I still am), the one thing that intimidated me wasn’t the code reviews, the meetings, or even the deadlines. It was the black terminal window staring back at me.</p><p>It felt like I’d accidentally stepped into a hacker movie. Text flying, weird symbols, cryptic error messages, and everyone around me seemed to know exactly what they were doing. I, on the other hand, was secretly Googling “what is the ls command?” while trying not to look like I was panicking.</p><p>Here’s the good news: once I got past the initial fear, I realized the terminal isn’t scary at all. It’s powerful, efficient, and in many ways, simpler than dragging windows around with a mouse.</p><p>In this article, I’ll walk you through the <strong>most-used Bash commands</strong> that every beginner should know. I’ll explain <strong><em>what they do, why they matter, and how you can use them daily</em></strong>. Consider this a survival guide from someone who’s still fresh on the journey.</p><h3>Why the Terminal Matters</h3><p>Before we jump in, let’s answer the obvious: why bother with commands when you can just use a GUI (graphical interface)?</p><p>Here’s why:</p><ul><li><strong>Speed:</strong> A few keystrokes can do what takes minutes in a GUI.</li><li><strong>Control:</strong> You can chain commands, automate tasks, and dig deeper.</li><li><strong>Universality:</strong> Terminals work the same across servers, remote systems, and different operating systems.</li><li><strong>Respect:</strong> Let’s be honest, nothing feels cooler than typing a command and watching the system obey instantly.</li></ul><p>Okay, now let’s dive into the essentials.</p><h3>1. pwd — Where the heck am I?</h3><p>The first thing I learned was that the terminal doesn’t show you where you are, like Windows Explorer does. You could be lost inside nested directories without realizing it.</p><p>That’s where pwd (Print Working Directory) comes in.</p><pre>pwd</pre><p>This command spits out the <strong>full path</strong> of your current location. Example:</p><pre>/home/your-name/projects/my-app</pre><h4>Why it matters:</h4><ul><li>Keeps you oriented.</li><li>Useful when you’re writing scripts that depend on absolute paths.</li></ul><h3>2. ls — What’s inside this folder?</h3><p>ls It&#39;s like peeking into a folder. It lists files and directories in your current location.</p><pre>ls</pre><p>But here’s the trick: add flags to make it powerful.</p><ul><li>ls -l → long listing with details like permissions, size, and dates.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*Rw3AOnb5KXpQY-yZvSHlaA.png" /></figure><ul><li>ls -a → shows hidden files (those starting with a dot).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*buFv4DySB2H7Y4xEt0xl6Q.png" /></figure><ul><li>ls -lh → human-readable file sizes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*AJ52T_z3tKZ1kGNuFtf2hA.png" /></figure><p>Example:</p><pre>ls -lah</pre><p>This will show everything, neatly formatted, with sizes like 1.2K instead of scary bytes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*9w70kLTrbPTRT9mXbGf1hg.png" /></figure><h3>3. cd — Moving around</h3><p>To move between directories, you use cd (change directory).</p><pre>cd foldername</pre><p>Some handy shortcuts I wish I knew earlier:</p><ul><li>cd .. → go one step back (parent directory).</li><li>cd ~ / cd→ jump to your home directory.</li><li>cd - → jump back to the last directory you were in.</li></ul><p>It’s like teleporting across your file system.</p><h3>4. touch and mkdir — Creating files and folders</h3><p>If you’re coding, you’ll constantly need new files and folders.</p><ul><li>touch file.txt → creates an empty file.</li><li>mkdir project → creates a new directory.</li><li>mkdir -p a/b/c → creates nested directories in one shot.</li></ul><p>These commands save you from having to right-click → new → file/folder a hundred times.</p><h3>5. cat, less, and head/tail — Looking inside files</h3><p>Opening a file in a text editor is fine, but sometimes you just need a quick peek.</p><ul><li>cat file.txt → prints the entire file to the terminal.</li><li>less file.txt → lets you scroll through the file one page at a time.</li><li>head file.txt → shows the first 10 lines.</li><li>tail file.txt → shows the last 10 lines.</li><li>tail -f file.txt → live updates the end of the file (perfect for logs).</li></ul><p>Example:</p><pre>tail -f server.log</pre><p>I use this almost daily when debugging. Watching logs stream live is oddly satisfying.</p><h3>6. cp, mv, and rm — Moving stuff around</h3><p>Three essentials for file management:</p><ul><li>cp file.txt backup.txt → copy files.</li><li>mv file.txt newfolder/ → move (or rename) files.</li><li>rm file.txt → delete a file.</li></ul><p>⚠️ rm is ruthless. It doesn’t have a recycle bin. Once deleted, it’s gone.<br> Use rm -r folder to remove directories and their contents.</p><p>Pro tip: If you’re scared (I was), use rm -i file.txt to get a confirmation prompt before deleting.</p><h3>7. grep — Finding text like a pro</h3><p>One day, I had to find every place where the word “error” appeared inside thousands of log lines. Scrolling was impossible.</p><p>Enter grep:</p><pre>grep &quot;error&quot; server.log</pre><p>This instantly highlights every line containing the word “error.”</p><p>You can combine it with other commands:</p><pre>cat server.log | grep &quot;timeout&quot;</pre><p>Why it matters: grep is your best friend when you need to <strong>search through text</strong> quickly.</p><h3>8. find — Hunting files down</h3><p>Ever forgotten where you saved something? find is the detective.</p><pre>find . -name &quot;*.js&quot;</pre><p>This searches the current directory (.) and its subfolders for any file ending with .js.</p><p>It’s like Spotlight or Windows search, but faster and customizable.</p><h3>9. history — Your personal time machine</h3><p>The terminal remembers your past commands.</p><pre>history</pre><p>You’ll see a numbered list of everything you typed recently.</p><p>Shortcut magic:</p><ul><li>!! → repeats your last command.</li><li>!45 → runs command number 45 from history.</li></ul><p>This saved me countless times when I forgot a long, complex command.</p><h3>10. man — The built-in teacher</h3><p>Every command has a manual. To read it, type:</p><pre>man ls</pre><p>It opens the manual page forlsexplaining all the options and usage.</p><p>Yes, it looks dense, but once you learn to skim it, man is a lifesaver.</p><h3>Bonus: Chaining Commands</h3><p>Best things happen when you combine commands:</p><ul><li>ls | grep &quot;.js&quot; → list only JavaScript files.</li><li>cd project &amp;&amp; npm start → change directory and run a command.</li><li>cp file.txt backup.txt &amp;&amp; echo &quot;Backup done!&quot; → run something after success.</li></ul><p>This chaining ability makes the terminal insanely powerful.</p><h3>What I Learned Along the Way</h3><p>When I started, I thought the terminal was just an old-school relic. Now, I see it differently:</p><ul><li>It <strong>teaches discipline</strong> — you have to be precise.</li><li>It <strong>saves time</strong> — repetitive tasks turn into one-liners.</li><li>It <strong>feels empowering</strong> — you’re not just clicking, you’re commanding.</li></ul><p>Most importantly, it gave me confidence. I stopped feeling like an imposter when I saw senior developers flying through commands, because I could do it too.</p><h3>Final Words</h3><p>If you’re new and the terminal looks scary, remember this: every senior developer you admire once typed ls for the first time and got confused.</p><p>Start with the basics, practice daily, and soon you’ll realize the terminal isn’t just another tool. It’s your <strong>superpower</strong>.</p><p>And who knows? Maybe one day you’ll be the one typing commands so fast that a fresher next to you thinks, “Wow, they look like a hacker. Or he must be a really senior dev.”</p><p>If you liked my efforts and want to support them, then you can donate any amount below:</p><h3>End of the Blog:</h3><ul><li><strong>For Indian Users: </strong>Pay via UPI =&gt; rachit.singh01@ptyes</li><li><strong>For non-Indian Users:</strong> buymeacoffee.com/rachitsinghh</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c61e27ff092" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design 102: Databases Made Simple]]></title>
            <link>https://100xrachit.medium.com/system-design-102-databases-made-simple-708e9a5a77a2?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/708e9a5a77a2</guid>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 06:06:28 GMT</pubDate>
            <atom:updated>2025-10-03T06:06:28.358Z</atom:updated>
            <content:encoded><![CDATA[<p>Databases are the beating heart of almost every system you use. Instagram posts, Netflix watchlists, Amazon orders, all of it lives in some database.</p><p>Here’s the tricky part: for beginners, databases feel like this giant black box where data magically gets stored and retrieved. But once you peel back the layers, the concepts aren’t as scary as they seem.</p><h3>Step 1: What Even Is a Database?</h3><p>At its simplest, <em>a database is just a structured way of storing information so you can get it back later.</em></p><ul><li>Your phone contacts list? That’s a database.</li><li>A spreadsheet with your expenses? Also, a database.</li><li>Amazon’s entire product catalog? Yep, just a much bigger database.</li></ul><p>So the first principle is: <strong><em>a database is not mysterious. It’s structured storage + retrieval.</em></strong></p><h3>Step 2: Two Big Families — SQL vs. NoSQL</h3><p>If you hang around engineers, you’ll hear debates like “We should use MongoDB, not Postgres” or “SQL is dead!”</p><p>Here’s the deal: databases mainly fall into two camps.</p><h3>1. SQL Databases (Relational)</h3><p>Examples: MySQL, PostgreSQL, Oracle, SQL Server</p><ul><li>Data is stored in <strong>tables</strong> (like spreadsheets).</li><li>You define a <strong>schema</strong> (rules for your data, like column types).</li><li>You query data using <strong>SQL</strong> (Structured Query Language).</li></ul><p>Think of SQL databases like a very strict librarian. Everything is neatly organized in rows and columns. You can do powerful joins (connect data from multiple tables), and the system makes sure your data is consistent.</p><p><strong>Use SQL when:</strong> your data has a clear structure and relationships. (e.g., banking, e-commerce, inventory systems)</p><h3>2. NoSQL Databases (Non-relational)</h3><p>Examples: MongoDB, Cassandra, Redis, DynamoDB</p><ul><li>Data is stored in more flexible formats: documents, key-value pairs, graphs, or wide columns.</li><li>No rigid schema; you can add fields on the fly.</li><li>Designed for speed, scalability, and handling messy, evolving data.</li></ul><p>Think of NoSQL like a free-spirited roommate. They don’t care if your shoes go in the fridge, as long as you can find them later, it’s fine.</p><p><strong>Use NoSQL when:</strong> you need flexibility, huge scale, or speed. (e.g., social media feeds, caching, real-time analytics)</p><h3>Step 3: ACID vs. BASE</h3><p>This sounds like chemistry class, but it’s really about how databases behave under pressure.</p><h3>ACID (SQL’s Strength)</h3><ul><li><strong>Atomicity</strong>: All or nothing. (Your bank transfer either fully succeeds or doesn’t happen at all.)</li><li><strong>Consistency</strong>: Data always follows rules. (No negative balances allowed.)</li><li><strong>Isolation</strong>: Transactions don’t mess with each other.</li><li><strong>Durability</strong>: Once saved, it stays saved, even if the power goes out.</li></ul><h3>BASE (NoSQL’s Strength)</h3><ul><li><strong>Basically Available</strong>: The system is almost always up.</li><li><strong>Soft state</strong>: Data might be temporarily inconsistent.</li><li><strong>Eventually consistent</strong>: Data becomes correct over time.</li></ul><p>In short: <strong>SQL = safety, NoSQL = flexibility.</strong></p><h3>Step 4: Reads vs. Writes</h3><p>Here’s where system design gets real. Every database has to juggle two main tasks:</p><ul><li><strong>Reads</strong>: Fetching data (e.g., show me all orders by user X).</li><li><strong>Writes</strong>: Adding/updating data (e.g., user X places a new order).</li></ul><p><strong>The balance of reads vs. writes determines how you design your system.</strong></p><ul><li><strong>Read-heavy apps</strong> (like news sites): caching and replication are your best friends.</li><li><strong>Write-heavy apps</strong> (like stock trading platforms): sharding and high-speed storage matter more.</li></ul><p>No database is perfect at both extremes, so you design around what you need most.</p><h3>Step 5: Scaling Databases</h3><p>Remember from the last post (Scaling Basics) that databases are usually the biggest bottleneck. Let’s talk about how engineers fix that.</p><h3>1. Replication</h3><p>You keep multiple copies of the same database.</p><ul><li><strong>Primary</strong> (handles writes)</li><li><strong>Replicas</strong> (handle reads)</li></ul><p>This way, you spread the load. Instagram uses this, so billions of read requests (loading posts) don’t kill their main database.</p><h3>2. Sharding</h3><p>Instead of replicating, you split your data across machines.</p><ul><li>User A–M on one server</li><li>User N–Z on another</li></ul><p>This is like dividing a classroom into groups so not everyone is asking the teacher questions at once.</p><h3>3. Caching</h3><p>Databases are expensive to query repeatedly. So you stash frequently-used results in a fast storage layer (Redis, Memcached).</p><p>Think of it as keeping snacks on your desk instead of going to the kitchen every 5 minutes.</p><h3>Step 6: Transactions &amp; Concurrency</h3><p>Here’s where the real fun begins.</p><p>Imagine two people trying to book the last concert ticket at the same time. Without proper handling, the system might sell it twice.</p><p>Databases solve this with <strong>transactions</strong> and <strong>locks</strong>.</p><ul><li>A <strong>transaction</strong> group steps together. (Check if ticket exists → deduct ticket → confirm booking.)</li><li>A <strong>lock</strong> ensures no one else messes with that ticket until you’re done.</li></ul><p>SQL databases handle this really well. NoSQL often relaxes these rules for speed.</p><h3>Step 7: Query Optimization</h3><p>Beginners(like me) often think: “If I write a query, the database will handle the rest.”</p><p>Not quite. Queries can be fast or painfully slow.</p><ul><li><strong>Indexes</strong>: Like an index in a book, they let you find rows faster.</li><li><strong>Joins</strong>: Super powerful, but can get slow if abused.</li><li><strong>Denormalization</strong>: Storing some duplicate data to avoid complex joins.</li></ul><p>Good engineers don’t just store data — they think about how it will be used.</p><h3>Step 8: Real-World Examples</h3><p>Let’s make this less abstract.</p><h4><strong>Instagram</strong>:</h4><ul><li>Stores user data, posts, and comments in SQL (Postgres).</li><li>Uses Redis for caching feeds.</li><li>Uses sharding and replication for scalability.</li></ul><h4><strong>Amazon</strong>:</h4><ul><li>Product catalog = SQL (structured, consistent).</li><li>Shopping cart = NoSQL (fast, flexible, temporary).</li><li>Search = ElasticSearch (specialized database for text search).</li></ul><h4><strong>Banking:</strong></h4><ul><li>Almost always SQL (ACID guarantees are critical).</li><li>Writes must be reliable; no “eventual” balance updates.</li></ul><h3>Step 9: Mental Models</h3><p>Here’s a way to think about databases without jargon.</p><ul><li><strong>SQL</strong> = a school with strict teachers, clear rules, and well-structured classes.</li><li><strong>NoSQL</strong> = a startup coworking space, messy, flexible, and fast-moving.</li><li><strong>Replication</strong> = photocopying notes for everyone.</li><li><strong>Sharding</strong> = splitting students into different classrooms.</li><li><strong>Caching</strong> = keeping cheat sheets in your pocket.</li></ul><p>When you picture it this way, scaling databases stops feeling scary and starts feeling logical.</p><h3>Key Takeaways</h3><ul><li>Databases are just structured storage and retrieval.</li><li>SQL =&gt; rigid, safe, consistent. NoSQL =&gt; flexible, fast, scalable.</li><li>ACID vs BASE is the trade-off you always face.</li><li>Reads vs. writes matter for design.</li><li>Scaling uses replication, sharding, and caching.</li><li>Real-world systems often mix and match multiple databases.</li></ul><h3>What’s Next</h3><p>This was <strong>System Design 102: Databases Made Simple</strong>. In the next post, we’ll dig into something you <em>cannot</em> skip as a system designer:</p><p><strong>System Design 103: Load Balancers Explained.</strong></p><p>That’s the unsung hero that decides which server gets your request and keeps the whole system from toppling over.</p><h3>Final Thought</h3><p>You don’t have to memorize every database type. What matters is developing intuition:</p><ul><li>What kind of data do I have?</li><li>How strict do I need to be about correctness?</li><li>Am I optimizing for speed, scale, or safety?</li></ul><p>If you can answer those, choosing and designing databases stops being overwhelming and starts being a craft.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=708e9a5a77a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Zoho Creator Might Be the Most Underrated Tool You’re Not Using Yet]]></title>
            <link>https://100xrachit.medium.com/why-zoho-creator-might-be-the-most-underrated-tool-youre-not-using-yet-6c4fc45c9c4e?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c4fc45c9c4e</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 03:39:19 GMT</pubDate>
            <atom:updated>2025-10-02T03:39:19.444Z</atom:updated>
            <content:encoded><![CDATA[<p>When most people think about building apps, they imagine lines of code flying across the screen, coffee-fueled developers hammering away at keyboards, and endless sprints that cost both time and money.</p><p>But here’s the truth: building powerful business apps no longer has to look like that.</p><p>And this is where <strong>Zoho Creator</strong> sneaks into the conversation, quietly, without the hype of Salesforce or the startup-y buzz of Airtable. It’s one of those tools that you probably scrolled past once, didn’t think much about, but could genuinely transform the way your team builds and scales solutions.</p><p>Let’s break down what makes Zoho Creator so interesting, and why ignoring it might be a mistake.</p><h3>First, what even is Zoho Creator?</h3><p>In simple words, Zoho Creator is a <strong>low-code application development platform</strong>.</p><p>Translation? It lets you design and deploy fully functional apps, web, mobile, and even AI-powered apps with minimal coding. You drag, drop, and configure most of it. When you need more control, you sprinkle in their scripting language, <strong>Deluge</strong> (which is surprisingly easy to learn compared to traditional programming).</p><p>Imagine wanting to build:</p><ul><li>An inventory management app for your warehouse.</li><li>A leave-tracking system for your HR team.</li><li>A customer feedback dashboard that integrates with your CRM.</li></ul><p>Traditionally, you’d either buy off-the-shelf tools (and compromise on customization) or hire developers (and compromise on budget + timeline).</p><p>Zoho Creator sits in the middle: <strong>custom-built, but without the painful build cycle.</strong></p><h3>Why should you even care?</h3><p>Because in 2025, speed is everything. Businesses that adapt fast win. Businesses that wait for IT to “get around to it” don’t.</p><p>Zoho Creator gives teams the ability to:</p><ul><li><strong>Prototype in hours, not weeks.</strong></li><li><strong>Empower non-technical staff</strong> (think HR, operations, finance) to design their own workflows.</li><li><strong>Scale from one team to the entire organization</strong> without breaking things.</li></ul><p>That last point matters more than people realize. Many low-code tools are fine until you grow. Zoho Creator, being part of the larger Zoho ecosystem (think Zoho CRM, Zoho Books, Zoho Analytics), has the advantage of <strong>native integrations</strong> baked in. That’s a serious time-saver.</p><h3>The underrated superpowers of Zoho Creator</h3><p>Here’s where things get juicy. A lot of platforms promise “no-code/low-code magic,” but they often disappoint when pushed beyond simple use cases. Zoho Creator, though, hides some real depth.</p><h3>1. Cross-platform apps by default</h3><p>You don’t build separately for web and mobile. The app you create in Zoho Creator automatically works on iOS, Android, and desktop browsers. That’s one headache gone.</p><h3>2. Automations and workflows</h3><p>Their scripting language, Deluge, isn’t intimidating. It’s written in plain English logic, so instead of sweating over syntax errors, you can focus on workflows. Example:</p><ul><li>“When a new record is added, send a WhatsApp message to the assigned manager.”<br> That’s literally a few lines in Deluge.</li></ul><h3>3. AI baked in</h3><p>Without needing to understand machine learning, you can use Creator’s AI tools for things like:</p><ul><li>Text extraction from documents.</li><li>Sentiment analysis.</li><li>Predictive analytics on your data.</li></ul><h3>4. Integrations that actually matter</h3><p>Creator plays well with not just Zoho’s 45+ apps, but also with external services via APIs, Zapier, and custom connectors. Salesforce, Google Workspace, QuickBooks, Slack, it’s all on the table.</p><h3>5. Scalability &amp; Governance</h3><p>This is where many “no-code” tools fail. Creator lets IT teams step in to manage permissions, enforce security, and monitor usage, so citizen developers don’t end up creating a shadow IT mess.</p><h3>Real-world examples (where this isn’t just theory)</h3><ul><li><strong>Logistics company</strong>: Built a shipment-tracking system with barcode scanning in Zoho Creator. No external vendor, no six-month development wait.</li><li><strong>Schools</strong>: Managing attendance, parent communication, and fee payments inside custom-built apps.</li><li><strong>Healthcare clinics</strong>: Appointment booking + patient records + billing, all in one Creator app.</li><li><strong>Startups</strong>: Testing MVPs fast before committing to full development.</li></ul><p>In short, it’s versatile enough for enterprises, but scrappy enough for small businesses.</p><h3>What Zoho Creator gets right that others don’t</h3><p>Let’s be real. The “low-code/no-code” market is crowded. Airtable, Bubble, Mendix, OutSystems, and even PowerApps from Microsoft, everyone’s playing.</p><p>But Zoho Creator’s unique advantages are:</p><ol><li><strong>Affordability.</strong> Pricing starts at a point where small businesses can actually commit. Some competitors are enterprise-priced only.</li><li><strong>Ecosystem strength.</strong> Already using Zoho CRM, Books, or Desk? Creator connects natively. That synergy is gold.</li><li><strong>Balanced complexity.</strong> You can start with drag-and-drop. But when your app needs to scale, you won’t hit a dead end. Deluge scripting + APIs give it depth.</li></ol><h3>The learning curve (and the honest drawbacks)</h3><p>Now, let’s not romanticize it. Zoho Creator isn’t perfect.</p><ul><li><strong>UI can feel dated.</strong> It works fine, but compared to the shiny, modern look of Airtable or Notion, it’s not as “sexy.”</li><li><strong>Deluge, while simple, is still coding.</strong> If your team truly wants zero code, there will be resistance.</li><li><strong>Documentation overload.</strong> Zoho has <em>so much</em> documentation that beginners sometimes get lost. The learning path could be smoother.</li></ul><p>But if you’re willing to invest a week in exploring it, the ROI can be massive.</p><h3>Who should seriously consider Zoho Creator?</h3><ul><li><strong>Small and mid-sized businesses</strong> that can’t afford a dev team but need custom solutions.</li><li><strong>Operations-heavy teams</strong> (logistics, retail, manufacturing) that need workflows tailored to their reality.</li><li><strong>Startups</strong> that want to test MVPs without burning cash.</li><li><strong>Enterprises</strong> looking to give business users more autonomy while keeping IT in control.</li></ul><h3>My verdict after digging into it</h3><p>Zoho Creator isn’t loud. It doesn’t have the Silicon Valley halo effect. It doesn’t trend on Product Hunt every other month.</p><p>But it’s steady, powerful, and ridiculously practical.</p><p>If you’re tired of waiting on IT queues or frustrated by tools that almost fit your workflow but not quite, Zoho Creator is worth experimenting with. The best part? You can start free, play around, and see if it clicks.</p><p>Here’s the thing: businesses often waste energy searching for the “perfect tool.” In reality, the perfect tool is the one that adapts to <em>you</em>.</p><p>Zoho Creator does exactly that.</p><h3>Final thought</h3><p>The future isn’t code vs no-code. It’s about flexibility. Tools that let you start simple and grow complex. Tools that empower both the non-techie and the developer. Tools that bring ideas to life faster than ever.</p><p>And Zoho Creator?<br> It’s not just underrated. It’s probably one of the best-kept secrets in app development today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c4fc45c9c4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design 101: Scaling Basics]]></title>
            <link>https://100xrachit.medium.com/system-design-101-scaling-basics-e6cf77e4146d?source=rss-4fe746ed1ea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6cf77e4146d</guid>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <dc:creator><![CDATA[Rachitsingh]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 03:18:43 GMT</pubDate>
            <atom:updated>2025-10-02T03:18:43.471Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever wondered why apps slow down when more people start using them, or how companies like Instagram or Netflix keep running smoothly even with millions of users, you’ve brushed up against the idea of <strong>scaling</strong>.</p><p>Scaling is just a fancy way of saying: <em>how do we ensure our system continues to work well as demand grows?</em></p><p>Let’s break it down.</p><h3>The Two Flavors of Scaling</h3><p>When engineers talk about scaling, they usually mean one of two things:</p><h3>1. Vertical Scaling (Scale Up)</h3><p>This is the simplest approach. You add more power to your existing machine: bigger CPU, more RAM, faster storage. Imagine upgrading your laptop to a high-end MacBook Pro — same laptop, just beefed up.</p><ul><li><strong>Pros</strong>: Easy to do, no code changes required.</li><li><strong>Cons</strong>: There’s a limit. You can’t just keep adding RAM forever. And it can get expensive.</li></ul><h3>2. Horizontal Scaling (Scale Out)</h3><p>Instead of making one machine stronger, you add more machines. This is like opening more checkout counters in a grocery store instead of hiring one superhero cashier.</p><ul><li><strong>Pros</strong>: No hard ceiling. You can keep adding servers as your users grow.</li><li><strong>Cons</strong>: Harder to manage. Your system now needs to coordinate across multiple machines.</li></ul><h3>The Core Problem: Bottlenecks</h3><p>Scaling conversations almost always start with this question: <em>What’s slowing us down?</em></p><p>Here are a few common bottlenecks you’ll run into:</p><ul><li><strong>CPU-bound</strong>: Your server is crunching too much data at once.</li><li><strong>Memory-bound</strong>: You don’t have enough RAM to hold active data.</li><li><strong>I/O-bound</strong>: Your disk or network is the slow part.</li></ul><p>Spotting bottlenecks is half the job. Fixing them is where design choices come in.</p><h3>Patterns You’ll Hear Over and Over</h3><p>Let’s look at three beginner-friendly patterns that show up in almost every scaling story.</p><h3>1. Caching</h3><p>If you keep asking the database the same question, things slow down. Instead, you can store frequently-needed answers in a <strong>cache</strong> (like Redis or Memcached).</p><p>It’s like keeping your favorite snacks on your desk instead of walking to the kitchen every time.</p><h3>2. Load Balancing</h3><p>When you scale horizontally, you need a traffic cop that decides which server handles which request. That’s what a <strong>load balancer</strong> does.</p><p>Without one, you’d have users piling up at one checkout counter while the others stand empty.</p><h3>3. Database Replication &amp; Sharding</h3><p>Databases are often the biggest choke point. To scale them, you can either:</p><ul><li><strong>Replicate</strong>: Keep copies of your database across machines. Great for reads (lots of people asking the same question).</li><li><strong>Shard</strong>: Split your data across machines. One server holds users A–M, another holds N–Z. Great for writes (lots of people adding new data).</li></ul><h3>Scaling Isn’t Just Technical</h3><p>Here’s the thing: scaling is as much about trade-offs as it is about tech.</p><ul><li><strong>More caching</strong> = faster responses, but you risk serving stale data.</li><li><strong>More servers</strong> = better performance, but harder coordination.</li><li><strong>Sharding</strong> = write scalability, but complex queries can get messy.</li></ul><p>In other words, there’s no free lunch. Every choice solves one problem while introducing new challenges.</p><h3>A Mental Model That Helps</h3><p>Think of scaling like planning a party.</p><ul><li><strong>Vertical scaling</strong> = renting a bigger hall.</li><li><strong>Horizontal scaling</strong> = opening multiple smaller halls and spreading guests across them.</li><li><strong>Caching</strong> = pre-making snacks so you’re not stuck in the kitchen.</li><li><strong>Load balancing</strong> = your friend at the door, pointing guests to the right hall.</li><li><strong>Sharding</strong> = assigning guests by last name to different tables.</li></ul><p>When you frame it this way, scaling stops feeling like abstract jargon and starts making sense as just logistics.</p><h3>Key Takeaways</h3><ul><li>Scaling = handling growth without breaking.</li><li>Two main strategies: scale up (vertical) or scale out (horizontal).</li><li>Bottlenecks tell you where to focus: CPU, memory, disk, or network.</li><li>Core tools in your toolkit: caching, load balancing, replication, and sharding.</li><li>Every fix comes with trade-offs.</li></ul><h3>What’s Next in the Series</h3><p>This post is the first in a beginner-friendly series. Here’s the roadmap:</p><ul><li><strong>System Design 101: Scaling Basics</strong> (this post)</li><li><strong>System Design 102: Databases Made Simple</strong></li><li><strong>System Design 103: Load Balancers Explained</strong></li><li><strong>System Design 104: Caching Strategies You’ll Actually Use</strong></li><li><strong>System Design 105: High Availability and Fault Tolerance</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6cf77e4146d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>