<?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>Forem: Edna112</title>
    <description>The latest articles on Forem by Edna112 (@edna112).</description>
    <link>https://forem.com/edna112</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%2F1484103%2F883483a4-6d85-4eec-8fe8-87148fcbf505.png</url>
      <title>Forem: Edna112</title>
      <link>https://forem.com/edna112</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/edna112"/>
    <language>en</language>
    <item>
      <title>Keep The System Alive</title>
      <dc:creator>Edna112</dc:creator>
      <pubDate>Fri, 24 Apr 2026 08:47:28 +0000</pubDate>
      <link>https://forem.com/edna112/keep-the-system-alive-2gc1</link>
      <guid>https://forem.com/edna112/keep-the-system-alive-2gc1</guid>
      <description>&lt;p&gt;The bug wasn’t in the code.&lt;/p&gt;

&lt;p&gt;It was in the traffic.&lt;/p&gt;

&lt;p&gt;A friend showed me his metrics after a product launch.&lt;/p&gt;

&lt;p&gt;Nothing unusual in the logs. No obvious errors, Just one thing:&lt;/p&gt;

&lt;p&gt;A sudden spike in requests. Seconds later…The system went down.&lt;/p&gt;

&lt;p&gt;The problem&lt;/p&gt;

&lt;p&gt;The system tried to handle every request immediately.&lt;/p&gt;

&lt;p&gt;No limits.&lt;/p&gt;

&lt;p&gt;No control.&lt;/p&gt;

&lt;p&gt;What was happening?&lt;/p&gt;

&lt;p&gt;When traffic increased:&lt;/p&gt;

&lt;p&gt;• every request hit the API&lt;/p&gt;

&lt;p&gt;• every request hit the database&lt;/p&gt;

&lt;p&gt;• every process started at once&lt;/p&gt;

&lt;p&gt;The system didn’t slow down. It overloaded. Why this is dangerous:&lt;/p&gt;

&lt;p&gt;Traffic spikes are normal.&lt;/p&gt;

&lt;p&gt;But without control:&lt;/p&gt;

&lt;p&gt;Your system becomes unstable under pressure.&lt;/p&gt;

&lt;p&gt;The solution&lt;/p&gt;

&lt;p&gt;You don’t just scale systems, You regulate them.&lt;/p&gt;

&lt;p&gt;Two key strategies:&lt;/p&gt;

&lt;p&gt;Rate limiting&lt;/p&gt;

&lt;p&gt;• restrict how many requests a client can send&lt;/p&gt;

&lt;p&gt;• protect your system from abuse or spikes&lt;/p&gt;

&lt;p&gt;Backpressure&lt;/p&gt;

&lt;p&gt;• control how much work your system processes internally&lt;/p&gt;

&lt;p&gt;• queue, delay, or reject excess load&lt;/p&gt;

&lt;p&gt;Together, they do one thing:&lt;/p&gt;

&lt;p&gt;Keep your system stable under pressure.&lt;/p&gt;

&lt;p&gt;Mental model&lt;/p&gt;

&lt;p&gt;Think of a highway during rush hour. Without traffic lights or limits… Everything stops. Control the flow…And movement continues.&lt;/p&gt;

&lt;p&gt;The lesson&lt;/p&gt;

&lt;p&gt;Performance isn’t just about speed, It’s about control.&lt;/p&gt;

&lt;p&gt;Takeaway&lt;/p&gt;

&lt;p&gt;A stable system doesn’t accept everything.&lt;/p&gt;

&lt;p&gt;It knows when to say:&lt;/p&gt;

&lt;p&gt;“Not now.”&lt;/p&gt;

&lt;h1&gt;
  
  
  backend #systemdesign #scalability #softwareengineering #laravel
&lt;/h1&gt;

</description>
      <category>architecture</category>
      <category>performance</category>
      <category>sre</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>The Database Bottleneck</title>
      <dc:creator>Edna112</dc:creator>
      <pubDate>Wed, 22 Apr 2026 10:50:05 +0000</pubDate>
      <link>https://forem.com/edna112/the-database-bottleneck-31m5</link>
      <guid>https://forem.com/edna112/the-database-bottleneck-31m5</guid>
      <description>&lt;p&gt;“It was fast… until users showed up.”&lt;/p&gt;

&lt;p&gt;That’s what I told a friend when we were debugging his system.&lt;/p&gt;

&lt;p&gt;Everything looked good at the start. Few users, Fast responses, Clean architecture. Then traffic increased.&lt;/p&gt;

&lt;p&gt;And suddenly…&lt;/p&gt;

&lt;p&gt;Everything slowed down.&lt;/p&gt;

&lt;p&gt;Not crashed.&lt;/p&gt;

&lt;p&gt;Just… slower.&lt;/p&gt;

&lt;p&gt;The problem&lt;/p&gt;

&lt;p&gt;Every request depended on the database. Each time a user did anything:&lt;/p&gt;

&lt;p&gt;• fetch data&lt;/p&gt;

&lt;p&gt;• update records&lt;/p&gt;

&lt;p&gt;• check balances&lt;/p&gt;

&lt;p&gt;The system went straight to the database. At small scale? No issue.&lt;/p&gt;

&lt;p&gt;At scale? Every request starts competing. What was happening?&lt;/p&gt;

&lt;p&gt;The database became the bottleneck.&lt;/p&gt;

&lt;p&gt;Too many reads.&lt;/p&gt;

&lt;p&gt;Too many writes.&lt;/p&gt;

&lt;p&gt;Too many queries happening at the same time. And unlike your app servers…&lt;/p&gt;

&lt;p&gt;You can’t scale a database infinitely.&lt;/p&gt;

&lt;p&gt;Why this is dangerous&lt;/p&gt;

&lt;p&gt;The system still works. But users start feeling:&lt;/p&gt;

&lt;p&gt;• slow responses&lt;/p&gt;

&lt;p&gt;• delays&lt;/p&gt;

&lt;p&gt;• timeouts&lt;/p&gt;

&lt;p&gt;And performance keeps getting worse as you grow.&lt;/p&gt;

&lt;p&gt;The solution&lt;/p&gt;

&lt;p&gt;You don’t remove the database. You reduce how much you depend on it.&lt;/p&gt;

&lt;p&gt;Real systems do this by:&lt;/p&gt;

&lt;p&gt;• caching frequently read data&lt;/p&gt;

&lt;p&gt;• using read replicas for heavy reads&lt;/p&gt;

&lt;p&gt;• optimizing queries and indexes&lt;/p&gt;

&lt;p&gt;• moving heavy tasks to background jobs&lt;/p&gt;

&lt;p&gt;The goal is simple:&lt;/p&gt;

&lt;p&gt;Don’t hit the database unless you have to.&lt;/p&gt;

&lt;p&gt;Mental model&lt;/p&gt;

&lt;p&gt;Think of the database like a single cashier.&lt;/p&gt;

&lt;p&gt;At first, no line. Then more people arrive. Now everyone is waiting…Even though the cashier is working perfectly.&lt;/p&gt;

&lt;p&gt;The lesson&lt;/p&gt;

&lt;p&gt;Your system doesn’t slow down because it’s broken.&lt;/p&gt;

&lt;p&gt;It slows down because everything depends on one thing.&lt;/p&gt;

&lt;p&gt;Takeaway&lt;/p&gt;

&lt;p&gt;Scalable systems don’t just handle more users.&lt;/p&gt;

&lt;p&gt;They reduce pressure on their most critical parts.&lt;/p&gt;

&lt;h1&gt;
  
  
  backend #systemdesign #softwareengineering #scalability #databases
&lt;/h1&gt;

</description>
      <category>backend</category>
      <category>database</category>
      <category>performance</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Let's Talk About idempotency</title>
      <dc:creator>Edna112</dc:creator>
      <pubDate>Tue, 21 Apr 2026 02:38:59 +0000</pubDate>
      <link>https://forem.com/edna112/lets-talk-about-idempotency-53pp</link>
      <guid>https://forem.com/edna112/lets-talk-about-idempotency-53pp</guid>
      <description>&lt;p&gt;“The payment went through twice.”&lt;/p&gt;

&lt;p&gt;That’s what my friend told me.&lt;/p&gt;

&lt;p&gt;We were talking about a system he was building.Everything looked fine.&lt;/p&gt;

&lt;p&gt;Payments were working. Users were happy. Until one day. Someone got charged twice. No crash,No error Just the same request…Processed twice.&lt;/p&gt;

&lt;p&gt;The problem&lt;/p&gt;

&lt;p&gt;In real systems, requests don’t always happen once.&lt;/p&gt;

&lt;p&gt;They get:&lt;/p&gt;

&lt;p&gt;• retried by the client&lt;/p&gt;

&lt;p&gt;• resent after timeouts&lt;/p&gt;

&lt;p&gt;• triggered twice by impatient users&lt;/p&gt;

&lt;p&gt;The system didn’t understand that. So it did exactly what it was told.&lt;/p&gt;

&lt;p&gt;Twice.&lt;/p&gt;

&lt;p&gt;What was happening?&lt;/p&gt;

&lt;p&gt;The system treated every request as new. It had no memory of what it had already processed. So when the same request came in again…It processed it again.&lt;/p&gt;

&lt;p&gt;Why this is dangerous&lt;/p&gt;

&lt;p&gt;Nothing breaks. Everything “works”.&lt;/p&gt;

&lt;p&gt;But now you have:&lt;/p&gt;

&lt;p&gt;• duplicate payments&lt;/p&gt;

&lt;p&gt;• duplicate orders&lt;/p&gt;

&lt;p&gt;• inconsistent data&lt;/p&gt;

&lt;p&gt;And once money is involved… That’s a serious problem.&lt;/p&gt;

&lt;p&gt;The solution&lt;/p&gt;

&lt;p&gt;Design your system to be idempotent.&lt;/p&gt;

&lt;p&gt;Meaning:&lt;/p&gt;

&lt;p&gt;The same request can be sent multiple times…But only processed once.&lt;/p&gt;

&lt;p&gt;Real systems do this by:&lt;/p&gt;

&lt;p&gt;• attaching a unique request ID (idempotency key)&lt;/p&gt;

&lt;p&gt;• storing processed requests&lt;/p&gt;

&lt;p&gt;• rejecting or reusing previous results&lt;/p&gt;

&lt;p&gt;So even if the request comes in twice…The outcome stays the same.&lt;/p&gt;

&lt;p&gt;Mental model&lt;/p&gt;

&lt;p&gt;Think of it like submitting a form with a reference number.&lt;/p&gt;

&lt;p&gt;If you submit it again with the same number…&lt;/p&gt;

&lt;p&gt;The system knows:&lt;/p&gt;

&lt;p&gt;“I’ve already handled this.”&lt;/p&gt;

&lt;p&gt;The lesson&lt;/p&gt;

&lt;p&gt;In distributed systems, retries are normal.&lt;/p&gt;

&lt;p&gt;Duplicate effects should not be.&lt;/p&gt;

&lt;p&gt;Takeaway&lt;/p&gt;

&lt;p&gt;Your system shouldn’t just handle success.&lt;/p&gt;

&lt;p&gt;It should handle being asked to do the same thing… twice.&lt;/p&gt;

&lt;p&gt;Have you ever seen a system charge twice or create duplicate data?&lt;/p&gt;

&lt;h1&gt;
  
  
  backend #systemdesign #architecture #softwareengineering #laravel
&lt;/h1&gt;

</description>
      <category>architecture</category>
      <category>backend</category>
      <category>softwareengineering</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>EVENTUAL INCONSISTENCY</title>
      <dc:creator>Edna112</dc:creator>
      <pubDate>Mon, 20 Apr 2026 11:08:43 +0000</pubDate>
      <link>https://forem.com/edna112/eventual-inconsistency-4hgj</link>
      <guid>https://forem.com/edna112/eventual-inconsistency-4hgj</guid>
      <description>&lt;p&gt;The system didn’t crash. But two parts of it disagreed. Everything looked normal. Requests were fast. No errors, No alerts. Then something subtle happened. A user checked their data from two different endpoints.Same request. Different answers,outdated. Not random. Just… inconsistent.&lt;br&gt;
The problem&lt;br&gt;
The system wasn’t behaving like a single system. It was behaving like multiple independent parts.&lt;br&gt;
What was happening?&lt;br&gt;
In distributed systems:&lt;br&gt;
There is no single source of truth at every moment.&lt;br&gt;
Different services, replicas, or nodes…&lt;br&gt;
Can see different versions of the same data.&lt;br&gt;
So two parts of your system can both be Correct. But not aligned.&lt;br&gt;
Why this is dangerous&lt;br&gt;
Nothing fails.&lt;br&gt;
Nothing crashes.&lt;br&gt;
But your system starts to:&lt;br&gt;
• contradict itself&lt;br&gt;
• confuse users&lt;br&gt;
• break trust&lt;br&gt;
And the worst part?&lt;br&gt;
It’s working exactly as designed.&lt;br&gt;
The solution&lt;br&gt;
You don’t assume consistency.&lt;br&gt;
You define it.&lt;br&gt;
Real systems make explicit choices:&lt;br&gt;
• Decide where strong consistency is required&lt;br&gt;
• Accept temporary inconsistency where it’s safe&lt;br&gt;
• Design flows that tolerate delayed synchronization&lt;br&gt;
• Ensure critical paths never rely on conflicting data&lt;br&gt;
Mental model&lt;br&gt;
Think of a team without synchronization. Everyone is working. Everyone is doing their job. But without alignment…They produce conflicting results.&lt;br&gt;
The lesson&lt;br&gt;
Distributed systems don’t naturally agree.&lt;br&gt;
Agreement is something you design.&lt;br&gt;
Takeaway&lt;br&gt;
A system isn’t reliable because it works.&lt;br&gt;
It’s reliable because it stays consistent across its parts.&lt;/p&gt;

&lt;h1&gt;
  
  
  backend #systemdesign #architecture #softwareengineering #laravel
&lt;/h1&gt;

</description>
      <category>architecture</category>
      <category>database</category>
      <category>distributedsystems</category>
      <category>systemdesign</category>
    </item>
  </channel>
</rss>
