<?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: Noam Tzuberi</title>
    <description>The latest articles on DEV Community by Noam Tzuberi (@noamtzuberi).</description>
    <link>https://dev.to/noamtzuberi</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4222415%2F7f7245ee-6937-4ab2-96a2-03210bd1abcf.jpg</url>
      <title>DEV Community: Noam Tzuberi</title>
      <link>https://dev.to/noamtzuberi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/noamtzuberi"/>
    <language>en</language>
    <item>
      <title>How an autosave feature took down production — and five fixes that stuck</title>
      <dc:creator>Noam Tzuberi</dc:creator>
      <pubDate>Sun, 08 Nov 2026 10:26:04 +0000</pubDate>
      <link>https://dev.to/noamtzuberi/how-an-autosave-feature-took-down-production-and-five-fixes-that-stuck-mmj</link>
      <guid>https://dev.to/noamtzuberi/how-an-autosave-feature-took-down-production-and-five-fixes-that-stuck-mmj</guid>
      <description>&lt;p&gt;An editor I built saves your work as you type. That's the feature users love most, and one evening it was the reason the whole app stopped answering.&lt;/p&gt;

&lt;p&gt;No single bug caused it. Five ordinary decisions, each reasonable on its own, lined up. Here they are, with what I changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Saving things that hadn't changed
&lt;/h2&gt;

&lt;p&gt;The editor sent the cursor position and the current scene on a timer. The server wrote them every time — even when nothing had changed. And the "last saved" baseline on the client never advanced, so every tick looked like a new change.&lt;/p&gt;

&lt;p&gt;At normal traffic this was invisible. When usage climbed, the database spent most of its time writing identical rows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; compare before you write. The client keeps a baseline and sends only real diffs; the server skips writes where the value is unchanged. A no-op save should cost nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Read-before-write on every save
&lt;/h2&gt;

&lt;p&gt;Each save first selected the row, then updated it. Two round trips where one conditional update would do — doubling the load exactly where it hurt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; a single upsert with a condition. Let the database decide, in one statement.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A blocking call inside async code
&lt;/h2&gt;

&lt;p&gt;The API server was async, but one database path used a synchronous driver call. Under load, that one call blocked the event loop, so requests that didn't touch the database at all — health checks included — queued behind it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; no synchronous I/O on the event loop, enforced by a lint rule, not by memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Health checks that killed waiting pods
&lt;/h2&gt;

&lt;p&gt;Because health checks were stuck behind the slow database, Kubernetes decided the pods were dead and restarted them. The fresh pods reconnected, retried pending saves, and hit the database even harder. The restarts made the outage worse.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; split the probes. &lt;strong&gt;Liveness&lt;/strong&gt; answers only "is the process alive?" and never touches dependencies. &lt;strong&gt;Readiness&lt;/strong&gt; can check the database — and a failing readiness probe takes the pod out of traffic without killing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Scaling on the wrong signal, and no alarm
&lt;/h2&gt;

&lt;p&gt;The autoscaler watched CPU. The pods weren't busy — they were waiting — so CPU stayed low and nothing scaled. When I did try to add capacity, I hit node-pool and quota limits I hadn't checked in months. And no alert fired: users noticed before I did.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; scale on what the users feel (request latency, queue depth), keep quota headroom as a checked number, and alert on error rate and latency at the edge, not only on CPU and memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell a team shipping a "save as you type" feature
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Writes are the expensive part.&lt;/strong&gt; Budget them per user per minute and measure that number before launch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make no-ops free.&lt;/strong&gt; The client and the server both skip unchanged data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat liveness probes as dangerous.&lt;/strong&gt; A probe that checks dependencies turns a slowdown into a restart storm.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Autoscale on the bottleneck,&lt;/strong&gt; not on the metric that's easiest to read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the alarm.&lt;/strong&gt; If you've never seen the alert fire, assume it won't.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of the five decisions was wrong when it was made. Together they turned a popular feature into an outage. The fixes are boring — and boring is what you want from autosave.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Noam Tzuberi — ex-Head of AI and founder of WriteinaClick, an AI book-writing platform I built solo. I help SaaS teams ship AI features that hold up in production. Start with a 3-day AI feature audit + working prototype: &lt;a href="https://contra.com/noam_tzuberi_78uj1psz" rel="noopener noreferrer"&gt;https://contra.com/noam_tzuberi_78uj1psz&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>postgres</category>
      <category>sre</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The config change that didn't restart anything</title>
      <dc:creator>Noam Tzuberi</dc:creator>
      <pubDate>Wed, 04 Nov 2026 10:12:32 +0000</pubDate>
      <link>https://dev.to/noamtzuberi/the-config-change-that-didnt-restart-anything-pmp</link>
      <guid>https://dev.to/noamtzuberi/the-config-change-that-didnt-restart-anything-pmp</guid>
      <description>&lt;p&gt;You change a value in your Helm chart. &lt;code&gt;helm upgrade&lt;/code&gt; succeeds. The ConfigMap in the cluster shows the new value. And your app keeps behaving exactly as before.&lt;/p&gt;

&lt;p&gt;Nothing failed — that's the problem. Kubernetes did precisely what it was told.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why it happens
&lt;/h3&gt;

&lt;p&gt;A Deployment only rolls its pods when the &lt;strong&gt;pod template&lt;/strong&gt; changes. A ConfigMap is a separate object. When you update it, the pods already running don't notice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Values injected as &lt;strong&gt;environment variables&lt;/strong&gt; are read once, at container start. They stay old until the pod restarts.&lt;/li&gt;
&lt;li&gt;Values mounted as &lt;strong&gt;files&lt;/strong&gt; do update eventually, but only if your app re-reads the file. Most apps read config once at boot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the upgrade "worked", the config is "deployed", and production runs the old settings until something else happens to restart the pods — a node drain, a crash, the next image release. Then the change appears hours or days later, and nobody connects it to the upgrade.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why AI-written charts hit this often
&lt;/h3&gt;

&lt;p&gt;Ask an assistant for a Helm chart and you get a clean Deployment plus a ConfigMap, wired through &lt;code&gt;envFrom&lt;/code&gt;. It is correct YAML and it passes every lint. The missing piece isn't a syntax error, it's a lifecycle detail — the kind of thing that only shows up in production.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix: make the config part of the pod template
&lt;/h3&gt;

&lt;p&gt;Add a checksum of the ConfigMap as a pod annotation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;annotations&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;checksum/config&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;{{&lt;/span&gt; &lt;span class="nv"&gt;include (print $.Template.BasePath "/configmap.yaml") . | sha256sum&lt;/span&gt; &lt;span class="pi"&gt;}}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now any config change changes the annotation, the pod template changes, and Kubernetes does a normal rolling update. Same for Secrets — add a second checksum.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three checks I now do on every chart
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Every ConfigMap and Secret the app reads has a checksum annotation on the Deployment.&lt;/li&gt;
&lt;li&gt;After &lt;code&gt;helm upgrade&lt;/code&gt;, check that new pods actually started (&lt;code&gt;kubectl rollout status&lt;/code&gt;), not just that the release succeeded.&lt;/li&gt;
&lt;li&gt;Log the effective config (minus secrets) at startup, so "which value is running?" takes one log search.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The broader lesson
&lt;/h3&gt;

&lt;p&gt;AI tools are good at producing configuration that &lt;em&gt;looks&lt;/em&gt; complete. The gaps are in what happens over time: restarts, rollouts, caches, retries. That's where I spend my review time.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Noam Tzuberi — ex-Head of AI, 17+ years building software. I help SaaS teams ship AI features that hold up in production. Start with a 3-day AI feature audit + working prototype: &lt;a href="https://contra.com/noam_tzuberi_78uj1psz" rel="noopener noreferrer"&gt;https://contra.com/noam_tzuberi_78uj1psz&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>helm</category>
      <category>devops</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
