<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Siva Prasad Rao Janapati on Medium]]></title>
        <description><![CDATA[Stories by Siva Prasad Rao Janapati on Medium]]></description>
        <link>https://medium.com/@siva.janapati?source=rss-9129beadd887------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8TdcA2iarCtLk5i60BQAiw.jpeg</url>
            <title>Stories by Siva Prasad Rao Janapati on Medium</title>
            <link>https://medium.com/@siva.janapati?source=rss-9129beadd887------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:17:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@siva.janapati/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building MediBot: A Production-Ready Healthcare RAG Assistant with Hybrid Search, Reranking, SQL…]]></title>
            <link>https://medium.com/@siva.janapati/building-medibot-a-production-ready-healthcare-rag-assistant-with-hybrid-search-reranking-sql-2f3ae2115ad4?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f3ae2115ad4</guid>
            <category><![CDATA[rag-sql]]></category>
            <category><![CDATA[text-to-sql-generative-ai]]></category>
            <category><![CDATA[meditbot]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 22:21:22 GMT</pubDate>
            <atom:updated>2026-06-14T22:29:48.230Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building MediBot: A Production-Ready Healthcare RAG Assistant with Hybrid Search, Reranking, SQL RAG, and Retrieval-Level RBAC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9OnDJCzhMsQJZepcXzeyqA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@accuray?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Accuray</a> on <a href="https://unsplash.com/photos/a-few-men-looking-at-a-computer-screen-MFSEP2g4YS0?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Large Language Models are powerful, but they come with two significant challenges in enterprise environments. They operate on knowledge frozen at the time of training, and they have no inherent access to private organizational data.</p><p><strong>Retrieval-Augmented Generation (RAG)</strong> solves both problems by retrieving relevant information from a trusted knowledge repository at query time and supplying it as context to the LLM. This allows organizations to leverage their internal knowledge while avoiding the expense and operational overhead of fine-tuning models whenever data changes. In general, a RAG pipeline looks like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuOrPmNtIl_9oZefhRgpcg.png" /></figure><p>But, when we are building an enterprise RAG system which demands more,</p><p>→ <strong>Fine-grained access control</strong></p><p>→ <strong>High retrieval accuracy</strong></p><p>→ <strong>Structured document understanding</strong></p><p>→ <strong>Analytical querying over databases</strong></p><p>→ <strong>Explainable answers with citations</strong></p><p>To explore these challenges, I built <strong>MediBot</strong>, an AI-powered healthcare assistant designed for a multi-hospital healthcare network.</p><p>The goal was not simply to answer questions from PDFs.</p><p>The goal was to build a <strong>secure, production-style system</strong> that combines,</p><p><strong>→ Advanced RAG</strong></p><p><strong>→ Hybrid Retrieval</strong></p><p><strong>→ Cross-Encoder Reranking</strong></p><p><strong>→ Retrieval-Time Role-Based Access Control (RBAC)</strong></p><p><strong>→ SQL RAG</strong></p><p><strong>→ FastAPI APIs</strong></p><p><strong>→ Next.js Chat UI</strong></p><p>This article walks through the architecture, design decisions, implementation details, and lessons learned.</p><h3>The Business Problem</h3><p>Healthcare organizations generate enormous volumes of documentation like,</p><p><strong>→ Treatment protocols</strong></p><p><strong>→ Drug formularies</strong></p><p><strong>→ Diagnostic guidelines</strong></p><p><strong>→ Insurance billing references</strong></p><p><strong>→ Equipment maintenance manuals</strong></p><p><strong>→ Internal HR policies</strong></p><p>The challenge is not a lack of information. The challenge is finding the right information quickly while ensuring sensitive information remains protected.</p><p>Consider these examples. A <strong>Doctor </strong>can access,</p><p>→ Clinical protocols</p><p>→ Drug formularies</p><p>→ Diagnostic references</p><p>But should NOT access,</p><p>→ Billing codes</p><p>→ Insurance claim procedures</p><p>→ Equipment procurement information</p><p>Traditional RAG systems often rely on application-level access control.This is dangerous. If restricted documents are retrieved before filtering, <strong>prompt injection attacks </strong>can expose sensitive information. I wanted to eliminate that risk entirely.</p><h3>System Architecture</h3><p>The architecture consists of six major components.</p><p><strong>→ Document Ingestion</strong></p><p><strong>→ Vector Database</strong></p><p><strong>→ Hybrid Retrieval</strong></p><p><strong>→ Cross-Encoder Reranking</strong></p><p><strong>→ SQL RAG</strong></p><p><strong>→ API + Frontend Layer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*AbliiWC3emTNKBr1HcoJSQ.png" /></figure><h3>Why Traditional RAG Was Not Enough</h3><p>Healthcare data introduces additional challenges:</p><h4>Challenge 1: Medical Terminology</h4><p>Queries often contain exact keywords like,</p><p>→ ICD-10 codes</p><p>→ Drug names</p><p>→ Procedure identifiers</p><p>→ Equipment model numbers</p><p>If we do pure semantic search, we will miss the exact matches.</p><h4>Challenge 2: PDF Structure</h4><p>Medical documents contains data like,</p><p>→ Headings</p><p>→ Tables</p><p>→ Dosage charts</p><p>→ Procedure steps</p><p>If we do fixed chunking we will lose context.</p><h4>Challenge 3: Security</h4><p>Healthcare data requires strict access controls. Retrieval of chunks must be restricted before the LLM sees the content to avoid prompt injection attacks.</p><h4>Challenge 4: Operational Analytics</h4><p>Questions such as,</p><blockquote>How many insurance claims were escalated last month?</blockquote><p>cannot be answered from documents. They require database access. That is the reason we are using SQL RAG in this implementation.</p><p>In the next article, I will walk through the code to create Medibot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f3ae2115ad4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Personal Lesson On Authenticity in Life: Speaking the Truth Without Breaking Trust]]></title>
            <link>https://medium.com/@siva.janapati/authenticity-in-leadership-and-life-speaking-the-truth-without-breaking-trust-0c7fa752ea96?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c7fa752ea96</guid>
            <category><![CDATA[relationships]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[authenticity]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Sun, 28 Sep 2025 18:56:44 GMT</pubDate>
            <atom:updated>2025-09-29T20:45:40.766Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q9KKegei8qx8txeWignlIQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Brett Jordan</a> on <a href="https://unsplash.com/photos/brown-wooden-puzzle-game-board-D44kHt8Ex14?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>When I was in seventh grade, a lesson about authenticity came to me in the most unexpected way.</p><p>My eldest brother had just landed his very first job. Back then, offer letters use to arrive in envelopes delivered by post. For most families, that moment would have been one of a celebration. But in our home, things took a different turn. My father opened the letter, read it silently, and then hide the letter. In his heart, he believed the role(though it was a government job) wasn’t worthy of my brother’s abilities, so he chose not to share the news with him. As a growth minded father he did it right as my brother would have taken that job and would have been stuck over there.</p><p>I just so happened to find out what was happening. “<strong><em>Don’t tell to your brother about this</em>”</strong>, my father firmly told me when I asked.</p><p>However, I was young and firmly believed that the path of truth was always the right one. Being genuine meant being honest to me. I was unable to contain myself and eventually shared the letter with my brother. Our family experienced a storm as a result. There were arguments and misunderstandings. I was hurt. I believed that I had made the correct decision. However, I had violated my father’s trust, in his opinion.</p><h3>What That Moment Taught Me</h3><p>Looking back now, I realize that moment wasn’t just about a job letter. It was about the delicate balance between authenticity and awareness.</p><p>Being authentic, living truthfully, speaking openly, showing up as yourself is a powerful thing. It builds trust. It allows people to know the “<strong><em>real you.</em></strong>” It often clears the fog of misunderstanding.</p><p>But authenticity without consideration of situations can also create unnecessary friction. Timing, environment, and relationships are also matter. Sometimes, <strong><em>a truth delivered too early or too bluntly can harm more than it helps.</em></strong></p><h3>Authenticity in Transformation</h3><p>As I have grown, I have noticed this especially in moments of personal or professional transformation. When we are transforming by learning, growing, becoming new versions of ourselves , authenticity helps us to stay grounded. It reminds us not to lose sight of <strong><em>who we are</em></strong>.</p><p>But at the same time, transformation often disrupts the people around us. The authentic expression in those moments may clash with their expectations, values, or comfort zones. And while the truth can set us free, it can also create conflict if not shared with empathy.</p><p>That seventh-grade moment still stays with me. I don’t regret being truthful, but I understand now why it caused so much tension.</p><p>The authenticity is a virtue. But like any virtue, it needs wisdom to guide it. The real art of authenticity is not just in being true but it’s in being true with care.</p><p><strong><em>How do you balance being authentic with being mindful of timing and relationships? I would love to hear your thoughts. Please share your experiences in the comments.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c7fa752ea96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Kafka Schema Registry Works and Why You Should Use It]]></title>
            <link>https://medium.com/@siva.janapati/how-kafka-schema-registry-works-and-why-you-should-use-it-9297d7538e4e?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/9297d7538e4e</guid>
            <category><![CDATA[kafka-schema-registry]]></category>
            <category><![CDATA[schemaregistry]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 17:48:59 GMT</pubDate>
            <atom:updated>2025-08-27T17:48:59.608Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DsyHOtY4jVxA9ozkpWsVNw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jonflobrant?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Jon Flobrant</a> on <a href="https://unsplash.com/photos/body-of-water-between-trees-under-cloudy-sky-rB7-LCa_diU?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>In modern event driven applications, <a href="https://kafka.apache.org/"><strong>Apache Kafka</strong></a> has become backbone of real-time event processing. But, great scalable solution comes with a tricky challenge, <strong>how can producers and consumers make sure they are on the same page about the format of the data they are exchanging?</strong></p><p>That is where the <a href="https://docs.confluent.io/current/schema-registry/index.html"><strong>Kafka Schema Registry</strong></a> saves us.</p><h3>What is Kafka Schema Registry?</h3><p>The Schema Registry is a service that manages and enforces schemas for data sent through Kafka. Instead of embedding the full schema inside each message (which would increase payload sizes and slow down processing), producers and consumers store their schema definitions centrally in the registry.</p><p>The most common serialization formats supported are:</p><p>● <strong>Avro</strong> (most widely used with Schema Registry)</p><p>● <strong>Protobuf</strong></p><p>● <strong>JSON Schema</strong></p><p>Each schema is versioned and assigned an ID by the registry. The producers write data in a binary-encoded format with just a <strong>schema ID</strong>, and the consumers fetch the schema from the registry to correctly deserialize the message.</p><h3>How Does It Work?</h3><h4><strong>Producer publishes a message</strong></h4><p>● When a producer writes data, it first registers its schema with the registry (if not already registered).</p><p>● The registry stores the schema and returns a unique schema ID.</p><p>● The producer encodes the payload using Avro/Protobuf/JSON Schema, prefixes the schema ID, and pushes the message to Kafka Topic.</p><h4><strong>Consumer reads a message</strong></h4><p>● The consumer reads the Kafka message from Topic, sees the schema ID in the payload.</p><p>● It looks up the schema from the registry.</p><p>● The consumer deserializes the message using the schema and processes it.</p><p>This handshake ensures both producer and consumer share a consistent understanding of the data structure without embedding the full schema every time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*BHFUurpmJTh7rPMj0MOp6Q.png" /></figure><h3>Why Do We Need Schema Registry?</h3><p>Without a schema registry, we run to risks like:</p><p><strong>Compatibility issues</strong>: One team changes will breaks other teams consumer.</p><p><strong>Data corruption</strong>: Messages may fail to parse due to mismatched expectations.</p><p><strong>Slowed development</strong>: Every team must manually coordinate schema changes.</p><p>The schema registry solves these by centralizing schema management.</p><h3>Key Benefits</h3><p><strong>Schema Evolution with Compatibility Checks: </strong>We can enforce rules like <em>backward</em>, <em>forward</em>, or <em>full</em> compatibility. For example, Adding a new optional field doesn’t break old consumers.</p><p><strong>Efficiency in Storage and Bandwidth: </strong>Only schema ID is stored with the payload, not the full schema. This brings significant data size savings when dealing with large event volumes.</p><p><strong>Decoupled Producer and Consumer Development: </strong>Teams can evolve independently, as long as they respect compatibility rules. No need for tight coupling between applications.</p><p><strong>Centralized Governance and Validation: </strong>All the schemas live in one place, making it easier for data teams to discover and validate data contracts.</p><p><strong>Improved Reliability and Data Quality: </strong>Prevents invalid or unexpected data structures ensures downstream systems can rely on consistent formats.</p><p>The <strong>Kafka Schema Registry</strong> is more than just a schema store, it is the foundation for building <strong>scalable, reliable, and evolvable event-driven systems</strong>. By enabling safe schema evolution, reducing payload size, and enforcing compatibility rules, it ensures our Kafka pipelines can grow with our business without breaking.</p><p>If you are serious about running Kafka in production, the Schema Registry should not be an optional, it is a <strong>must-have </strong>tool.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9297d7538e4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Architecture Design Review Checklist for Designing Software Systems]]></title>
            <link>https://medium.com/@siva.janapati/architecture-design-review-checklist-for-designing-software-systems-2e33d598fa6a?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e33d598fa6a</guid>
            <category><![CDATA[technical-architecture]]></category>
            <category><![CDATA[software-design]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 21:36:38 GMT</pubDate>
            <atom:updated>2025-07-19T21:36:38.744Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymZXnDCqF57h-mXABfp2Gg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@peteriveyphotography?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Peter Ivey-Hansen</a> on <a href="https://unsplash.com/photos/brown-building-structure-5xOSA-UgsKQ?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>As architects, we must build systems that are not only functional but also <strong>resilient, scalable, observable, </strong>and<strong> secure</strong>. I always believe that Software doesn’t function when we don’t address non-functional requirements. Here is an architecture checklist to guide you during design/architecture reviews.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7280c216b01cecd40f8ac42b86b3eff6/href">https://medium.com/media/7280c216b01cecd40f8ac42b86b3eff6/href</a></iframe><p>This architecture review checklist is a mindset shift. It enables us to ask the right questions before issues arise, ensures alignment across teams, and brings a culture of <strong>engineering excellence</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e33d598fa6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happens When You Type amazon.com in the Browser? The DNS Resolution Journey]]></title>
            <link>https://medium.com/@siva.janapati/what-happens-when-you-type-amazon-com-in-the-browser-the-dns-resolution-journey-9577044b60e9?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/9577044b60e9</guid>
            <category><![CDATA[dns-root-server]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[tld]]></category>
            <category><![CDATA[dns-resolution]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Fri, 18 Jul 2025 18:23:26 GMT</pubDate>
            <atom:updated>2025-07-18T18:24:02.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEDSIwpXVYW5_tQuUXxwUQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@alinnnaaaa?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Alina Grubnyak</a> on <a href="https://unsplash.com/photos/low-angle-photography-of-metal-structure-ZiQkhI7417A?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Have you ever wondered how our browser magically knows where to find Amazon’s servers when we type <strong>amazon.com</strong>? This magic is made possible by the <strong>Domain Name System (DNS)</strong> , the phonebook of the internet.</p><p>In this post, I will explain <strong>step-by-step DNS resolution process</strong>, from our browser’s cache to the authoritative name servers, and tools we can use to observe this journey.</p><p>Let me walk through what happens behind the scenes when you type amazon.com in the browser and hit ENTER:</p><h3>Browser DNS Cache</h3><p>Modern browsers cache DNS responses to avoid repeated lookups. For example, If you recently visited <strong>amazon.com</strong>, the IP might already be cached in your browser.</p><blockquote><em>Introspect Browser DNS Cache:</em></blockquote><blockquote><em>Type</em><strong> chrome://net-internals/#dns</strong> in Chrome’s address bar</blockquote><blockquote><em>Type </em><strong>about:networking#dns</strong> in Firefox’s address bar</blockquote><h3>Operating System (OS) DNS Cache</h3><p>If the browser cache misses, it checks the OS-level DNS cache (e.g., Windows, macOS, Linux).</p><blockquote><strong>Tool to introspect OS DNS Cache</strong>:</blockquote><blockquote><strong>On Windows</strong>: ipconfig /displaydns</blockquote><blockquote><strong>On macOS/Linux</strong>: Use sudo dscacheutil -cachedump -entries (mac) or systemd-resolve — statistics</blockquote><h3>Router DNS Cache</h3><p>Next, the request goes to our <strong>local network router</strong>, which might also cache previous queries to speed up resolution for all devices on the network.</p><blockquote><strong>Tool</strong>: Most home routers have a admin web interface to inspect DNS settings</blockquote><h3>ISP DNS Cache (Recursive Resolver)</h3><p>If the router doesn’t have the answer, it forwards the request to our <strong>Internet Service Provider’s (ISP) DNS server</strong> , a recursive resolver. This resolver performs most of the heavy lifting.</p><p>If the resolver has the IP in its cache, it returns the result. Otherwise, it starts a <strong>recursive resolution process</strong> that includes contacting root, TLD, and authoritative servers.</p><blockquote><strong>Tool</strong>: We can find ISP DNS server via:<br> <strong>nslookup</strong> or <strong>dig</strong></blockquote><h3>Root Name Server</h3><p>The recursive resolver queries one of the <strong>13 root DNS servers</strong> (<strong>a.root-servers.net, b.root-servers.net</strong>, etc.). They don’t have the final answer, but they know where <strong>.com</strong> TLD servers are.</p><blockquote><em>Returns: I don’t know where </em><strong><em>amazon.com</em></strong><em> is, but ask a </em><strong><em>.com</em></strong><em> TLD server.</em></blockquote><blockquote><em>Use </em><strong><em>dig amazon.com @a.root-servers.net </em></strong><em>to know .com TLD server</em></blockquote><h3><strong>Top-Level Domain (TLD) Name Server</strong></h3><p>The <strong>.com</strong> <strong>TLD servers</strong> like <strong>a.gtld-servers.net</strong> respond with a referral to Amazon’s <strong>authoritative name server</strong>.</p><blockquote><em>Returns</em>: <em>Ask the authoritative name servers: ns1.p31.dynect.net, etc.</em></blockquote><blockquote><em>Use </em><strong><em>dig amazon.com @a.gtld-servers.net </em></strong><em>to know Amazon’s authoritative name server</em></blockquote><h3>Authoritative Name Server</h3><p>These are the DNS servers <strong>owned by Amazon</strong> or managed via third-party DNS providers like Dyn, AWS Route 53. They hold the final mapping from domain to IP.</p><blockquote><em>Returns: The IP of </em><strong><em>amazoz.com</em></strong><em> is 156.154.65.10.</em></blockquote><blockquote><em>Use</em> <strong><em>dig amazon.com @</em>ns1.amzndns.net.<em> </em></strong><em>to get the IP address of amazon.com</em></blockquote><h3>Recursive Resolver to Client</h3><p>The resolver stores this result in its cache and returns the IP to our router, which returns it to our OS, which returns it to our browser.</p><p>Finally, the browser opens a TCP connection to 176.32.103.205 and sends an HTTP(S) request.</p><p>The entire flow is depicted in the below sequence diagram to understand easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IvVtPMetdWdi1VStvYiyBQ.png" /></figure><p>You can use tools like <a href="https://dnsviz.net/">DNSViz</a> or <a href="https://toolbox.googleapps.com/apps/dig/">Google Dig Tool</a> for visual DNS graphing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9577044b60e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Handle Concurrent Updates in REST APIs with ETags]]></title>
            <link>https://medium.com/@siva.janapati/how-to-handle-concurrent-updates-in-rest-apis-with-etags-210e74b14d99?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/210e74b14d99</guid>
            <category><![CDATA[response-header]]></category>
            <category><![CDATA[etag]]></category>
            <category><![CDATA[http-headers]]></category>
            <category><![CDATA[if-match]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 21:47:00 GMT</pubDate>
            <atom:updated>2025-07-17T21:47:00.120Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDYQ20DixkZi9OD1x76FVA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Christopher Gower</a> on <a href="https://unsplash.com/photos/a-macbook-with-lines-of-code-on-its-screen-on-a-busy-desk-m_HRfLhgABo?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>In modern RESTful APIs, <strong>concurrent updates</strong> to the same resource can lead to <strong>data inconsistency</strong> or <strong>lost updates</strong>. A clean way to address this is using <strong>ETags</strong> (Entity Tags). This <a href="https://datatracker.ietf.org/doc/html/rfc7232#section-2.3">HTTP header</a> allows <strong>optimistic locking</strong> without requiring database-level locking.</p><h3>What is an ETag?</h3><p>ETag (Entity Tag) is an HTTP header used for <strong>cache validation</strong> and <strong>Concurrency Control</strong>. It helps clients know whether a resource has changed or not and allows <strong>safe updates</strong> in concurrent environments.</p><h3>Use Case: Handling Concurrent Updates with ETags</h3><ol><li><strong>Client A</strong> gets an Item<br> → <strong>Client A </strong>receives response along with <strong>ETag: “v1” </strong>response<strong> </strong>header</li><li><strong>Client B</strong> also reads the same Item<br> → <strong>Client B </strong>receives response along with <strong>ETag: “v1” </strong>response<strong> </strong>header</li><li><strong>Client A</strong> sends an update request with request headerIf-Match: &quot;v1&quot;<br> → ✅ <strong>Update succeeds</strong><br> → Server updates the Item and generates a new <strong>ETag: &quot;v2&quot;</strong></li><li><strong>Client B</strong> tries to update the resource with by sending response headerIf-Match: &quot;v1&quot;<br> → ❌ Update fails as there is an update done by<strong> Client A </strong>which changed the version<br> → Server responds with <strong>412 Precondition Failed</strong>, as the ETag no longer matches with the latest version available at data store.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*tqXeQttT18ptbBmvCvka5w.png" /></figure><p>Now, Let us setup SpringBoot project to demonstrate the above use case. I am adding only key components here. The code base created for this use case can be downloaded from <a href="https://github.com/2013techsmarts/Code_Samples/blob/master/eTagDemo/README.md">https://github.com/2013techsmarts/Code_Samples/blob/master/eTagDemo/README.md</a></p><p><strong>Step 1: </strong>Add below dependencies to your pom.xml</p><pre>&lt;dependencies&gt;<br>    &lt;!-- Spring Boot Starters --&gt;<br>    &lt;dependency&gt;<br>        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>        &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;dependency&gt;<br>        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>        &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;!-- Database --&gt;<br>    &lt;dependency&gt;<br>        &lt;groupId&gt;com.h2database&lt;/groupId&gt;<br>        &lt;artifactId&gt;h2&lt;/artifactId&gt;<br>        &lt;scope&gt;runtime&lt;/scope&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;!-- Testing --&gt;<br>    &lt;dependency&gt;<br>        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>        &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;<br>        &lt;scope&gt;test&lt;/scope&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;!-- Spock Framework for Testing --&gt;<br>    &lt;!-- https://mvnrepository.com/artifact/org.spockframework/spock-spring --&gt;<br>    &lt;dependency&gt;<br>        &lt;groupId&gt;org.spockframework&lt;/groupId&gt;<br>        &lt;artifactId&gt;spock-spring&lt;/artifactId&gt;<br>        &lt;version&gt;2.4-M6-groovy-4.0&lt;/version&gt;<br>        &lt;scope&gt;test&lt;/scope&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;!-- https://mvnrepository.com/artifact/org.spockframework/spock-core --&gt;<br>    &lt;dependency&gt;<br>        &lt;groupId&gt;org.spockframework&lt;/groupId&gt;<br>        &lt;artifactId&gt;spock-core&lt;/artifactId&gt;<br>        &lt;version&gt;2.4-M6-groovy-4.0&lt;/version&gt;<br>        &lt;scope&gt;test&lt;/scope&gt;<br>    &lt;/dependency&gt;<br>&lt;/dependencies&gt;</pre><p><strong>Step 2: </strong>Create ItemController with ETag Support. In this example, I have used simple technique to create eTags. But, there are good strategies to create eTags</p><pre>package co.smarttechie.controller;<br><br>import co.smarttechie.model.ItemDto;<br>import co.smarttechie.service.ItemService;<br>import org.springframework.http.HttpStatus;<br>import org.springframework.http.ResponseEntity;<br>import org.springframework.web.bind.annotation.GetMapping;<br>import org.springframework.web.bind.annotation.PathVariable;<br>import org.springframework.web.bind.annotation.PostMapping;<br>import org.springframework.web.bind.annotation.PutMapping;<br>import org.springframework.web.bind.annotation.RequestBody;<br>import org.springframework.web.bind.annotation.RequestHeader;<br>import org.springframework.web.bind.annotation.RequestMapping;<br>import org.springframework.web.bind.annotation.RestController;<br><br>import java.net.URI;<br>import java.util.Optional;<br><br>@RestController<br>@RequestMapping(&quot;/items&quot;)<br>public class ItemController {<br><br>    private final ItemService itemService;<br><br>    public ItemController(ItemService itemService) {<br>        this.itemService = itemService;<br>    }<br><br><br>    @GetMapping(&quot;/{id}&quot;)<br>    public ResponseEntity&lt;ItemDto&gt; getItem(@PathVariable Long id) {<br>        return itemService.getItemById(id)<br>                .map(item -&gt; {<br>                    String eTag = generateETag(item);<br>                    return ResponseEntity.ok()<br>                            .eTag(eTag)<br>                            .body(item);<br>                })<br>                .orElse(ResponseEntity.notFound().build());<br>    }<br><br>    @PutMapping(&quot;/{id}&quot;)<br>    public ResponseEntity&lt;ItemDto&gt; updateItem(<br>            @PathVariable Long id,<br>            @RequestBody ItemDto itemToUpdate,<br>            @RequestHeader(value = &quot;If-Match&quot;, required = false) String ifMatch) {<br><br>            Optional&lt;ItemDto&gt; existing = itemService.getItemById(id);<br>            if (existing.isEmpty()) {<br>                return ResponseEntity.notFound().build();<br>            }<br><br>            String currentETag = generateETag(existing.get());<br><br>            if (ifMatch == null || !ifMatch.equals(currentETag)) {<br>                return ResponseEntity.status(HttpStatus.PRECONDITION_FAILED).build();<br>            }<br><br>            return itemService.updateItem(id, itemToUpdate)<br>                    .map(updatedItem -&gt; ResponseEntity.ok()<br>                            .eTag(generateETag(updatedItem))<br>                            .body(updatedItem))<br>                    .orElseGet(() -&gt; ResponseEntity.notFound().build());<br><br>    }<br><br><br>    @PostMapping<br>    public ResponseEntity&lt;ItemDto&gt; createItem(@RequestBody ItemDto itemDto) {<br>        ItemDto createdItem = itemService.createItem(itemDto);<br>        String eTag = generateETag(createdItem);<br><br>        return ResponseEntity<br>                .created(URI.create(&quot;/items/&quot; + createdItem.id()))<br>                .eTag(eTag)<br>                .body(createdItem);<br>    }<br><br>    private String generateETag(ItemDto item) {<br>        return &quot;\&quot;&quot; + item.version() + &quot;\&quot;&quot;;<br>    }<br>}</pre><p><strong>Step 3: </strong>Below<strong> </strong>the<strong> </strong>integration tests for the use case we implemented to demonstrate eTags.</p><pre>package co.smarttechie.integrationtest<br><br>import co.smarttechie.model.ItemDto<br>import co.smarttechie.service.ItemService<br>import com.fasterxml.jackson.databind.ObjectMapper<br>import org.springframework.beans.factory.annotation.Autowired<br>import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc<br>import org.springframework.boot.test.context.SpringBootTest<br>import org.springframework.http.MediaType<br>import org.springframework.test.context.TestPropertySource<br>import org.springframework.test.web.servlet.MockMvc<br>import org.springframework.test.web.servlet.MvcResult<br>import org.springframework.test.web.servlet.ResultActions<br>import spock.lang.Specification<br><br>import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*<br>import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*<br><br>@SpringBootTest<br>@AutoConfigureMockMvc<br>@TestPropertySource(properties = [&quot;spring.jpa.hibernate.ddl-auto=create-drop&quot;])<br>public class ItemControllerSpec extends Specification {<br><br>    @Autowired<br>    MockMvc mockMvc;<br><br>    @Autowired<br>    ItemService itemService;<br><br>    Long createdId;<br>    String initialETag;<br>    ObjectMapper objectMapper;<br><br>    void setup() {<br>        objectMapper = new ObjectMapper()<br>        ItemDto created = itemService.createItem(new ItemDto(&quot;Test Item&quot;, &quot;Initial Description&quot;))<br>        createdId = created.id()<br>        initialETag = &quot;\&quot;${created.version()}\&quot;&quot;<br>    }<br><br>    void &quot;GET /items/{id} returns item with ETag&quot;() {<br>        when: &quot;The client requests the item by id&quot;<br>                MvcResult response = mockMvc.perform(get(&quot;/items/${createdId}&quot;))<br>                        .andExpect(status().isOk())<br>                        .andExpect(header().string(&quot;ETag&quot;, initialETag))<br>                        .andReturn();<br><br>        then: &quot;The response contains the item data with ETag header&quot;<br>                String json = response.response.contentAsString;<br>                json.contains(&quot;Test Item&quot;);<br>    }<br><br>    void &quot;PUT /items/{id} with correct If-Match updates item successfully&quot;() {<br>        given: &quot;An updated item JSON with matching If-Match header&quot;<br><br>                String updatedJson = objectMapper.writeValueAsString([<br>                        name       : &quot;Updated Name&quot;,<br>                        description: &quot;Initial Description&quot;<br>                ]);<br><br>        when: &quot;The client sends PUT request with correct If-Match header&quot;<br>                MvcResult response = mockMvc.perform(put(&quot;/items/${createdId}&quot;)<br>                        .contentType(MediaType.APPLICATION_JSON)<br>                        .header(&quot;If-Match&quot;, initialETag)<br>                        .content(updatedJson))<br>                        .andExpect(status().isOk())<br>                        .andExpect(header().exists(&quot;ETag&quot;))<br>                        .andReturn();<br><br>        then: &quot;The response contains updated item data&quot;<br>                String json = response.response.contentAsString;<br>                json.contains(&quot;Updated Name&quot;);<br>    }<br><br>    void &quot;PUT /items/{id} with missing If-Match returns 412&quot;() {<br>        given: &quot;An updated item JSON without If-Match header&quot;<br>                String updatedJson = objectMapper.writeValueAsString([<br>                        name       : &quot;Updated Name&quot;,<br>                        description: &quot;Updated Description&quot;,<br>                ]);<br><br>        when: &quot;The client sends PUT request without If-Match header&quot;<br>                ResultActions result = mockMvc.perform(put(&quot;/items/${createdId}&quot;)<br>                        .contentType(MediaType.APPLICATION_JSON)<br>                        .content(updatedJson));<br><br>        then: &quot;The server responds with 412 Precondition Failed&quot;<br>               result.andExpect(status().isPreconditionFailed());<br>    }<br><br>    void &quot;PUT /items/{id} with wrong If-Match returns 412&quot;() {<br>        given: &quot;An updated item JSON with wrong If-Match header&quot;<br>                String updatedJson = objectMapper.writeValueAsString([<br>                        name       : &quot;Updated Name&quot;,<br>                        description: &quot;Updated Description&quot;,<br>                ]);<br><br>        when: &quot;The client sends PUT request with incorrect If-Match header&quot;<br>                ResultActions result = mockMvc.perform(put(&quot;/items/${createdId}&quot;)<br>                        .contentType(MediaType.APPLICATION_JSON)<br>                        .header(&quot;If-Match&quot;, &quot;\&quot;999\&quot;&quot;)<br>                        .content(updatedJson));<br><br>        then: &quot;The server responds with 412 Precondition Failed&quot;<br>               result.andExpect(status().isPreconditionFailed());<br>    }<br><br>    void &quot;PUT /items/{nonexistentId} returns 404&quot;() {<br>        given: &quot;An updated item JSON for non-existent id&quot;<br>                String updatedJson = objectMapper.writeValueAsString([<br>                        name       : &quot;Doesn&#39;t Exist&quot;,<br>                        description: &quot;No desc&quot;,<br>                ]);<br><br>        when: &quot;The client sends PUT request to non-existent id&quot;<br>                ResultActions result = mockMvc.perform(put(&quot;/items/999&quot;)<br>                        .contentType(MediaType.APPLICATION_JSON)<br>                        .header(&quot;If-Match&quot;, initialETag)<br>                        .content(updatedJson));<br><br>        then: &quot;The server responds with 404 Not Found&quot;<br>                result.andExpect(status().isNotFound());<br>    }<br>}</pre><p>By using ETags in REST APIs provide a reliable way to manage concurrent updates. By validating updates against the latest version of a resource, ETags ensure that the most current version is modified, preventing accidental overwrites of other’s changes. This mechanism supports optimistic concurrency control, allowing stateless APIs to handle concurrent access gracefully while maintaining data integrity.</p><p>ETags don’t just protect updates, they are smart when it comes to reading data too. In the next article, we will explore how ETags, combined with the <strong>If-None-Match</strong> header, helps to speed up by avoiding unnecessary downloads and making our APIs feel faster and lighter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210e74b14d99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Billion Dollar Mistake: Null Pointer Exceptions in Java and How to Fix It with Compile-Time…]]></title>
            <link>https://medium.com/@siva.janapati/the-billion-dollar-mistake-null-pointer-exceptions-in-java-and-how-to-fix-it-with-compile-time-cb347e872c97?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb347e872c97</guid>
            <category><![CDATA[nullpointerexception]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[optional-type]]></category>
            <category><![CDATA[null]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Sun, 25 May 2025 18:56:00 GMT</pubDate>
            <atom:updated>2025-05-25T19:00:59.175Z</atom:updated>
            <content:encoded><![CDATA[<h3>The B<strong>illion</strong> Dollar Mistake: Null Pointer Exceptions in Java and How to Fix It</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOw80YJgwPk8tphbsRd4Hg.jpeg" /></figure><blockquote>“<strong>I call it my billion-dollar mistake</strong>.” — Sir Tony Hoare, inventor of the null reference.</blockquote><p>In the Java world, we have all been bitten by the dreaded <strong>NullPointerException</strong> (NPE). It is the runtime equivalent of a landmine. Despite all the advancements in the Java ecosystem, null-related bugs remain one of the top causes of production outages and subtle failures in the enterprise systems.</p><p>But what if Java could <strong>detect and prevent null access at compile-time</strong>, just like <strong>Kotlin</strong> does?</p><h3>The Problem: NullPointerException in Java</h3><p>Java’s type system allows any object reference to be null. So, even a method like below is completely legal:</p><pre>public String getUserName(User user) {<br>    return user.getName(); // BOOM if user is null<br>}</pre><p>The below code snippet is even worse:</p><pre>String name = userService.getUser().getProfile().getDisplayName();</pre><p>We have no idea which part might be null until the code runs unless we add verbose null checks with defensive programming, or optional wrappers.</p><h3>💸 The Cost of Null</h3><p>In real-world systems, NullPointerExceptions are a top cause of application crashes which leads to application unavailability. The Logs don’t always reveal the source of NullPointerExceptions which makes troubleshooting hard.</p><p>To avoid NullPointerExceptions, developers should go with defensive approach by adding too many if (x != null) / Objects.nonNull()checks. If the documentation is available, developers must infer which values are nullable and which are not.</p><h3>🚑 Java’s Partial Solutions</h3><p>Java has attempted to deal with nulls through <strong>Optional&lt;T&gt;. </strong>But,<strong> Optional&lt;T&gt; </strong>is more suitable for return types than fields or method parameters. Optional doesn’t enforce anything at compile-time.</p><h4>➥ Optional&lt;T&gt;</h4><pre>Optional&lt;User&gt; user = getUser();<br>user.map(User::getName).orElse(&quot;Guest&quot;);</pre><h4>➥Annotations</h4><pre>@NonNull<br>@Nullable</pre><p>By using above annotations, IDEs and tools like Checker Framework can can help us to detect code which causes potential NullPointerExceptions. But the compiler <strong>doesn’t enforce</strong> these annotations by default.</p><h3>🔒 Enter Kotlin: Null Safety at the Language Level</h3><p>Kotlin treats nulls as <strong>part of the type system</strong>:</p><pre>val name: String = &quot;John&quot;        // Non-nullable<br>val nickname: String? = null     // Nullable</pre><p>If we try to access a nullable without checking whether the Object is null or not, the compiler will give an error.</p><pre>val len = nickname.length // ❌ Compiler error!</pre><p>We are forced to <strong>check null or use safe access</strong> (?., ?:, !!), pushing us toward safer code.</p><h3>🛡 How Java Can Emulate Kotlin-Style Null Safety</h3><p>While Java doesn’t yet support null safety at the compiler level, here are ways to move closer to that ideal:</p><h3>1. Use Optional&lt;T&gt; Consistently</h3><p>Make method return types to return Optional. Avoid returning null instead return Optional to force the caller to consider the missing case explicitly.</p><pre>public Optional&lt;User&gt; findUserById(String id) { ... }</pre><h3>2. Adopt Static Analysis Tools</h3><p>With<strong> Checker Framework </strong>compile-time null checking by using @Nullable and @NonNull. By <strong>SpotBugs</strong> or <strong>SonarLint, </strong>helps<strong> </strong>us to find null-related bugs before runtime.</p><h3>3. Leverage IDE Support</h3><p>By using @Contract, @NotNull, and @Nullable consistently, Tools like IntelliJ and Eclipse can infer nullability and warn about potential NPEs.</p><h3>4. Embrace Defensive API Design</h3><ul><li>Avoid returning null—return empty lists, Optionals, or defaults.</li><li>Validate constructor parameters to avoid null state.</li></ul><pre>public User(@NonNull String name) {<br>    this.name = Objects.requireNonNull(name);<br>}</pre><p><strong>Null</strong> is the ghost in the machine, a design flaw that still haunts developers decades later. While Java doesn’t yet have <strong>native, enforced null safety</strong> like Kotlin, we can build a culture of <strong>intentional null handling</strong>, using tools, Optional, and type annotations wisely.</p><p>Until the day we get built-in compile time null-safety in Java, let us make the billion-dollar mistake to cost us <strong>a little less</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb347e872c97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Thrive as a System Architect: Skills, Challenges & Growth]]></title>
            <link>https://medium.com/@siva.janapati/how-to-thrive-as-a-system-architect-skills-challenges-growth-1b297258f833?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b297258f833</guid>
            <category><![CDATA[system-architect]]></category>
            <category><![CDATA[technical-architect]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Mon, 19 May 2025 14:19:03 GMT</pubDate>
            <atom:updated>2025-06-21T21:06:16.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BtJvR7UPjbBHn6pN767-rw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jasongoodman_youxventures?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Jason Goodman</a> on <a href="https://unsplash.com/photos/five-person-by-table-watching-turned-on-white-imac-vbxyFxlgpjM?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>In today’s fast pacing technology landscape, the role of a <strong>System Architect</strong> is more critical than ever. An Architect don’t just design systems, they bridge the gap between business needs and technical execution, ensuring scalability, security, and efficiency.</p><p>In this post I am breaking down the <strong>key responsibilities </strong>and<strong> skills</strong> that define a successful System Architect.</p><h3>Core Technical Responsibilities</h3><h4>Designing System Architecture:</h4><p>Create architectural blueprints that outlines the structure and components of IT solutions, to satisfy business needs and future scalability demands. This involves defining system components, data flow, and integration points.</p><h4>Conducting Feasibility Studies:</h4><p>Assess the viability of proposed solutions by analyzing technical constraints and business needs. This includes creating <strong>Minimum Viable Products (MVPs)</strong> and <strong>Proof of Concepts (POCs)</strong> to validate approaches. This involves evaluating the practicality and potential impact of different approaches to ensure they are achievable and beneficial.</p><h4>Security and Compliance:</h4><p>Have good security controls in place and be compliant with industry regulations (for example, GDPR, HIPPA). We must undergo frequent security audits and must follow security best practices.</p><h4>Application Support and Monitoring:</h4><p>Monitor system performance, analyze logs, and optimize solutions to meet benchmarks. Proactive troubleshooting ensures smooth operations. This involves regular performance assessments and fine-tuning of system components.</p><h4>Documentation:</h4><p>Maintain detailed records of architecture decisions, technical details, and design rationale for future reference and maintenance.</p><h3>Collaboration &amp; Leadership</h3><h4>Stakeholder Collaboration:</h4><p>Work closely with business leaders, project managers, and developers to drive architecture towards business goals. Effective communication is key.</p><h4>Overseeing Development:</h4><p>Guide development teams, ensuring adherence to architectural designs and best practices. Provide technical advice to keep projects on track.</p><h4>Mentoring and Training:</h4><p>Foster learning culture by guiding team members, up skilling them on new technologies, and promoting best practices.</p><h4>Conflict Resolution:</h4><p>Maintain a strong rapport with the team, solve conflicts, and lead with empathy to ensure a smooth working environment.</p><h4><strong>Hiring, Firing, Performance Reviews</strong>:</h4><p>Collaborate with hiring team, conduct interviews to onboard a team. Sometimes we need to give performance reviews.</p><h3>Business &amp; Soft Skills</h3><h4>Pre-Sales Support:</h4><p>Assistance on <strong>Request for Proposals (RFPs)</strong>, create <strong>Work Breakdown Structures (WBS)</strong>, and support sales teams in pitching technical solutions.</p><h4>Project Management:</h4><p>Experience with <strong>Agile, Scrum</strong>, and other methodologies is essential. Architects must manage timelines, resources, and deliverables effectively. Matured teams will have PMs but, in startups some times Architects does project management too.</p><h4>Negotiation:</h4><p>Negotiate project timelines, resources, and requirements with stakeholders to balance technical feasibility and business needs.</p><h4>Time Management:</h4><p>Coordinate multiple projects, prioritize tasks, and meet deadlines without compromising quality. In smaller organizations, an Architect might support multiple projects. Where as, in bigger organizations a project can have multiple/one dedicated architect.</p><h3>Continuous Growth &amp; Innovation</h3><h4>Innovation and Trends:</h4><p>Stay updated with the latest technological trends and advancements to provide innovative solutions that enhance business processes. This proactive approach helps in leveraging new technologies to improve system functionality and efficiency. Attend online meetups/live events to understand how industry is adopting new trends.</p><h4>Continuous Learning Mindset:</h4><p>Have continuous learning mindset. Engage with fellow architects, contribute to tech forums, obtain certifications, and <strong>lead by example</strong> in adopting new skills.</p><h4>Presentation &amp; Communication Skills:</h4><p>Explain complex concepts clearly — whether on a <strong>whiteboard, in client meetings, or with technology review boards / Architecture review boards / Tech Risk Team</strong>. Strong listening skills are required too.</p><h4>Domain Knowledge:</h4><p>Deep understanding of the industry (Finance, Healthcare, Retail, etc.) helps in designing architectures that truly solve business problems.</p><p>A <strong>System Architect</strong> is more than just a technical expert but also a <strong>leader, strategist, </strong>and<strong> </strong>a<strong> problem-solver</strong>. From designing scalable systems to mentoring teams and driving innovation, their role is <strong>multidimensional</strong>.</p><p>If you are an aspiring architect, pay attention to:<br><strong> →</strong> <strong>Technical depth</strong> (architecture, security, scalability)<br><strong>→</strong> <strong>Soft skills</strong> (communication, negotiation, leadership)<br><strong>→ Business acumen</strong> (domain knowledge, stakeholder management)<br><strong>→</strong> <strong>Continuous learning</strong> (trends, certifications, peer collaboration)</p><p><strong>What is the most challenging part of being an architect in your experience?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b297258f833" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Curl to Hurl: Supercharge Your API Testing Workflow]]></title>
            <link>https://medium.com/@siva.janapati/from-curl-to-hurl-supercharge-your-api-testing-workflow-1cd5a0e30750?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cd5a0e30750</guid>
            <category><![CDATA[api-testing-tools]]></category>
            <category><![CDATA[api-testing]]></category>
            <category><![CDATA[api-test-automation]]></category>
            <category><![CDATA[hurl]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Thu, 01 May 2025 10:07:42 GMT</pubDate>
            <atom:updated>2025-05-01T11:18:54.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZkpvJW1dK6UctMjOrVETg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@artspiley?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">ArtSpiley</a> on <a href="https://unsplash.com/photos/a-close-up-of-a-fire-with-flames-coming-out-of-it-8hIQuXuiJq4?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>In today’s fast-paced development world, <strong>testing APIs efficiently</strong> is crucial for ensuring reliability, performance, and correctness. While tools like <a href="https://www.usebruno.com/"><strong>Postman</strong></a><strong>, </strong><a href="https://www.usebruno.com/"><strong>Bruno</strong></a><strong> </strong>and <strong>curl</strong> are popular, <a href="https://hurl.dev/"><strong>Hurl</strong></a> offers a <strong>lightweight, CLI-based alternative</strong> that combines simplicity with powerful features for <strong>automated API testing. </strong>Recently, I came across<strong> </strong>this tool<strong> </strong>and the simplicity of this tool impressed me.<strong> </strong>In this blog post, we will explore how we can leverage Hurl to test our APIs.</p><h3>What is Hurl?</h3><p>Hurl is an <strong>open-source command-line tool</strong> that allows us to <strong>run </strong>and<strong> test HTTP requests</strong> defined in a <strong>simple plain text format</strong>. It is built on top of <strong>libcurl</strong> and written in <strong>Rust</strong>, making it <strong>fast and efficient</strong>. Hurl makes it easy to work with <strong>HTML</strong> content, <strong>REST / SOAP / GraphQL</strong> APIs, or any other <strong>XML / JSON</strong> based APIs.</p><h4>Key Features of Hurl</h4><p><strong>Plain text format</strong> → Easy to read, write, and version-control.<br><strong>Chaining requests → </strong>Execute multiple HTTP calls in sequence.<br><strong>Response assertions → </strong>Validate status codes, headers, and JSON/XML bodies.<br><strong>Variable captures → </strong>Extract data from responses for reuse.<br><strong>CI/CD friendly → </strong>Integrates with <strong>GitLab, GitHub Actions, and Docker</strong>.<br><strong>Performance checks</strong> → Measure response times (for example, duration &lt; 1000ms).</p><h3>Why Use Hurl Instead of Postman or Curl?</h3><p>While <strong>Postman</strong> is great for manual testing as it has GUI(by exporting collections you can perform automation too, most of the times I used Postman to test APIs in local). These days Postman is also coming with restrictions for commercial use. Hurl is a open source, it wins in <strong>automation and scripting</strong> because,</p><p><strong>No GUI needed</strong> → Works in CI/CD pipelines.<br><strong>Lightweight → </strong>Single binary, no runtime dependencies.<br><strong>Text-based tests</strong> → Easier to maintain and version-control.<br><strong>Supports complex workflows → </strong>Chaining, assertions, and retries.</p><p>It is <strong>perfect for DevOps, QA automation, and developers</strong> who prefer CLI tools</p><h3>Testing a REST API with Hurl</h3><p>Let us test a <strong>mock API</strong> (<a href="https://run.mocky.io/v3/965144b4-3211-47f3-8cbb-0b1ed001fff6">https://run.mocky.io/v3/965144b4-3211-47f3-8cbb-0b1ed001fff6</a>) to see Hurl in action.</p><h3>Step 1: Install Hurl</h3><p>Install Hurl by following below steps based on your operating system.</p><pre># macOS (Homebrew)<br>brew install hurl  <br><br># Linux (Debian/Ubuntu)<br>curl -LO https://github.com/Orange-OpenSource/hurl/releases/download/1.8.0/hurl_1.8.0_amd64.deb<br>sudo dpkg -i hurl_1.8.0_amd64.deb  <br><br># Docker<br>docker pull ghcr.io/orange-opensource/hurl:latest</pre><h3>Step 2: Create a Test File</h3><p>As we discussed the test file is in text format. Add your API to test and the assertions to perform on the API. In my case, I am testing a mock todo API and named the file as todo.hurl.</p><pre>GET https://jsonplaceholder.typicode.com/todos/1<br><br>HTTP 200<br>[Asserts]<br>jsonpath &quot;$.userId&quot; == 1<br>jsonpath &quot;$.id&quot; == 1<br>jsonpath &quot;$.completed&quot; == false<br>jsonpath &quot;$.title&quot; == &quot;delectus aut autem&quot;<br>header &quot;Content-Type&quot; == &quot;application/json; charset=utf-8&quot;<br>duration &lt; 1000                # Response should take &lt;1 second</pre><h3>Step 3: Run the Test</h3><pre>hurl --test todo.hurl</pre><p>The expected output for succesful test will be,</p><pre>todo.hurl: Success (1 request(s) in 59 ms)<br>--------------------------------------------------------------------------------<br>Executed files:    1<br>Executed requests: 1 (16.7/s)<br>Succeeded files:   1 (100.0%)<br>Failed files:      0 (0.0%)<br>Duration:          60 ms<br></pre><p>If the test fails (for example, wrong userId coming from API), Hurl shows <strong>detailed errors </strong>to inform where the test is failing<strong>.</strong></p><pre>error: Assert failure<br>  --&gt; todo.hurl:5:0<br>   |<br>   | GET https://jsonplaceholder.typicode.com/todos/1<br>   | ...<br> 5 | jsonpath &quot;$.userId&quot; == 2<br>   |   actual:   integer &lt;1&gt;<br>   |   expected: integer &lt;2&gt;<br>   |<br><br>todo.hurl: Failure (1 request(s) in 63 ms)<br>--------------------------------------------------------------------------------<br>Executed files:    1<br>Executed requests: 1 (15.4/s)<br>Succeeded files:   0 (0.0%)<br>Failed files:      1 (100.0%)<br>Duration:          65 ms<br></pre><p>To demonstrate I have used simple API to test, but Hurl support complex testing too. You can find more details <a href="https://hurl.dev/docs/tutorial/your-first-hurl-file.html">here</a>.</p><p>If you prefer <strong>CLI tools</strong> over GUI-based ones , you need <strong>lightweight, scriptable API tests</strong> and you want <strong>easy CI/CD integration, Try Hurl today</strong> and simplify the API testing workflow!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cd5a0e30750" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of Software Development: Will Vibe Coding Replace Engineers?]]></title>
            <link>https://medium.com/@siva.janapati/the-future-of-software-development-will-vibe-coding-replace-engineers-47a39c9050be?source=rss-9129beadd887------2</link>
            <guid isPermaLink="false">https://medium.com/p/47a39c9050be</guid>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[Siva Prasad Rao Janapati]]></dc:creator>
            <pubDate>Thu, 24 Apr 2025 13:17:42 GMT</pubDate>
            <atom:updated>2025-04-24T13:17:42.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OrgU2AdguXe0WoCdhS0Nfw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@dementedpixel?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Nigel Hoare</a> on <a href="https://unsplash.com/photos/a-pile-of-red-plastic-balls-with-holes-on-them-bhn4m2ZDEFE?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><blockquote><em>A startup founder just built an MVP in a weekend without writing a single line of code. Is this the end of traditional software engineering?</em></blockquote><p>The rise of <strong>vibe coding </strong>where AI generates code based on natural language prompts has sparked a heated debate in tech. With tools like <strong>Replit, Cursor, Windsurf, and GitHub Copilot</strong>, developers (and even non-developers) can now describe an app in a plain English to get functional code without taking much time.</p><p>According to <a href="https://leaddev.com/hiring/95-ai-written-code-unpacking-the-y-combinator-ceos-developer-jobs-bombshell#:~:text=The%20CEO%20of%20famed%20Silicon,%2C%E2%80%9D%20Garry%20Tan%20told%20CNBC."><strong>Y Combinator</strong>, <strong>25% of new startups</strong></a> now rely on AI for <strong>95% of their codebase</strong>. Google reported that <a href="https://arstechnica.com/ai/2024/10/google-ceo-says-over-25-of-new-google-code-is-generated-by-ai/"><strong>25% their new code</strong></a> is AI generated.</p><blockquote><a href="https://karpathy.ai/">Andrej Karpathy</a>, famously said,<em>“</em><strong><em>The hottest programming language is English.</em></strong><em>”</em></blockquote><p>As AI-generated code is becoming mainstream, a critical question is arising, <strong>Will vibe coding make human engineers obsolete, or will it simply redefine their role?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q1dI_m0t0tWsiHqwXDLO5g.jpeg" /></figure><h3>Why Vibe Coding is Changing Everything</h3><h4>Democratization of Development</h4><p>The days are gone where we are taking years to build a software. Now, a <strong>marketer</strong> can spin up a custom CRM using ChatGPT, or a <strong>small business owner</strong> can generate an inventory management system with tools like Cursor/Windsurf/Replit. A Reddit user recently shared how they built a <strong>Tinder-like swiping app</strong> in two hours using only AI prompts without prior coding experience. <strong>Tools like Cursor and Windsurf </strong>allows users to describe features in conversational language, and the AI writes the code.</p><h4>Speed &amp; Cost Efficiency</h4><p>The startups are <strong>shipping products 10x faster</strong> by leveraging AI-generated code. The Early-stage companies are bypassing expensive engineering hires with AI to handle basic backend logic and UI generation to build prototypes.</p><h4>The Rise of “Prompt Engineers”</h4><p>With the advancement of vibe coding, new roles are emerging. The role of <strong>Prompt</strong> <strong>Engineering </strong>is<strong> </strong>emerging to craft precise prompts to AI to generate optimal code.</p><blockquote>We are entering an era where the best ‘<strong>programmers</strong>’ are those who can articulate problems clearly, not just write algorithms. This implies that, clarity in articulating requirements directly impacts the quality of AI-generated solutions.</blockquote><h3>Why Vibe Coding Can’t Replace Engineers</h3><h4>Technical Debt &amp; Security Risks</h4><p>The Vibe coding speeds up development through AI-generated code but it introduces significant risks, the technical debt increases with duplicated, poorly structured code. The security audits revealed that AI generated code has frequent vulnerabilities like SQL injection and insecure dependencies. The AI-generated code often lacks maintainability. To mitigate these problems, we should enforce rigorous human review and automated scanning.</p><p><strong>Lovable,</strong> AI-built app <strong>leaked API keys</strong> by relying on AI generated code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*BUsdeSL-Wp2uzLm5" /><figcaption>Screenshot credits Klaas/@forgebits on X</figcaption></figure><p><strong>SQL injections, permission flaws, and inefficient algorithms</strong> are common in AI generated code which requires human oversight.</p><h4>Adds Creativity Gap</h4><p>The team heavily depending on Vibe Coding without knowing the architectural guidelines, best coding practices and the low lever coding intricacies won’t be able to understand the AI generated code for security vulnerabilities and operational concerns. Some times, team might not be in a position to tell that the code even exists in the codebase. This leads to chaos when a critical issue arises from production. Any one who heavily depends on Vibe Coding may lose the critical thinking to solve a problem.</p><h4>Debugging Code Becomes Harder</h4><p>Sometimes, team doesn’t even know what code is sitting in the codebase. With that level of understanding, debugging AI generated code becomes harder for any critical production issues.</p><h4>Ethical Concerns</h4><p>Who is liable for AI generated code? How <strong>regulatory audits</strong> can be performed on AI generated code?</p><blockquote>Vibe Coding is a Productivity Booster, Not a Replacement</blockquote><ul><li>Based on the surveys, conducted by <a href="https://github.blog/news-insights/research/research-quantifying-github-copilots-impact-in-the-enterprise-with-accenture/"><strong>GitHub</strong> + <strong>Accenture</strong></a>, found that <strong>GitHub Copilot </strong>can improve developer productivity with <strong>55% faster task</strong> completion</li><li><strong>Humans intuition</strong> remains irreplaceable for <strong>user experience, optimization, and innovation.</strong></li></ul><blockquote>The best developers won’t be replaced by AI, they will be the ones using it best.</blockquote><p>The Vibe coding is not the end of traditional software engineering . It is the <strong>next evolution </strong>for engineers to complement. As engineers we should focus on <strong>high-level problem-solving, architecture, and AI collaboration</strong>.</p><p><strong>What’s your take? <em>Will vibe coding replace engineers, or just make them more efficient?</em> Let’s discuss!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47a39c9050be" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>