<?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: Himanshu Kawale</title>
    <description>The latest articles on DEV Community by Himanshu Kawale (@himanshu_kawale_605156ca8).</description>
    <link>https://dev.to/himanshu_kawale_605156ca8</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%2F4136895%2F2e60e4b6-9986-4796-86d0-eae04b44a742.jpg</url>
      <title>DEV Community: Himanshu Kawale</title>
      <link>https://dev.to/himanshu_kawale_605156ca8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/himanshu_kawale_605156ca8"/>
    <language>en</language>
    <item>
      <title>How to Roll Back a Bad Deploy Fast, and Why You Should Do It Before Debugging</title>
      <dc:creator>Himanshu Kawale</dc:creator>
      <pubDate>Wed, 25 Nov 2026 10:42:57 +0000</pubDate>
      <link>https://dev.to/optivian/how-to-roll-back-a-bad-deploy-fast-and-why-you-should-do-it-before-debugging-114e</link>
      <guid>https://dev.to/optivian/how-to-roll-back-a-bad-deploy-fast-and-why-you-should-do-it-before-debugging-114e</guid>
      <description>&lt;p&gt;Poor deployments can easily be rectified. Below is how you can ensure this.&lt;/p&gt;

&lt;p&gt;Your application was deployed 4 minutes ago. Errors are increasing and a customer has just contacted support.&lt;/p&gt;

&lt;p&gt;What do you then?&lt;/p&gt;

&lt;p&gt;Usually people analyse logs to find a solution. Whilst this may seem the right course of action, it is not the most efficient way of returning to normality for your users.&lt;/p&gt;

&lt;p&gt;Roll back and then analyse&lt;/p&gt;

&lt;p&gt;Google’s Site Reliability Engineering (SRE) book highlights this in the section about analysis. Despite the urge to rapidly analyse and identify the root cause of a large disruption, you should in fact suppress this desire and initially prevent further issues. Until then you are not assisting anybody. In addition, the appendix on best practice for services within the book emphasises that, if an unforeseen issue occurs following a deployment, you should roll back first and then analyse. This allows a swift return to normality.&lt;/p&gt;

&lt;p&gt;Google Cloud also has a blog post about release processes. Like Google, they regularly roll back. Should they determine that a new release is not behaving as intended, they roll back and then analyse.&lt;/p&gt;

&lt;p&gt;This is logical. As a process, rolling back is well understood and produces predictable outcomes. In contrast, analysing an active issue can prove time consuming – taking anywhere between 10 minutes and 3 hours. Therefore, firstly implement the definite method of rolling back. Then, having returned to normality, carry out the less certain analysis task.&lt;/p&gt;

&lt;p&gt;Elements for successful rollback&lt;/p&gt;

&lt;p&gt;In order for rollback to be effective it must be rapid and uneventful. There are several factors to consider:&lt;/p&gt;

&lt;p&gt;Previous release availability&lt;/p&gt;

&lt;p&gt;If during a rollback you have to compile the previous release from Git, you will not know its trustworthiness until least desirable – namely when the production environment is offline.&lt;/p&gt;

&lt;p&gt;Process simplicity&lt;/p&gt;

&lt;p&gt;Should a rollback involve consulting a wiki and coordinating 3 people, there will be some reluctance to carry it out. Again, time is lost here.&lt;/p&gt;

&lt;p&gt;Database compatibility&lt;/p&gt;

&lt;p&gt;Often overlooked, simply rolling back code does not reverse a database migration. For example, if release 42 removes a column but release 41 still accesses it, then rolling back will cause the application to fail again. Typically, the solution is to use the expand and contract technique (also referred to as parallel change). Firstly, introduce the new column. Next, deploy code compatible with both the original and updated database structure. Finally, in a future release, delete the old column. Furthermore, the Google Cloud blog post indicates that if a database schema is compatible with both versions then you can roll back to the earlier version, without needing to also roll back the database schema.&lt;/p&gt;

&lt;p&gt;Finally, you must confirm that everything functions correctly. Assess error levels and service health post rollback. Just because a deployment has been completed, does not necessarily mean that the application is healthy.&lt;/p&gt;

&lt;p&gt;Assessing your set up&lt;/p&gt;

&lt;p&gt;Choose a test service. Implement a minor and innocuous update. Roll this back and measure how long it takes to move from the decision to make to successfully returning to a healthy state. Then ask a colleague (who did not create your pipeline) to undertake the same. If either of you takes in excess of a few minutes, or requires assistance, then you have identified an area for improvement.&lt;/p&gt;

&lt;p&gt;To improve this, ensure previous releases are accessible. Streamline your rollback process. And include the query "does this work with the previous release?" in your migration analysis list.&lt;/p&gt;

&lt;p&gt;Rolling back in Optivian&lt;/p&gt;

&lt;p&gt;Optivian provides immediate rollback functionality for each application that you deploy. Should a deployment be problematic, you revert to the last correct version rather than frantically recompiling. Note though, that unlike recompiling, rollback does not reverse the impact of a deployment on your data. Thus, the above guidance for migrations is applicable irrespective of the platform you use.&lt;/p&gt;

&lt;p&gt;How swiftly could your team revert to the last successful release today?&lt;/p&gt;

&lt;p&gt;References&lt;/p&gt;

&lt;p&gt;Google SRE Book – Effective Troubleshooting: &lt;a href="https://sre.google/sre-book/effective-troubleshooting/" rel="noopener noreferrer"&gt;https://sre.google/sre-book/effective-troubleshooting/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google SRE Book – Appendix B – Best Practices for Production Services: &lt;a href="https://sre.google/sre-book/service-best-practices/" rel="noopener noreferrer"&gt;https://sre.google/sre-book/service-best-practices/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google Cloud blog – Reliable releases and rollbacks: &lt;a href="https://cloud.google.com/blog/products/gcp/reliable-releases-and-rollbacks-cre-life-lessons/" rel="noopener noreferrer"&gt;https://cloud.google.com/blog/products/gcp/reliable-releases-and-rollbacks-cre-life-lessons/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Martin Fowler – Parallel Change: &lt;a href="https://www.martinfowler.com/bliki/ParallelChange.html" rel="noopener noreferrer"&gt;https://www.martinfowler.com/bliki/ParallelChange.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Optivian is an integrated cloud platform. For further information visit &lt;a href="https://optivian.cloud" rel="noopener noreferrer"&gt;https://optivian.cloud&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>cloud</category>
      <category>kubernetes</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Your API URL lives in 3 dashboards. Which copy is right?</title>
      <dc:creator>Himanshu Kawale</dc:creator>
      <pubDate>Mon, 16 Nov 2026 07:22:20 +0000</pubDate>
      <link>https://dev.to/himanshu_kawale_605156ca8/your-api-url-lives-in-3-dashboards-which-copy-is-right-3g9j</link>
      <guid>https://dev.to/himanshu_kawale_605156ca8/your-api-url-lives-in-3-dashboards-which-copy-is-right-3g9j</guid>
      <description>&lt;p&gt;Most teams do not plan to spread one app across three services. It happens a service at a time, and then the same environment variable has to be set in every place the app runs.&lt;/p&gt;

&lt;p&gt;The Twelve-Factor App method puts config in the environment, apart from code, and asks you to keep development, staging and production as similar as possible. A database address is config too. The test it suggests is simple: your codebase should be openable to anyone without exposing a credential.&lt;br&gt;
Sooner or later one copy drifts. An API URL that was updated in two dashboards but not the third. A key that was rotated in one place and left alone in two others. Nobody broke anything on purpose. The change was just made three times.&lt;/p&gt;

&lt;p&gt;How to check it in 5 minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;List the variables of each service in each environment.&lt;/li&gt;
&lt;li&gt;Compare them line by line.&lt;/li&gt;
&lt;li&gt;Any difference you cannot explain is drift.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;How to reduce it: one source of truth for config, and rotate secrets from one place.&lt;br&gt;
Source: The Twelve-Factor App, sections "Config" and "Dev/prod parity" (12factor.net).&lt;br&gt;
Save this for your next deploy, and send it to the teammate who owns your environment variables.&lt;/p&gt;

&lt;p&gt;Optivian is a cloud platform that deploys your frontend, backend and database from one Git repo. More at optivian.cloud.&lt;/p&gt;

&lt;h1&gt;
  
  
  cloudhosting #webdevelopment #backend #optivian
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>cloud</category>
      <category>deployment</category>
      <category>production</category>
    </item>
    <item>
      <title>5 Guardrails That Keep an LLM Agent Shippable in Production</title>
      <dc:creator>Himanshu Kawale</dc:creator>
      <pubDate>Tue, 22 Sep 2026 05:45:57 +0000</pubDate>
      <link>https://dev.to/himanshu_kawale_605156ca8/5-guardrails-that-keep-an-llm-agent-shippable-in-production-16j5</link>
      <guid>https://dev.to/himanshu_kawale_605156ca8/5-guardrails-that-keep-an-llm-agent-shippable-in-production-16j5</guid>
      <description>&lt;p&gt;An LLM agent that demos well and an LLM agent that survives production are almost different projects. The demo needs the happy path. Production needs everything else. Here are the five guardrails we put on every agent we ship, the ones that decide whether it's an asset or an incident.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Bound what the agent can actually do
&lt;/h2&gt;

&lt;p&gt;The single biggest mistake is giving an agent broad tool access "so it can figure things out." An agent that &lt;em&gt;can&lt;/em&gt; call any endpoint eventually &lt;em&gt;will&lt;/em&gt; call the wrong one. Give it the smallest set of tools that covers the task, with typed inputs and server-side validation on every call. The agent proposes, your code decides whether the action is allowed. Treat every tool call as untrusted input, because it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Put a human in the loop on high-stakes actions
&lt;/h2&gt;

&lt;p&gt;Not everything needs approval, that kills the point of automation. But &lt;em&gt;irreversible&lt;/em&gt; or &lt;em&gt;regulated&lt;/em&gt; actions do: moving money, sending an external communication, changing a record that has downstream consequences. Draw a clear line: below the threshold, the agent acts; above it, it drafts and a human confirms. Make the threshold explicit and configurable, not buried in a prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Build an eval harness before you build features
&lt;/h2&gt;

&lt;p&gt;"It worked when I tried it" is not a test. Before you add capabilities, build a set of real cases with known-good outcomes and run the agent against them on every change. Without this, you can't tell whether a prompt tweak improved things or quietly broke three other flows. The eval harness is what turns agent development from vibes into engineering, and it's what you show a stakeholder (or an auditor) who asks "how do you know it works?"&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Make it observable, you can't debug what you can't see
&lt;/h2&gt;

&lt;p&gt;An agent that acts needs a trace of &lt;em&gt;why&lt;/em&gt;. Log every step: the input, the reasoning or tool selection, the tool result, the final action. When something goes wrong in production, and it will, a full trace is the difference between a five-minute fix and a two-day mystery. Bonus: those traces become your next eval cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Fail safe, not silent
&lt;/h2&gt;

&lt;p&gt;Agents fail in ways deterministic code doesn't: a tool times out, the model returns garbage, a step loops. Decide &lt;em&gt;in advance&lt;/em&gt; what happens then. The wrong answer is "return whatever it produced." The right answer is graceful degradation: retry with backoff, fall back to a simpler path, or escalate to a human with the context already gathered. A production agent should be boring when it fails, not creative.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern underneath
&lt;/h2&gt;

&lt;p&gt;None of this is exotic. It's the same discipline you'd apply to any system that acts on real data, least privilege, tested changes, observability, safe failure, applied to a component that happens to be probabilistic. The teams whose agents survive production aren't the ones with the cleverest prompts. They're the ones who treated the agent like production software from day one.&lt;/p&gt;

&lt;p&gt;If you're building agents that have to hold up in a real business, with the integration and guardrails that implies, that's the work we do at &lt;a href="https://levitation.in/ai-agents" rel="noopener noreferrer"&gt;Levitation&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>agents</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
