<?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: Chenwi Edna</title>
    <description>The latest articles on DEV Community by Chenwi Edna (@edna112).</description>
    <link>https://dev.to/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>DEV Community: Chenwi Edna</title>
      <link>https://dev.to/edna112</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/edna112"/>
    <language>en</language>
    <item>
      <title>Happy Monday.</title>
      <dc:creator>Chenwi Edna</dc:creator>
      <pubDate>Mon, 04 May 2026 11:09:54 +0000</pubDate>
      <link>https://dev.to/edna112/happy-monday-h3k</link>
      <guid>https://dev.to/edna112/happy-monday-h3k</guid>
      <description>&lt;p&gt;Let’s talk about a frustrating kind of bug.&lt;/p&gt;

&lt;p&gt;You fix one issue,Deploy. Everything looks good. Then something else breaks.&lt;/p&gt;

&lt;p&gt;Completely unrelated,Or so it seems.&lt;/p&gt;

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

&lt;p&gt;The system wasn’t independent. It was tightly coupled.&lt;/p&gt;

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

&lt;p&gt;A small change in one part of the system…Quietly affected another.&lt;/p&gt;

&lt;p&gt;• a field update&lt;/p&gt;

&lt;p&gt;• a logic change&lt;/p&gt;

&lt;p&gt;• a response format tweak&lt;/p&gt;

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

&lt;p&gt;• another service fails&lt;/p&gt;

&lt;p&gt;• a background job breaks&lt;/p&gt;

&lt;p&gt;• an API returns incorrect data&lt;/p&gt;

&lt;p&gt;From the outside:&lt;/p&gt;

&lt;p&gt;It looks like a new bug. But in reality…It’s the same system reacting.&lt;/p&gt;

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

&lt;p&gt;The system becomes fragile.&lt;/p&gt;

&lt;p&gt;Fixes create new problems.&lt;/p&gt;

&lt;p&gt;Changes become risky.&lt;/p&gt;

&lt;p&gt;Deployments feel stressful.&lt;/p&gt;

&lt;p&gt;And over time…&lt;/p&gt;

&lt;p&gt;Progress slows down.&lt;/p&gt;

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

&lt;p&gt;Design for separation.&lt;/p&gt;

&lt;p&gt;Real systems reduce coupling by:&lt;/p&gt;

&lt;p&gt;• defining clear boundaries between components&lt;/p&gt;

&lt;p&gt;• using stable API contracts&lt;/p&gt;

&lt;p&gt;• avoiding shared hidden dependencies&lt;/p&gt;

&lt;p&gt;• versioning changes instead of breaking flows&lt;/p&gt;

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

&lt;p&gt;A change in one place should not break another.&lt;/p&gt;

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

&lt;p&gt;Think of a house wired incorrectly. Fixing one switch…Turns off lights in another room. Not because the switch is wrong. But because everything is connected badly.&lt;/p&gt;

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

&lt;p&gt;Bugs don’t always come from bad code.&lt;/p&gt;

&lt;p&gt;Sometimes…&lt;/p&gt;

&lt;p&gt;They come from bad connections.&lt;/p&gt;

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

&lt;p&gt;If every fix creates another problem…&lt;/p&gt;

&lt;p&gt;Your system isn’t complex.&lt;/p&gt;

&lt;p&gt;It’s coupled.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>discuss</category>
      <category>softwareengineering</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>“But it worked on my machine.”</title>
      <dc:creator>Chenwi Edna</dc:creator>
      <pubDate>Wed, 29 Apr 2026 10:16:08 +0000</pubDate>
      <link>https://dev.to/edna112/but-it-worked-on-my-machine-21bp</link>
      <guid>https://dev.to/edna112/but-it-worked-on-my-machine-21bp</guid>
      <description>&lt;p&gt;But it worked on my machine.”&lt;/p&gt;

&lt;p&gt;That was the answer. Not the solution.&lt;/p&gt;

&lt;p&gt;A friend pushed his feature to production. Everything had passed locally.&lt;/p&gt;

&lt;p&gt;No errors.&lt;br&gt;
No issues.&lt;/p&gt;

&lt;p&gt;Then it went live.And immediately, Something broke.&lt;/p&gt;

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

&lt;p&gt;The system wasn’t the same. What was happening?&lt;/p&gt;

&lt;p&gt;In development:&lt;/p&gt;

&lt;p&gt;• fewer users&lt;br&gt;
• clean data&lt;br&gt;
• no real traffic&lt;br&gt;
• minimal concurrency&lt;/p&gt;

&lt;p&gt;In production:&lt;/p&gt;

&lt;p&gt;• real users&lt;br&gt;
• messy data&lt;br&gt;
• high traffic&lt;br&gt;
• race conditions&lt;br&gt;
• network delays&lt;/p&gt;

&lt;p&gt;Same code.&lt;br&gt;
Different reality.&lt;/p&gt;

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

&lt;p&gt;Local success gives false confidence.&lt;/p&gt;

&lt;p&gt;Because you’re testing in a controlled environment.&lt;/p&gt;

&lt;p&gt;But production…&lt;/p&gt;

&lt;p&gt;Is unpredictable. That’s where systems are truly tested.&lt;/p&gt;

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

&lt;p&gt;Don’t just test code. Test conditions.&lt;/p&gt;

&lt;p&gt;Real systems prepare for production by:&lt;/p&gt;

&lt;p&gt;• using staging environments that mirror production&lt;br&gt;
• testing with realistic data and load&lt;br&gt;
• simulating failures (timeouts, retries, delays)&lt;br&gt;
• designing for concurrency and edge cases&lt;/p&gt;

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

&lt;p&gt;Make production less surprising.&lt;/p&gt;

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

&lt;p&gt;Testing locally is like practicing alone.&lt;/p&gt;

&lt;p&gt;Production is performing on stage.&lt;/p&gt;

&lt;p&gt;Different pressure.&lt;/p&gt;

&lt;p&gt;Different outcomes.&lt;/p&gt;

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

&lt;p&gt;If it only works locally… It doesn’t really work.&lt;/p&gt;

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

&lt;p&gt;Reliable systems aren’t built in perfect environments, They’re designed for imperfect ones.&lt;/p&gt;

&lt;p&gt;Have you ever deployed something that worked locally… but failed in production?&lt;/p&gt;

</description>
      <category>devops</category>
      <category>softwareengineering</category>
      <category>sre</category>
      <category>testing</category>
    </item>
    <item>
      <title>The logs said everything was fine.</title>
      <dc:creator>Chenwi Edna</dc:creator>
      <pubDate>Tue, 28 Apr 2026 21:57:04 +0000</pubDate>
      <link>https://dev.to/edna112/the-logs-said-everything-was-fine-3ncc</link>
      <guid>https://dev.to/edna112/the-logs-said-everything-was-fine-3ncc</guid>
      <description>&lt;p&gt;“The logs said everything was fine.”&lt;/p&gt;

&lt;p&gt;But the system clearly wasn’t.&lt;/p&gt;

&lt;p&gt;A friend was debugging a production issue.&lt;/p&gt;

&lt;p&gt;Users were complaining.&lt;/p&gt;

&lt;p&gt;Something wasn’t working.&lt;/p&gt;

&lt;p&gt;So he checked the logs.&lt;/p&gt;

&lt;p&gt;Nothing unusual.&lt;/p&gt;

&lt;p&gt;No errors.&lt;br&gt;
No warnings.&lt;/p&gt;

&lt;p&gt;Just… normal activity.&lt;/p&gt;

&lt;p&gt;But the problem was real.&lt;/p&gt;

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

&lt;p&gt;Logs told him what happened.&lt;/p&gt;

&lt;p&gt;But not what was happening.&lt;/p&gt;

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

&lt;p&gt;Visibility.&lt;/p&gt;

&lt;p&gt;Logs are useful.&lt;/p&gt;

&lt;p&gt;But they are:&lt;/p&gt;

&lt;p&gt;• scattered&lt;br&gt;
• incomplete&lt;br&gt;
• hard to connect&lt;/p&gt;

&lt;p&gt;They show events.&lt;/p&gt;

&lt;p&gt;Not the full picture.&lt;/p&gt;

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

&lt;p&gt;Requests were slow.&lt;/p&gt;

&lt;p&gt;Some services were timing out.&lt;/p&gt;

&lt;p&gt;Background jobs were delayed.&lt;/p&gt;

&lt;p&gt;But none of this was obvious from logs alone.&lt;/p&gt;

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

&lt;p&gt;When systems grow:&lt;/p&gt;

&lt;p&gt;Failures become harder to trace.&lt;/p&gt;

&lt;p&gt;One request can pass through:&lt;/p&gt;

&lt;p&gt;• multiple services&lt;br&gt;
• databases&lt;br&gt;
• queues&lt;/p&gt;

&lt;p&gt;If you can’t see the full path…&lt;/p&gt;

&lt;p&gt;You can’t understand the problem.&lt;/p&gt;

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

&lt;p&gt;You need observability.&lt;/p&gt;

&lt;p&gt;Not just logs.&lt;/p&gt;

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

&lt;p&gt;• metrics → how the system behaves over time&lt;br&gt;
• traces → how a request flows across services&lt;br&gt;
• logs → detailed events&lt;/p&gt;

&lt;p&gt;Together, they answer one question:&lt;/p&gt;

&lt;p&gt;What is really happening inside my system?&lt;/p&gt;

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

&lt;p&gt;Logs are like reading sentences.&lt;/p&gt;

&lt;p&gt;Observability is like watching the whole movie.&lt;/p&gt;

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

&lt;p&gt;You can’t fix what you can’t see.&lt;/p&gt;

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

&lt;p&gt;A system without observability…&lt;/p&gt;

&lt;p&gt;Is a system you’re guessing about.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>monitoring</category>
      <category>performance</category>
      <category>sre</category>
    </item>
    <item>
      <title>The logs said everything was fine.</title>
      <dc:creator>Chenwi Edna</dc:creator>
      <pubDate>Tue, 28 Apr 2026 11:57:34 +0000</pubDate>
      <link>https://dev.to/edna112/the-logs-said-everything-was-fine-31ik</link>
      <guid>https://dev.to/edna112/the-logs-said-everything-was-fine-31ik</guid>
      <description>&lt;p&gt;“The logs said everything was fine.”&lt;/p&gt;

&lt;p&gt;But the system clearly wasn’t.&lt;/p&gt;

&lt;p&gt;A friend was debugging a production issue.&lt;/p&gt;

&lt;p&gt;Users were complaining.&lt;/p&gt;

&lt;p&gt;Something wasn’t working.&lt;/p&gt;

&lt;p&gt;So he checked the logs.&lt;/p&gt;

&lt;p&gt;Nothing unusual.&lt;/p&gt;

&lt;p&gt;No errors.&lt;br&gt;
No warnings.&lt;/p&gt;

&lt;p&gt;Just… normal activity.&lt;/p&gt;

&lt;p&gt;But the problem was real.&lt;/p&gt;

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

&lt;p&gt;Logs told him what happened.&lt;/p&gt;

&lt;p&gt;But not what was happening.&lt;/p&gt;

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

&lt;p&gt;Visibility.&lt;/p&gt;

&lt;p&gt;Logs are useful.&lt;/p&gt;

&lt;p&gt;But they are:&lt;/p&gt;

&lt;p&gt;• scattered&lt;br&gt;
• incomplete&lt;br&gt;
• hard to connect&lt;/p&gt;

&lt;p&gt;They show events.&lt;/p&gt;

&lt;p&gt;Not the full picture.&lt;/p&gt;

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

&lt;p&gt;Requests were slow.&lt;/p&gt;

&lt;p&gt;Some services were timing out.&lt;/p&gt;

&lt;p&gt;Background jobs were delayed.&lt;/p&gt;

&lt;p&gt;But none of this was obvious from logs alone.&lt;/p&gt;

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

&lt;p&gt;When systems grow:&lt;/p&gt;

&lt;p&gt;Failures become harder to trace.&lt;/p&gt;

&lt;p&gt;One request can pass through:&lt;/p&gt;

&lt;p&gt;• multiple services&lt;br&gt;
• databases&lt;br&gt;
• queues&lt;/p&gt;

&lt;p&gt;If you can’t see the full path…&lt;/p&gt;

&lt;p&gt;You can’t understand the problem.&lt;/p&gt;

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

&lt;p&gt;You need observability.&lt;/p&gt;

&lt;p&gt;Not just logs.&lt;/p&gt;

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

&lt;p&gt;• metrics → how the system behaves over time&lt;br&gt;
• traces → how a request flows across services&lt;br&gt;
• logs → detailed events&lt;/p&gt;

&lt;p&gt;Together, they answer one question:&lt;/p&gt;

&lt;p&gt;What is really happening inside my system?&lt;/p&gt;

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

&lt;p&gt;Logs are like reading sentences.&lt;/p&gt;

&lt;p&gt;Observability is like watching the whole movie.&lt;/p&gt;

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

&lt;p&gt;You can’t fix what you can’t see.&lt;/p&gt;

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

&lt;p&gt;A system without observability…&lt;/p&gt;

&lt;p&gt;Is a system you’re guessing about.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Happy Monday. Let’s start the week with a silent failure most systems have…</title>
      <dc:creator>Chenwi Edna</dc:creator>
      <pubDate>Tue, 28 Apr 2026 11:54:03 +0000</pubDate>
      <link>https://dev.to/edna112/happy-mondaylets-start-the-week-with-a-silent-failure-most-systems-have-1j5g</link>
      <guid>https://dev.to/edna112/happy-mondaylets-start-the-week-with-a-silent-failure-most-systems-have-1j5g</guid>
      <description>&lt;p&gt;The system was working perfectly. That was the problem. A friend said this while debugging his app, Everything looked fine. Requests were successful. No errors. No alerts. From the system’s perspective… Nothing was wrong.&lt;/p&gt;

&lt;p&gt;But users started complaining. Emails weren’t sent. Notifications never arrived.&lt;/p&gt;

&lt;p&gt;Some actions just… didn’t happen.&lt;/p&gt;

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

&lt;p&gt;The system relied on background jobs. But success at the request level…Didn’t guarantee success at the outcome level.&lt;/p&gt;

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

&lt;p&gt;When the system got busy:&lt;/p&gt;

&lt;p&gt;• jobs piled up in the queue&lt;/p&gt;

&lt;p&gt;• some failed silently&lt;/p&gt;

&lt;p&gt;• some were never retried&lt;/p&gt;

&lt;p&gt;The API returned success. But the actual work? Never completed.&lt;/p&gt;

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

&lt;p&gt;This kind of failure hides. It doesn’t crash your system. It quietly breaks user trust.&lt;/p&gt;

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

&lt;p&gt;• unsent emails&lt;/p&gt;

&lt;p&gt;• incomplete processes&lt;/p&gt;

&lt;p&gt;And you may not notice until it’s too late.&lt;/p&gt;

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

&lt;p&gt;Background jobs need guarantees,Not assumptions.&lt;/p&gt;

&lt;p&gt;Real systems are designed to:&lt;/p&gt;

&lt;p&gt;• retry failed jobs automatically&lt;/p&gt;

&lt;p&gt;• monitor and log every job&lt;/p&gt;

&lt;p&gt;• capture failures (dead-letter queues)&lt;/p&gt;

&lt;p&gt;• ensure jobs are idempotent (safe to retry)&lt;/p&gt;

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

&lt;p&gt;If something fails… it must be visible.&lt;/p&gt;

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

&lt;p&gt;Think of sending a package. If it doesn’t arrive…You don’t assume it was delivered. You track it.&lt;/p&gt;

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

&lt;p&gt;Asynchronous systems don’t fail loudly,They fail quietly.&lt;/p&gt;

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

&lt;p&gt;A system that “works”…&lt;/p&gt;

&lt;p&gt;But doesn’t deliver results…&lt;/p&gt;

&lt;p&gt;Is already broken.&lt;/p&gt;

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

</description>
    </item>
    <item>
      <title>Keep The System Alive</title>
      <dc:creator>Chenwi Edna</dc:creator>
      <pubDate>Fri, 24 Apr 2026 08:47:28 +0000</pubDate>
      <link>https://dev.to/edna112/keep-the-system-alive-2gc1</link>
      <guid>https://dev.to/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>Chenwi Edna</dc:creator>
      <pubDate>Wed, 22 Apr 2026 10:50:05 +0000</pubDate>
      <link>https://dev.to/edna112/the-database-bottleneck-31m5</link>
      <guid>https://dev.to/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>Chenwi Edna</dc:creator>
      <pubDate>Tue, 21 Apr 2026 02:38:59 +0000</pubDate>
      <link>https://dev.to/edna112/lets-talk-about-idempotency-53pp</link>
      <guid>https://dev.to/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>Chenwi Edna</dc:creator>
      <pubDate>Mon, 20 Apr 2026 11:08:43 +0000</pubDate>
      <link>https://dev.to/edna112/eventual-inconsistency-4hgj</link>
      <guid>https://dev.to/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>
