<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Omja sharma</title>
    <description>The latest articles on DEV Community by Omja sharma (@omjasharma).</description>
    <link>https://dev.to/omjasharma</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3868170%2F57c5bdca-470d-4f1b-9b53-10d996d4bb15.jpg</url>
      <title>DEV Community: Omja sharma</title>
      <link>https://dev.to/omjasharma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omjasharma"/>
    <language>en</language>
    <item>
      <title>System Design Basics: How Systems Actually Scale</title>
      <dc:creator>Omja sharma</dc:creator>
      <pubDate>Wed, 08 Apr 2026 21:22:57 +0000</pubDate>
      <link>https://dev.to/omjasharma/system-design-basics-how-systems-actually-scale-1oe6</link>
      <guid>https://dev.to/omjasharma/system-design-basics-how-systems-actually-scale-1oe6</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F90foitsp39ggnb9icyyi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F90foitsp39ggnb9icyyi.png" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Most systems don’t start distributed. They start simple and evolve with scale.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here’s the typical flow.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Single Server
&lt;/h2&gt;

&lt;p&gt;Everything runs on one machine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;application&lt;/li&gt;
&lt;li&gt;database
Easy to build, easy to break.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Split Application and Database
&lt;/h2&gt;

&lt;p&gt;Move database to a separate server.&lt;br&gt;
&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;better performance&lt;/li&gt;
&lt;li&gt;independent scaling&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Horizontal Scaling
&lt;/h2&gt;

&lt;p&gt;Add multiple application servers.&lt;br&gt;
Now the system can handle more traffic.&lt;br&gt;
&lt;strong&gt;Problem:&lt;/strong&gt;&lt;br&gt;
How do users reach the right server?&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Load Balancer
&lt;/h2&gt;

&lt;p&gt;Distributes incoming requests across servers.&lt;br&gt;
&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;avoids overload&lt;/li&gt;
&lt;li&gt;improves availability&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  5. Database Replication
&lt;/h2&gt;

&lt;p&gt;Primary database handles writes&lt;br&gt;&lt;br&gt;
Replicas handle reads&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;reduces load on primary&lt;/li&gt;
&lt;li&gt;improves read performance&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  6. Caching
&lt;/h2&gt;

&lt;p&gt;Use Redis or in-memory cache.&lt;br&gt;
&lt;strong&gt;Store:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;frequently accessed data&lt;/li&gt;
&lt;li&gt;session data
&lt;strong&gt;Benefits:&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;faster responses&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  - fewer database queries
&lt;/h2&gt;

&lt;h2&gt;
  
  
  7. CDN
&lt;/h2&gt;

&lt;p&gt;Serve static files closer to users.&lt;br&gt;
&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;lower latency&lt;/li&gt;
&lt;li&gt;reduced backend load&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  8. Message Queue
&lt;/h2&gt;

&lt;p&gt;Use queues for async work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;emails&lt;/li&gt;
&lt;li&gt;notifications&lt;/li&gt;
&lt;li&gt;background jobs
&lt;strong&gt;Benefits:&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;decouples system&lt;/li&gt;
&lt;li&gt;improves reliability&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  9. Database Sharding
&lt;/h2&gt;

&lt;p&gt;Split data across multiple databases.&lt;br&gt;
&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;handles large scale
&lt;strong&gt;Tradeoff:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  - added complexity
&lt;/h2&gt;

&lt;h2&gt;
  
  
  10. Monitoring
&lt;/h2&gt;

&lt;p&gt;Track:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;latency&lt;/li&gt;
&lt;li&gt;errors&lt;/li&gt;
&lt;li&gt;traffic
Without this, you are blind.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Key Idea&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Systems are not designed for scale from day one. They evolve as bottlenecks appear.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
