<?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: Venkidesh Venu</title>
    <description>The latest articles on DEV Community by Venkidesh Venu (@venkidesh_venu_340ce6baf9).</description>
    <link>https://dev.to/venkidesh_venu_340ce6baf9</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%2F3364497%2F2051dfae-30b2-412f-b7ac-6e446bdbecda.jpg</url>
      <title>DEV Community: Venkidesh Venu</title>
      <link>https://dev.to/venkidesh_venu_340ce6baf9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/venkidesh_venu_340ce6baf9"/>
    <language>en</language>
    <item>
      <title>My App Was “Running”… But I Had No Idea If It Was Actually Working</title>
      <dc:creator>Venkidesh Venu</dc:creator>
      <pubDate>Wed, 18 Mar 2026 06:16:14 +0000</pubDate>
      <link>https://dev.to/venkidesh_venu_340ce6baf9/my-app-was-running-but-i-had-no-idea-if-it-was-actually-working-5f46</link>
      <guid>https://dev.to/venkidesh_venu_340ce6baf9/my-app-was-running-but-i-had-no-idea-if-it-was-actually-working-5f46</guid>
      <description>&lt;p&gt;There’s a moment every developer hits where things technically work… but you still don’t trust anything.&lt;/p&gt;

&lt;p&gt;For me, that moment came when I moved our deployment system to the cloud.&lt;/p&gt;

&lt;p&gt;As part of the project, we were building a platform where a user could upload a project, automatically build a Docker image, run it as a container, and get a live URL.&lt;/p&gt;

&lt;p&gt;On paper, everything worked.&lt;br&gt;
The VM was up.&lt;br&gt;
The service was running.&lt;br&gt;
Nothing had crashed.&lt;/p&gt;

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

&lt;p&gt;I had no idea if my system was actually working.&lt;/p&gt;


&lt;h2&gt;
  
  
  The Only Way I Could Check
&lt;/h2&gt;

&lt;p&gt;At that point, I had built just one endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /upload
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This endpoint did everything:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accept a zipped project&lt;/li&gt;
&lt;li&gt;Build a Docker image&lt;/li&gt;
&lt;li&gt;Run a container&lt;/li&gt;
&lt;li&gt;Expose a port&lt;/li&gt;
&lt;li&gt;Return a URL&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So if I wanted to check whether my system was alive…&lt;/p&gt;

&lt;p&gt;I had to deploy something.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Upload → Build → Run → Pray&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That’s when it hit me:&lt;/p&gt;

&lt;p&gt;I had built a system where the only way to check if it was alive… was to deploy an app.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Added a &lt;code&gt;/health&lt;/code&gt; Endpoint
&lt;/h2&gt;

&lt;p&gt;I stopped and asked a simple question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why do I need a full deployment pipeline just to check if my service is alive?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I didn’t need builds.&lt;br&gt;
I didn’t need containers.&lt;br&gt;
I didn’t need logs.&lt;/p&gt;

&lt;p&gt;I just needed a way to ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Hey… are you alive?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So I added:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /health
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that tiny decision changed how I think about systems.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is a Health Route?
&lt;/h2&gt;

&lt;p&gt;A health route is a lightweight HTTP endpoint that tells whether your application is functioning correctly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /health
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Response:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"healthy"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No business logic&lt;/li&gt;
&lt;li&gt;No side effects&lt;/li&gt;
&lt;li&gt;No heavy computation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Just a signal.&lt;/p&gt;

&lt;p&gt;This endpoint isn’t for users.&lt;br&gt;
It’s for systems, controllers, proxies, deployment pipelines, anything that needs to decide:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Can I trust this service right now?”&lt;/strong&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Why This Matters: Running ≠ Working
&lt;/h2&gt;

&lt;p&gt;Before this, I assumed:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Container started → App is ready&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But that’s not true.&lt;/p&gt;

&lt;p&gt;A container can be “running” while:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the app is still initializing&lt;/li&gt;
&lt;li&gt;the database isn’t connected&lt;/li&gt;
&lt;li&gt;dependencies are failing&lt;/li&gt;
&lt;li&gt;something is internally broken&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without a health check, your platform is guessing.&lt;/p&gt;

&lt;p&gt;With a health check, your platform &lt;strong&gt;knows&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That difference is what separates a toy system from a reliable one.&lt;/p&gt;


&lt;h2&gt;
  
  
  What Happens During Deployment
&lt;/h2&gt;

&lt;p&gt;When an app starts, it doesn’t become ready instantly. It goes through a sequence:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Container starts&lt;/li&gt;
&lt;li&gt;Application boots&lt;/li&gt;
&lt;li&gt;Dependencies initialize&lt;/li&gt;
&lt;li&gt;Database connects&lt;/li&gt;
&lt;li&gt;Server starts listening&lt;/li&gt;
&lt;li&gt;Finally ready&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Without health checks, most systems assume:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Container started → Ready&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Which leads to users hitting an app that isn’t ready yet.&lt;/p&gt;


&lt;h2&gt;
  
  
  With a Health Check
&lt;/h2&gt;

&lt;p&gt;Instead of guessing, the system becomes smarter:&lt;/p&gt;

&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%2F6745c1ho6tadcrh7k2pv.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%2F6745c1ho6tadcrh7k2pv.png" alt="an automated container deployment process with health checks and traffic routing." width="800" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now only &lt;strong&gt;ready applications receive traffic&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This makes deployments far more stable.&lt;/p&gt;


&lt;h2&gt;
  
  
  Liveness vs Readiness (The Real Upgrade)
&lt;/h2&gt;

&lt;p&gt;Once you start thinking about health properly, you realize one endpoint isn’t enough.&lt;/p&gt;

&lt;p&gt;There are actually two different questions:&lt;/p&gt;


&lt;h3&gt;
  
  
  Liveness → “Are you alive?”
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Checks if the app process is still running&lt;/li&gt;
&lt;li&gt;If this fails → restart the container
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/health/live
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Readiness → “Are you ready?”
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Checks if the app can handle real traffic&lt;/li&gt;
&lt;li&gt;If this fails → don’t send traffic (but don’t kill it)
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/health/ready
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Simple Analogy
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Liveness&lt;/strong&gt; = Student is in class&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Readiness&lt;/strong&gt; = Student studied for the exam&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Just because something is running…&lt;br&gt;
doesn’t mean it’s ready.&lt;/p&gt;


&lt;h2&gt;
  
  
  The Smallest Fix That Made a Big Difference
&lt;/h2&gt;

&lt;p&gt;After all the confusion and overengineering, the actual solution was just a few lines of code.&lt;/p&gt;

&lt;p&gt;Here’s how it looks in Go, but the idea is the same in any backend.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s"&gt;"encoding/json"&lt;/span&gt;
    &lt;span class="s"&gt;"net/http"&lt;/span&gt;
    &lt;span class="s"&gt;"time"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;startTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="n"&gt;HealthResponse&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;Status&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;  &lt;span class="s"&gt;`json:"status"`&lt;/span&gt;
    &lt;span class="n"&gt;Uptime&lt;/span&gt; &lt;span class="kt"&gt;float64&lt;/span&gt; &lt;span class="s"&gt;`json:"uptime_seconds"`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;HealthHandler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ResponseWriter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;HealthResponse&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;Status&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"healthy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Uptime&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Since&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;startTime&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Seconds&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Header&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;WriteHeader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusOK&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NewEncoder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;HandleFunc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/health"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;HealthHandler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ListenAndServe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;":8080"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;nil&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No orchestration.&lt;br&gt;
No complexity.&lt;br&gt;
Just a tiny endpoint that tells the truth.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Changed After This
&lt;/h2&gt;

&lt;p&gt;With this one route, I could:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Instantly verify if my system is running&lt;/li&gt;
&lt;li&gt;Avoid unnecessary deployments just for testing&lt;/li&gt;
&lt;li&gt;Make my platform smarter about when to trust an app&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s a small addition.&lt;/p&gt;

&lt;p&gt;But it completely changes how your system behaves.&lt;/p&gt;




&lt;h2&gt;
  
  
  Best Practices (Quick Notes)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Keep it lightweight → this endpoint is called frequently&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use proper status codes&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;200&lt;/code&gt; → healthy&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;503&lt;/code&gt; → not ready&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Separate liveness and readiness&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Avoid over-checking dependencies&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Always use timeouts (never let health checks hang)&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;




&lt;h2&gt;
  
  
  Final Thought
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;/health&lt;/code&gt; endpoint is probably the smallest route in your application.&lt;/p&gt;

&lt;p&gt;But it might also be the most important one.&lt;/p&gt;

&lt;p&gt;Because it answers the one question your entire system depends on:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“Can I trust this service right now?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

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