<?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: Josef Smetanka</title>
    <description>The latest articles on DEV Community by Josef Smetanka (@gnizdoapp).</description>
    <link>https://dev.to/gnizdoapp</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%2F3730062%2F6c41a61f-23b8-4d72-ad0d-6d09cd025b51.jpg</url>
      <title>DEV Community: Josef Smetanka</title>
      <link>https://dev.to/gnizdoapp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gnizdoapp"/>
    <language>en</language>
    <item>
      <title>We built a small calculator that shows how much inventory drift actually costs</title>
      <dc:creator>Josef Smetanka</dc:creator>
      <pubDate>Wed, 04 Feb 2026 12:56:09 +0000</pubDate>
      <link>https://dev.to/gnizdoapp/we-built-a-small-calculator-that-shows-how-much-inventory-drift-actually-costs-54ek</link>
      <guid>https://dev.to/gnizdoapp/we-built-a-small-calculator-that-shows-how-much-inventory-drift-actually-costs-54ek</guid>
      <description>&lt;p&gt;Most ecommerce sellers obsess over traffic metrics: sessions, CAC, ROAS.&lt;/p&gt;

&lt;p&gt;But there’s a quieter line item almost nobody tracks:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much money leaks when inventory and prices drift out of sync across channels.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not the big obvious disasters. The small stuff that happens every week:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Oversells on the last unit
&lt;/li&gt;
&lt;li&gt;Refunds or cancellations because stock was wrong
&lt;/li&gt;
&lt;li&gt;Support time explaining “sorry, we can’t fulfill this”
&lt;/li&gt;
&lt;li&gt;Price mismatches across marketplaces and your store
&lt;/li&gt;
&lt;li&gt;“Sync says OK” but the numbers are still off
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each one feels minor. Together they compound.&lt;/p&gt;

&lt;p&gt;So we built a small calculator that estimates the monthly cost of drift based on &lt;strong&gt;order volume&lt;/strong&gt; and typical &lt;strong&gt;incident patterns&lt;/strong&gt;. t’s not accounting-precise. It’s a visibility model. The assumptions are explicit so you can sanity-check them against your setup (refund rate, handling cost, future impact).&lt;/p&gt;

&lt;p&gt;→ &lt;a href="https://gnizdo.space/oversell-cost-calculator/" rel="noopener noreferrer"&gt;https://gnizdo.space/oversell-cost-calculator/&lt;/a&gt; &lt;em&gt;(models refunds + support handling + downstream revenue impact, assumptions included)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you’ve worked with multi-channel systems, marketplaces, or sync pipelines, I’m curious:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What’s the most common drift failure mode you’ve seen in practice?
&lt;/li&gt;
&lt;li&gt;Does this kind of cost model miss anything important in real-world setups?&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ecommerce</category>
      <category>sass</category>
      <category>observability</category>
      <category>product</category>
    </item>
    <item>
      <title>Why your system can be 100% up and still completely broken</title>
      <dc:creator>Josef Smetanka</dc:creator>
      <pubDate>Sun, 01 Feb 2026 12:11:22 +0000</pubDate>
      <link>https://dev.to/gnizdoapp/why-your-system-can-be-100-up-and-still-completely-broken-4aph</link>
      <guid>https://dev.to/gnizdoapp/why-your-system-can-be-100-up-and-still-completely-broken-4aph</guid>
      <description>&lt;p&gt;Your monitoring is green.&lt;br&gt;
99.99% uptime.&lt;br&gt;
Health checks passing.&lt;br&gt;
No alerts.&lt;/p&gt;

&lt;p&gt;Then support starts forwarding screenshots from users:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“I paid, but my order says cancelled.”&lt;br&gt;
“The price changed after checkout.”&lt;br&gt;
“It said in stock. Then refund.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Welcome to a harsh truth engineers eventually learn:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Uptime measures server liveness.&lt;br&gt;
Users care about state correctness.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And those are very different things.&lt;/p&gt;


&lt;h2&gt;
  
  
  The illusion of “up”
&lt;/h2&gt;

&lt;p&gt;Most systems monitor &lt;em&gt;process health&lt;/em&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;HTTP 200 OK
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But a distributed system can respond perfectly while being completely wrong.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API returns 200 with &lt;strong&gt;stale data&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Writes succeed but &lt;strong&gt;never reach downstream systems&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Auth works, but &lt;strong&gt;data permissions are wrong&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Checkout returns success, but &lt;strong&gt;payment never captured&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Stock shows available, but &lt;strong&gt;orders already consumed it elsewhere&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The system is alive.&lt;br&gt;
The &lt;strong&gt;truth inside it is dead&lt;/strong&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  The real failure class: &lt;strong&gt;state drift&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Most “it's up but broken” incidents are not crashes.&lt;br&gt;
They’re &lt;strong&gt;state divergence problems&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Systems look healthy because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CPU OK&lt;/li&gt;
&lt;li&gt;DB reachable&lt;/li&gt;
&lt;li&gt;Services responding&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;caches out of sync&lt;/li&gt;
&lt;li&gt;queues lagging&lt;/li&gt;
&lt;li&gt;partial writes&lt;/li&gt;
&lt;li&gt;retries overwriting newer state&lt;/li&gt;
&lt;li&gt;external APIs delayed&lt;/li&gt;
&lt;li&gt;eventual consistency biting you&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your monitoring says &lt;em&gt;“system operational”&lt;/em&gt;.&lt;br&gt;
Reality says &lt;em&gt;“state is no longer trustworthy.”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That’s not downtime.&lt;br&gt;
That’s &lt;strong&gt;silent correctness failure&lt;/strong&gt; — much worse.&lt;/p&gt;


&lt;h2&gt;
  
  
  Why uptime is the wrong mental model
&lt;/h2&gt;

&lt;p&gt;Uptime answers:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Is the machine alive?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Users ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Did the system do the correct thing?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Those are different layers:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What uptime measures&lt;/th&gt;
&lt;th&gt;What users experience&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Infra&lt;/td&gt;
&lt;td&gt;Processes running&lt;/td&gt;
&lt;td&gt;Irrelevant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;Requests succeed&lt;/td&gt;
&lt;td&gt;Still irrelevant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;App&lt;/td&gt;
&lt;td&gt;Endpoint returns&lt;/td&gt;
&lt;td&gt;Still not enough&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;State&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Correct data &amp;amp; side-effects&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;This is what matters&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most outages today are not infrastructure failures.&lt;br&gt;
They are &lt;strong&gt;correctness failures in distributed state&lt;/strong&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  What you should actually measure
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. &lt;strong&gt;Correctness SLIs&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Not just response success — &lt;strong&gt;result validity&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Did the order actually get created?&lt;/li&gt;
&lt;li&gt;Did payment get captured?&lt;/li&gt;
&lt;li&gt;Did inventory decrement once, not twice?&lt;/li&gt;
&lt;li&gt;Is user data consistent across services?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the side-effect didn’t happen, the request was a failure — even if it returned 200.&lt;/p&gt;


&lt;h3&gt;
  
  
  2. &lt;strong&gt;End-to-end invariants&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Every system has truths that must always hold:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stock never negative&lt;/li&gt;
&lt;li&gt;Order cannot be paid twice&lt;/li&gt;
&lt;li&gt;One user = one identity&lt;/li&gt;
&lt;li&gt;Total debits = total credits&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These invariants breaking is &lt;strong&gt;worse than downtime&lt;/strong&gt;.&lt;/p&gt;


&lt;h3&gt;
  
  
  3. &lt;strong&gt;User-journey success rate&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Not “endpoint success”.&lt;br&gt;
&lt;strong&gt;Journey success&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Login → Browse → Add to cart → Pay → Order confirmed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If this drops from 98% to 85%, you're broken.&lt;br&gt;
Even if uptime is 100%.&lt;/p&gt;




&lt;h3&gt;
  
  
  4. &lt;strong&gt;Lag and staleness metrics&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Distributed systems rot from &lt;strong&gt;delay&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;queue depth&lt;/li&gt;
&lt;li&gt;replication lag&lt;/li&gt;
&lt;li&gt;cache age&lt;/li&gt;
&lt;li&gt;sync delay between services&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Lag is future inconsistency waiting to explode.&lt;/p&gt;




&lt;h2&gt;
  
  
  The mindset shift
&lt;/h2&gt;

&lt;p&gt;Stop asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Is the system up?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Start asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Is the system still telling the truth?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Because modern outages look like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No errors&lt;/li&gt;
&lt;li&gt;No crashes&lt;/li&gt;
&lt;li&gt;No alerts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Just:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;refunds&lt;/li&gt;
&lt;li&gt;data mismatches&lt;/li&gt;
&lt;li&gt;user confusion&lt;/li&gt;
&lt;li&gt;support chaos&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The worst failures are quiet.&lt;/p&gt;




&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;A system that responds but lies is worse than a system that’s down.&lt;/p&gt;

&lt;p&gt;Downtime is visible.&lt;br&gt;
Incorrect state is invisible — until money, trust, or data integrity is gone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Uptime is liveness.&lt;br&gt;
Users care about correctness.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Those are not the same metric.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;What’s the worst “everything green, everything wrong” incident you’ve seen?&lt;/em&gt;&lt;/p&gt;

</description>
      <category>distributedsystems</category>
      <category>observability</category>
      <category>reliability</category>
      <category>sre</category>
    </item>
  </channel>
</rss>
