<?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: Gopi Gugan</title>
    <description>The latest articles on DEV Community by Gopi Gugan (@gopigugan).</description>
    <link>https://dev.to/gopigugan</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%2F3711270%2F5d119358-2258-42c4-a780-66edcf881efb.png</url>
      <title>DEV Community: Gopi Gugan</title>
      <link>https://dev.to/gopigugan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gopigugan"/>
    <language>en</language>
    <item>
      <title>How I Monitor an LLM Feature in Production - By Gopi Gugan</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Fri, 27 Nov 2026 21:59:40 +0000</pubDate>
      <link>https://dev.to/gopigugan/how-i-monitor-an-llm-feature-in-production-by-gopi-gugan-2fno</link>
      <guid>https://dev.to/gopigugan/how-i-monitor-an-llm-feature-in-production-by-gopi-gugan-2fno</guid>
      <description>&lt;p&gt;I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. You can find more of my work at &lt;a href="https://www.gopigugan.ca/" rel="noopener noreferrer"&gt;https://www.gopigugan.ca/&lt;/a&gt;. I recently shipped an LLM feature that worked well in testing — and then watched it quietly drift in production. Nothing crashed. The model just got a little worse, a little slower, a little more expensive, and nobody noticed for a week. That is the failure mode of LLM features: they do not fail loudly, they fade. So I built monitoring for it, and this is what I actually watch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Latency, cost, and errors — the boring three
&lt;/h2&gt;

&lt;p&gt;Before anything clever, I track the same three things I would track for any API endpoint.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Latency:&lt;/strong&gt; p50 and p95 per request, split by model and by feature, so one slow prompt does not hide inside an average&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost:&lt;/strong&gt; tokens in, tokens out, and dollars per request — logged with every call, not estimated later from a bill&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Errors:&lt;/strong&gt; provider timeouts, rate limits, and malformed responses, counted separately so I know which one is actually hurting me&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are boring, and they catch most of the real problems. A prompt that suddenly doubles in cost usually means the input is growing — someone pasted a whole document where a paragraph used to go. A latency spike is often a model version change, not my code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Log the prompts and the answers, not just the metrics
&lt;/h2&gt;

&lt;p&gt;Metrics tell me something is wrong. Traces tell me what. I log every LLM call with the prompt, the response, the model, the token counts, and how long it took — plus a request ID that ties it back to the user action that triggered it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep the full trace, not just the final answer — I need to see the exact prompt the model saw&lt;/li&gt;
&lt;li&gt;Sample aggressively for high-volume features (I keep 10% of routine calls, 100% of failures and flagged ones), so logging never becomes the bottleneck&lt;/li&gt;
&lt;li&gt;Redact secrets and personal data before the trace leaves the request — once it is in a log store, it is hard to take back&lt;/li&gt;
&lt;li&gt;Store traces where I can search them, not in a file I will never open&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a user reports a bad answer, the first thing I do is pull the trace. Half the time the prompt was not what I expected — a missing instruction, a stale piece of context, a tool result that arrived empty.&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch quality, not just uptime
&lt;/h2&gt;

&lt;p&gt;An LLM can be up, fast, and cheap while giving bad answers. That is the gap normal monitoring misses. So I run a small, continuous quality check on top of production traffic.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Golden prompts:&lt;/strong&gt; a fixed set of 20–30 prompts I run against production every hour, scored by simple checks (did it refuse when it should, did it cite the right source, did it follow the format)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User signals:&lt;/strong&gt; thumbs-down, "try again" clicks, and follow-up corrections — cheap signals that are worth more than my own judgement&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Drift alerts:&lt;/strong&gt; if the pass rate on golden prompts drops for an hour, I get notified the same way I would for a 500 error&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I keep the scoring simple on purpose. A hand-graded eval set run hourly beats a fancy automated judge I never look at. The point is a number that moves when the model's behaviour moves, not a perfect measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small logging wrapper, in plain Python
&lt;/h2&gt;

&lt;p&gt;Here is roughly how I wrap every LLM call, so the metrics and traces come for free instead of being bolted on later:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;

&lt;span class="n"&gt;logger&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getLogger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"llm"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;call_llm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;request_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;reply&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;latency_ms&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"llm_call"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="s2"&gt;"request_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;request_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"prompt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"tokens_in"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;usage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;input_tokens&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"tokens_out"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;usage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output_tokens&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"latency_ms"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;latency_ms&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"llm_error"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="s2"&gt;"request_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;request_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"latency_ms"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The wrapper does three things: it measures, it logs the trace with the request ID, and it separates errors from slow successes. Everything downstream — dashboards, alerts, cost reports — reads from these logs. One wrapper, one source of truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do first
&lt;/h2&gt;

&lt;p&gt;If your LLM feature is already live and unmonitored, do not build a platform. Start with this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Wrap every LLM call in one function that logs the prompt, response, tokens, latency, and request ID&lt;/li&gt;
&lt;li&gt;Put latency, cost, and error rate on a dashboard you already check — next to your other endpoints, not in a separate tool&lt;/li&gt;
&lt;li&gt;Pick 20 golden prompts and run them hourly, with an alert when the pass rate drops&lt;/li&gt;
&lt;li&gt;Review a random sample of traces every week — the bad answers teach you more than the metrics&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;LLM features fail quietly, so monitoring them is not optional polish — it is how you find out something went wrong before your users tell you. Log the traces, watch the quality, and keep a human in the loop on the alerts.&lt;/p&gt;

&lt;p&gt;Ship the monitoring with the feature, not after it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>react</category>
      <category>llm</category>
    </item>
    <item>
      <title>How I Build an AI Agent That Calls Real Tools — Without Letting It Run Wild - By Gopi Gugan</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Thu, 26 Nov 2026 21:59:11 +0000</pubDate>
      <link>https://dev.to/gopigugan/how-i-build-an-ai-agent-that-calls-real-tools-without-letting-it-run-wild-by-gopi-gugan-2m7a</link>
      <guid>https://dev.to/gopigugan/how-i-build-an-ai-agent-that-calls-real-tools-without-letting-it-run-wild-by-gopi-gugan-2m7a</guid>
      <description>&lt;p&gt;I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. You can find more of my work at &lt;a href="https://www.gopigugan.ca/" rel="noopener noreferrer"&gt;https://www.gopigugan.ca/&lt;/a&gt;. Lately I have been building an AI agent — not a chatbot that answers questions, but an agent that actually does things: it looks up orders, updates records, and calls real tools on my behalf. The first version scared me a little, and it should have. An agent that can act is an agent that can make a mess, so I rebuilt it with guardrails before I trusted it with anything real.&lt;/p&gt;

&lt;h2&gt;
  
  
  An agent is a loop, not a prompt
&lt;/h2&gt;

&lt;p&gt;The mental model that helped me most is simple: an agent is a loop. It thinks, it picks a tool, it sees the result, and it decides what to do next. The model is only one part of that loop — the rest is code I control.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The tools:&lt;/strong&gt; small, typed functions like &lt;code&gt;get_order(id)&lt;/code&gt; or &lt;code&gt;update_status(id, status)&lt;/code&gt; — nothing the agent invents on the fly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The loop:&lt;/strong&gt; a plain Python loop with a hard cap on steps, so it cannot run forever&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The transcript:&lt;/strong&gt; every thought, tool call, and result is logged, so I can replay exactly what happened&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I keep the tools narrow on purpose. An agent with one well-described tool is safer than an agent with twenty vague ones. If a tool can delete something, I think twice about whether the agent needs it at all — most of the time it doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give the agent a whitelist, not a warning
&lt;/h2&gt;

&lt;p&gt;My first version told the model "be careful" in the system prompt. That is not a control, it is a hope. What actually works is enforcing the rules in code, where the model cannot talk its way around them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only tools I registered can be called — the model cannot invent a new one&lt;/li&gt;
&lt;li&gt;Write actions need an explicit allowlist entry; everything else is read-only by default&lt;/li&gt;
&lt;li&gt;Every tool call is validated against a schema before it runs, so a hallucinated argument never reaches the database&lt;/li&gt;
&lt;li&gt;Destructive actions need a human confirmation step, no exceptions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The prompt still matters — it tells the agent what good work looks like — but the prompt is not the security layer. The code around the model is.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small agent loop, in plain Python
&lt;/h2&gt;

&lt;p&gt;Here is roughly what my loop looks like, stripped down to the shape of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;MAX_STEPS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run_agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;history&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user_request&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;MAX_STEPS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;reply&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tool_calls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;  &lt;span class="c1"&gt;# The agent is done&lt;/span&gt;

        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;call&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tool_calls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;tool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;call&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;tool&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;call&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;ALLOWED_TOOLS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Blocked tool call: {call.name}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;tool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;call&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;history&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tool"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;call&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Agent hit the step limit — stopping, not guessing"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things in that loop do most of the safety work: the allowlist check before any tool runs, and the step limit that stops the agent instead of letting it spiral. Everything else is observability.&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch what it does, not just what it says
&lt;/h2&gt;

&lt;p&gt;The agent's final answer is the least interesting part. What I actually review is the trace: which tools it called, in what order, with what arguments, and whether it stopped when it should have.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log every tool call with its arguments and result&lt;/li&gt;
&lt;li&gt;Review traces weekly — the failures teach you more than the successes&lt;/li&gt;
&lt;li&gt;Track how often the agent hits the step limit, calls a blocked tool, or asks for a tool it doesn't have&lt;/li&gt;
&lt;li&gt;Feed the real failures back into better tool descriptions and stricter rules&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pattern I keep coming back to is the same one as with any LLM feature: a small eval set of realistic tasks, a number that goes up or down, and a habit of rerunning it when I change anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do first
&lt;/h2&gt;

&lt;p&gt;If you are adding an agent to an existing app, do not start with a framework. Start with this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pick one task your users already do by hand, with a clear end state&lt;/li&gt;
&lt;li&gt;Build two or three narrow tools for it — read-only first&lt;/li&gt;
&lt;li&gt;Put the loop behind an allowlist and a step limit, and log everything&lt;/li&gt;
&lt;li&gt;Run it on ten real examples and read every trace before you widen access&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An agent is not magic. It is a model, a loop, and a set of tools — and the tools and the loop are the parts you actually own. Get those right, and the agent is useful. Skip them, and the agent is a demo that can delete your data with confidence.&lt;/p&gt;

&lt;p&gt;Build the guardrails first, and the agent earns its freedom one tool at a time.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>agents</category>
      <category>llm</category>
    </item>
    <item>
      <title>How I Evaluate an LLM Feature Before Shipping It - By Gopi Gugan</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Wed, 25 Nov 2026 21:59:46 +0000</pubDate>
      <link>https://dev.to/gopigugan/how-i-evaluate-an-llm-feature-before-shipping-it-by-gopi-gugan-4ih2</link>
      <guid>https://dev.to/gopigugan/how-i-evaluate-an-llm-feature-before-shipping-it-by-gopi-gugan-4ih2</guid>
      <description>&lt;p&gt;I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. You can find more of my work at &lt;a href="https://www.gopigugan.ca/" rel="noopener noreferrer"&gt;https://www.gopigugan.ca/&lt;/a&gt;. The hardest lesson I have learned shipping LLM features is this: a demo that looks good in a chat window tells you almost nothing about whether the feature works.&lt;/p&gt;

&lt;p&gt;An LLM will happily produce a confident, fluent answer. It will do that whether the answer is right or wrong. So before I ship anything with a model in it, I evaluate it — with real inputs, real expectations, and numbers I can compare over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "it looks good" is not an evaluation
&lt;/h2&gt;

&lt;p&gt;When I first built LLM features, my testing was me typing a few questions and nodding. That is not testing. It has three problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I only tried questions I already knew the answer to&lt;/li&gt;
&lt;li&gt;I judged the output by how fluent it sounded, not whether it was correct&lt;/li&gt;
&lt;li&gt;I had no way to know if a prompt change made things better or worse&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An LLM feature needs the same discipline as any other feature: a test set, a pass/fail rule, and a way to rerun it. The only difference is that the "test" is a question and the "expected output" is a judgment, not an exact string.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a small eval set first
&lt;/h2&gt;

&lt;p&gt;Before I touch the prompt, I collect 20 to 30 real examples. Not examples I invent — real questions from users, support tickets, or documents the feature will actually see.&lt;/p&gt;

&lt;p&gt;Each example in my eval set has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The input, exactly as a user would send it&lt;/li&gt;
&lt;li&gt;What a good answer looks like, in plain words&lt;/li&gt;
&lt;li&gt;What a bad answer looks like — the specific failure I am worried about&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I keep the set in a simple JSON file so anyone can add to it. Twenty good examples beat two hundred synthetic ones, because they reflect what users actually ask. I also include a few adversarial cases: vague questions, questions with no good answer, and questions where the model should say "I don't know."&lt;/p&gt;

&lt;p&gt;The rule I follow: if a question has no right answer in my data, "I don't know" is the correct answer, and I score it that way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure what matters, not what is easy
&lt;/h2&gt;

&lt;p&gt;For most features I build, three measurements are enough:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Correctness:&lt;/strong&gt; did the answer match the expected facts? I check this with a simple rubric, sometimes with a second LLM as a judge, and sometimes by hand for a small set.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grounding:&lt;/strong&gt; did the answer come from the retrieved context, or did the model invent it? I check whether the key facts appear in the sources I gave it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refusal quality:&lt;/strong&gt; when there was no good answer, did it say so clearly instead of guessing?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I run the eval as a plain Python script, so it fits into the same workflow as my other tests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run_eval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;eval_file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ask&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;cases&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;eval_file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;ask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"input"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;passed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;check_answer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;passed&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;passed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{passed}/{len(results)} passed"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check_answer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# A simple rubric: required facts present, forbidden claims absent&lt;/span&gt;
    &lt;span class="n"&gt;has_facts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"must_include"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;no_bad&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nb"&gt;any&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"must_not_include"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;has_facts&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;no_bad&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is deliberately simple. The point is not a fancy framework — it is having a number that goes up or down when I change the prompt, the retrieval, or the model. If I change something and the score drops, I know before my users do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch it in production, because evals are not enough
&lt;/h2&gt;

&lt;p&gt;An eval set is a snapshot. Real users will ask things I never imagined, and the model will fail in ways my 30 examples never covered. So I treat production as the second half of evaluation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log the question, the retrieved context, and the answer — not just the answer&lt;/li&gt;
&lt;li&gt;Sample a few conversations every week and score them by hand&lt;/li&gt;
&lt;li&gt;Track how often users rephrase, retry, or abandon the feature&lt;/li&gt;
&lt;li&gt;Add every real failure I find back into the eval set&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That loop — eval, ship, observe, add the failure to the eval set — is the whole system. The eval set grows from real usage, and the feature gets harder to break over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do first
&lt;/h2&gt;

&lt;p&gt;If you are adding an LLM feature to an existing app, do not start with an evaluation framework. Start with this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write down 20 real questions your users would ask&lt;/li&gt;
&lt;li&gt;Write down what a good answer looks like for each one&lt;/li&gt;
&lt;li&gt;Run them through your feature and score the results honestly&lt;/li&gt;
&lt;li&gt;Fix the worst failure, then rerun the same set&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Evaluation is not about proving the model is good. It is about knowing exactly where it is weak, so you can design around it — with better retrieval, clearer prompts, or a human in the loop where it matters.&lt;/p&gt;

&lt;p&gt;AI does not remove the need for testing. It makes testing more important, because the failures are confident, fluent, and easy to miss. A small eval set and the habit of rerunning it is the cheapest reliability work you can do on an LLM feature.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>llm</category>
      <category>testing</category>
    </item>
    <item>
      <title>How I Would Build a RAG App in 2026: FastAPI + Postgres/pgvector + React - By Gopi Gugan</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:30:12 +0000</pubDate>
      <link>https://dev.to/gopigugan/how-i-would-build-a-rag-app-in-2026-fastapi-postgrespgvector-react-502b</link>
      <guid>https://dev.to/gopigugan/how-i-would-build-a-rag-app-in-2026-fastapi-postgrespgvector-react-502b</guid>
      <description>&lt;p&gt;As a software engineer, I'm Gopi Gugan, and I have spent a lot of time this year learning how to build with large language models. You can find more of my work at &lt;a href="https://www.gopigugan.ca/" rel="noopener noreferrer"&gt;https://www.gopigugan.ca/&lt;/a&gt;. The pattern that keeps coming up in real products is not a clever prompt. It is RAG: retrieval-augmented generation.&lt;/p&gt;

&lt;p&gt;In simple terms, RAG lets an LLM answer from your data instead of only from what it memorised in training. You store your documents as embeddings, retrieve the most relevant chunks for a question, and give those chunks to the model as context.&lt;/p&gt;

&lt;p&gt;It sounds simple. The difference between a demo and a useful product is in the engineering around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why RAG, and when not to use it
&lt;/h2&gt;

&lt;p&gt;RAG is a good fit when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your answers need to come from private or changing documents&lt;/li&gt;
&lt;li&gt;Users ask specific questions, not general knowledge questions&lt;/li&gt;
&lt;li&gt;You need to show sources, not just an answer&lt;/li&gt;
&lt;li&gt;Hallucinations are costly, and a wrong answer is worse than no answer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is not the right tool for everything. If the answer is stable, public knowledge, a plain LLM call is faster and cheaper. If you need exact calculations or up-to-date structured data, an API or database query will beat retrieval every time.&lt;/p&gt;

&lt;p&gt;Choosing RAG is an engineering decision, not a default.&lt;/p&gt;

&lt;h2&gt;
  
  
  My stack: FastAPI + Postgres/pgvector + React
&lt;/h2&gt;

&lt;p&gt;For a practical RAG app, I would keep the stack boring and familiar:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;FastAPI&lt;/strong&gt; for the API, because it is fast to build with in Python and handles async retrieval well&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Postgres with pgvector&lt;/strong&gt; for storage, because you get a real database and vector search in one place, instead of adding a separate vector store too early&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React with TypeScript&lt;/strong&gt; for the frontend, because the interesting work is in the UI: showing sources, streaming answers, and handling follow-up questions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the same stack I am building with in my current AI upskilling work. Python for the LLM and retrieval logic, React for the product surface.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pipeline that actually matters
&lt;/h2&gt;

&lt;p&gt;A RAG system has four parts, and most failures happen in the first two:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ingestion:&lt;/strong&gt; Split documents into chunks that make sense on their own. A chunk that cuts a paragraph in half will retrieve badly, no matter how good your model is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Embedding and storage:&lt;/strong&gt; Store the chunk, its embedding, and its source. Keep the metadata. You will need it to show citations and to debug bad answers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retrieval:&lt;/strong&gt; Search by meaning, not just keywords. Start with top 5 chunks, then test with real questions. More chunks is not always better, it adds noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generation:&lt;/strong&gt; Give the model the retrieved chunks and clear instructions: answer only from the context, say when you do not know, and cite the source.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If an answer is wrong, do not start by changing the model. Check what was retrieved first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quality, reliability, and human oversight
&lt;/h2&gt;

&lt;p&gt;AI can accelerate development, but human oversight remains critical here too. A RAG app can retrieve the wrong document, quote it confidently, and look correct.&lt;/p&gt;

&lt;p&gt;Good engineering still requires:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Testing with real questions from real users, not just examples that work&lt;/li&gt;
&lt;li&gt;Measuring retrieval quality, not just whether the final answer sounds good&lt;/li&gt;
&lt;li&gt;Logging questions, retrieved chunks, and answers so you can improve them&lt;/li&gt;
&lt;li&gt;Clear fallbacks when confidence is low or no relevant document is found&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RAG does not remove responsibility. It makes the quality of your data and retrieval part of the product.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would build first
&lt;/h2&gt;

&lt;p&gt;If you are learning RAG, do not start with a complex agent framework. Build the smallest useful version:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;One document set you understand well&lt;/li&gt;
&lt;li&gt;A simple upload and ask flow in React&lt;/li&gt;
&lt;li&gt;FastAPI endpoints for ingest, ask, and feedback&lt;/li&gt;
&lt;li&gt;Source citations in every answer&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then iterate on chunking, retrieval, and evaluation. That loop is where the learning happens.&lt;/p&gt;

&lt;p&gt;AI is not replacing software engineers. It is reshaping the craft toward system design, data quality, and good judgment about when to trust the model. RAG is a good place to practise exactly those skills, because the model is only as good as the system around it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>react</category>
      <category>rag</category>
    </item>
    <item>
      <title>Event-Driven Architecture 101: Building a Simple App with Kafka - By Gopi Gugan</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Thu, 15 Jan 2026 16:02:24 +0000</pubDate>
      <link>https://dev.to/gopigugan/event-driven-architecture-101-building-a-simple-app-with-kafka-by-gopi-gugan-2ekc</link>
      <guid>https://dev.to/gopigugan/event-driven-architecture-101-building-a-simple-app-with-kafka-by-gopi-gugan-2ekc</guid>
      <description>&lt;p&gt;Event-driven architecture (EDA) has become a cornerstone of modern backend systems — powering real-time analytics, notification pipelines, and scalable microservices. Yet for many developers, &lt;strong&gt;Kafka still feels intimidating&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This guide breaks Kafka down into first principles and walks through a &lt;strong&gt;minimal, real-world example&lt;/strong&gt; you can understand and run locally in under 10 minutes.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Kafka (In Plain English)?
&lt;/h2&gt;

&lt;p&gt;Apache Kafka is a distributed &lt;strong&gt;event streaming platform&lt;/strong&gt; used to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publish events (producers)&lt;/li&gt;
&lt;li&gt;Store events durably (topics)&lt;/li&gt;
&lt;li&gt;Consume events (consumers)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of services calling each other directly, they emit events to Kafka. Other services react to those events &lt;strong&gt;asynchronously&lt;/strong&gt;, when they are ready.&lt;/p&gt;

&lt;p&gt;Think of Kafka as a &lt;strong&gt;highly reliable, scalable event log&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  When Should You Use Kafka?
&lt;/h2&gt;

&lt;p&gt;Kafka is a strong choice when you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Asynchronous communication between services&lt;/li&gt;
&lt;li&gt;High-throughput data pipelines&lt;/li&gt;
&lt;li&gt;Real-time processing&lt;/li&gt;
&lt;li&gt;Decoupled microservices&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You probably &lt;strong&gt;do not need Kafka&lt;/strong&gt; if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You only have one service&lt;/li&gt;
&lt;li&gt;You rely on simple request/response APIs&lt;/li&gt;
&lt;li&gt;Your scale is small and predictable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Kafka is powerful — but unnecessary complexity is still complexity.&lt;/p&gt;




&lt;h2&gt;
  
  
  High-Level Architecture
&lt;/h2&gt;

&lt;p&gt;At a high level, Kafka works like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A producer sends an event to a topic
&lt;/li&gt;
&lt;li&gt;Kafka stores the event durably
&lt;/li&gt;
&lt;li&gt;One or more consumers read the event at their own pace
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This eliminates tight coupling and prevents cascading failures between services.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 1: Run Kafka Locally with Docker
&lt;/h2&gt;

&lt;p&gt;The fastest way to get started is Docker.&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="c1"&gt;# docker-compose.yml&lt;/span&gt;
&lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;3"&lt;/span&gt;
&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;zookeeper&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;confluentinc/cp-zookeeper&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;ZOOKEEPER_CLIENT_PORT&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2181&lt;/span&gt;

  &lt;span class="na"&gt;kafka&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;confluentinc/cp-kafka&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;9092:9092"&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;KAFKA_ZOOKEEPER_CONNECT&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;zookeeper:2181&lt;/span&gt;
      &lt;span class="na"&gt;KAFKA_ADVERTISED_LISTENERS&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;PLAINTEXT://localhost:9092&lt;/span&gt;
      &lt;span class="na"&gt;KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start Kafka:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You now have a working Kafka broker running locally.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 2: Create a Producer (Node.js)
&lt;/h2&gt;

&lt;p&gt;A producer’s only responsibility is to &lt;strong&gt;emit events&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Kafka&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;kafkajs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;kafka&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Kafka&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;brokers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;localhost:9092&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;producer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;kafka&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;producer&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;sendEvent&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;producer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;producer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;topic&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;orders&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
          &lt;span class="na"&gt;orderId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;123&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="na"&gt;total&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;49.99&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}),&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;producer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;disconnect&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;sendEvent&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key takeaway:&lt;br&gt;&lt;br&gt;
The producer does &lt;strong&gt;not&lt;/strong&gt; know who consumes the event.&lt;/p&gt;


&lt;h2&gt;
  
  
  Step 3: Create a Consumer
&lt;/h2&gt;

&lt;p&gt;Consumers react to events independently.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Kafka&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;kafkajs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;kafka&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Kafka&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;brokers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;localhost:9092&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;consumer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;kafka&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;consumer&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;groupId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;billing-service&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;consumer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;consumer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subscribe&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;topic&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;orders&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;consumer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;eachMessage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;message&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;event&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
      &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Processing order:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;orderId&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can now add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A shipping service&lt;/li&gt;
&lt;li&gt;An analytics service&lt;/li&gt;
&lt;li&gt;A notification service&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All without changing the producer.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Event-Driven Architecture Scales
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Traditional Architecture&lt;/th&gt;
&lt;th&gt;Event-Driven Architecture&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tight coupling&lt;/td&gt;
&lt;td&gt;Loose coupling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Synchronous calls&lt;/td&gt;
&lt;td&gt;Asynchronous events&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hard to scale&lt;/td&gt;
&lt;td&gt;Horizontally scalable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fragile failures&lt;/td&gt;
&lt;td&gt;Resilient systems&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Kafka acts like a &lt;strong&gt;shock absorber&lt;/strong&gt; between services.&lt;/p&gt;




&lt;h2&gt;
  
  
  Common Kafka Mistakes to Avoid
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Treating Kafka like a queue (it is a log)&lt;/li&gt;
&lt;li&gt;Creating too many tiny topics&lt;/li&gt;
&lt;li&gt;Ignoring schema evolution&lt;/li&gt;
&lt;li&gt;Using Kafka when a database and cron job would be simpler&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Kafka should reduce complexity — not add to it.&lt;/p&gt;




&lt;h2&gt;
  
  
  When Kafka Becomes a Superpower
&lt;/h2&gt;

&lt;p&gt;Kafka really shines when combined with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Schema Registry (Avro or Protobuf)&lt;/li&gt;
&lt;li&gt;Stream processing (Kafka Streams or Flink)&lt;/li&gt;
&lt;li&gt;Real-time analytics pipelines&lt;/li&gt;
&lt;li&gt;Event-driven notifications&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At that point, Kafka becomes your system’s &lt;strong&gt;central nervous system&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;Kafka is not scary — it is just &lt;strong&gt;a durable event log with rules&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Topics&lt;/li&gt;
&lt;li&gt;Producers&lt;/li&gt;
&lt;li&gt;Consumers&lt;/li&gt;
&lt;li&gt;Consumer groups&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You already understand &lt;strong&gt;most of Kafka&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>kafka</category>
      <category>backend</category>
      <category>devops</category>
    </item>
    <item>
      <title>Designing APIs That Developers Love: Practical Tips</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Wed, 14 Jan 2026 16:22:34 +0000</pubDate>
      <link>https://dev.to/gopigugan/designing-apis-that-developers-love-practical-tips-2a5j</link>
      <guid>https://dev.to/gopigugan/designing-apis-that-developers-love-practical-tips-2a5j</guid>
      <description>&lt;p&gt;As a Software Engineer, I, Gopi Gugan, have spent years designing APIs that are both powerful and easy to use. APIs are the backbone of modern software, connecting applications and services seamlessly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key principles for API design:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Consistent naming conventions&lt;/li&gt;
&lt;li&gt;Proper versioning and backward compatibility&lt;/li&gt;
&lt;li&gt;Meaningful error messages&lt;/li&gt;
&lt;li&gt;Thorough documentation&lt;/li&gt;
&lt;li&gt;Secure authentication and authorization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;APIs should minimize friction for developers while providing reliable, predictable behaviour. Good API design saves time, reduces bugs, and improves developer experience across the board.&lt;/p&gt;

</description>
      <category>api</category>
      <category>softwareengineering</category>
      <category>gopigugan</category>
    </item>
    <item>
      <title>Career Growth for Software Engineers in 2026</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Wed, 14 Jan 2026 16:11:15 +0000</pubDate>
      <link>https://dev.to/gopigugan/career-growth-for-software-engineers-in-2026-35f3</link>
      <guid>https://dev.to/gopigugan/career-growth-for-software-engineers-in-2026-35f3</guid>
      <description>&lt;p&gt;I’m Gopi Gugan, a Software Engineer passionate about technology and continuous learning. The tech landscape evolves quickly, and staying relevant requires constant skill development.&lt;/p&gt;

&lt;h2&gt;
  
  
  Strategies I follow:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Learning new programming languages and frameworks&lt;/li&gt;
&lt;li&gt;Contributing to open-source projects&lt;/li&gt;
&lt;li&gt;Engaging with tech communities and forums&lt;/li&gt;
&lt;li&gt;Keeping up-to-date with industry trends (cloud, AI, DevOps)&lt;/li&gt;
&lt;li&gt;Building side projects to explore new ideas&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Continuous learning not only enhances technical skills but also strengthens problem-solving abilities, preparing engineers for leadership roles in software development.&lt;/p&gt;

</description>
      <category>careergrowth</category>
      <category>softwaredevelopment</category>
      <category>gopigugan</category>
    </item>
    <item>
      <title>How AI is Transforming Software Engineering - By Gopi Gugan</title>
      <dc:creator>Gopi Gugan</dc:creator>
      <pubDate>Wed, 14 Jan 2026 16:07:44 +0000</pubDate>
      <link>https://dev.to/gopigugan/how-ai-is-transforming-software-engineering-by-gopi-gugan-2l26</link>
      <guid>https://dev.to/gopigugan/how-ai-is-transforming-software-engineering-by-gopi-gugan-2l26</guid>
      <description>&lt;p&gt;Artificial intelligence is changing the way we build software. As a Software Engineer, I, Gopi Gugan, have seen firsthand how AI tools are becoming integral to development workflows, shifting both the skills we need and how we approach problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI as a Productivity Booster
&lt;/h2&gt;

&lt;p&gt;Modern AI-powered tools help with tasks like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Auto-generating code snippets&lt;/li&gt;
&lt;li&gt;Suggesting refactorings and improvements&lt;/li&gt;
&lt;li&gt;Detecting bugs early&lt;/li&gt;
&lt;li&gt;Automating test case creation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These tools allow engineers to focus on architecture, system design, and solving higher-level problems instead of repetitive boilerplate code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Evolving Role of Engineers
&lt;/h2&gt;

&lt;p&gt;With AI handling repetitive tasks, software engineers are increasingly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reviewing and validating AI-generated code&lt;/li&gt;
&lt;li&gt;Designing robust, scalable systems&lt;/li&gt;
&lt;li&gt;Making decisions around trade-offs and system constraints&lt;/li&gt;
&lt;li&gt;Ensuring ethical and responsible use of AI in development&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The focus is moving from “writing every line of code” to guiding AI intelligently and making informed engineering decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ensuring Quality and Reliability
&lt;/h2&gt;

&lt;p&gt;AI can accelerate development, but human oversight remains critical. Generated code can contain mistakes, security vulnerabilities, or inefficient logic. Solid engineering practices—like thorough testing, code reviews, and system monitoring—remain essential.&lt;/p&gt;

&lt;p&gt;AI doesn’t replace responsibility; it amplifies the importance of careful, thoughtful engineering.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI in Testing and Maintenance
&lt;/h2&gt;

&lt;p&gt;Intelligent testing and analysis tools are helping engineers maintain complex systems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identifying edge cases and failure points&lt;/li&gt;
&lt;li&gt;Reducing regression bugs&lt;/li&gt;
&lt;li&gt;Understanding and improving legacy codebases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is especially valuable for teams managing large, long-lived applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continuous Learning is Key
&lt;/h2&gt;

&lt;p&gt;To stay competitive, engineers must adapt to an AI-driven environment by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understanding AI tools and their limitations&lt;/li&gt;
&lt;li&gt;Strengthening core engineering fundamentals&lt;/li&gt;
&lt;li&gt;Learning how to integrate AI into existing workflows effectively&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI changes the tools, but the engineer’s judgment and expertise remain central.&lt;/p&gt;

&lt;p&gt;AI is not replacing software engineers—it is reshaping the craft. Engineers who adapt by improving their problem-solving, system design, and ethical awareness will thrive in this new era.&lt;/p&gt;

&lt;p&gt;By embracing AI responsibly, we can focus on building better software faster while continuing to develop the skills that make human engineers indispensable.&lt;/p&gt;

</description>
      <category>softwareengineering</category>
      <category>ai</category>
      <category>career</category>
    </item>
  </channel>
</rss>
