<?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 Manjunath Ande on Medium]]></title>
        <description><![CDATA[Stories by Manjunath Ande on Medium]]></description>
        <link>https://medium.com/@manjunathande7?source=rss-04ae29784769------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Up6947upQnvJp47knSUc_g.jpeg</url>
            <title>Stories by Manjunath Ande on Medium</title>
            <link>https://medium.com/@manjunathande7?source=rss-04ae29784769------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:12:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manjunathande7/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[Four Software Engineering Lessons I Learned Building a Digital Prescription System]]></title>
            <link>https://medium.com/@manjunathande7/four-software-engineering-lessons-i-learned-building-a-digital-prescription-system-7dffc5c4358d?source=rss-04ae29784769------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dffc5c4358d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[healthtech]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Manjunath Ande]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 16:02:58 GMT</pubDate>
            <atom:updated>2026-08-20T16:52:00.137Z</atom:updated>
            <content:encoded><![CDATA[<p>When I worked as a pharmacy and billing assistant in 2024 in India, I repeatedly noticed one problem.</p><p>Patients would arrive at the pharmacy carrying a handwritten prescription. Once the medicines were dispensed, that piece of paper became the only record of their treatment. If it was lost, damaged, or forgotten, so was the patient’s prescription history. The consequences were surprisingly common.</p><p>A patient returning for a follow-up appointment might not remember what medicines they had taken or the dosage they were prescribed. The doctor had no easy way to retrieve previous prescriptions, making it difficult to track treatment history or make informed decisions. Patients often had to revisit the clinic simply to obtain another copy.</p><p>For independent clinics and local pharmacies, every prescription effectively became a black box once the patient walked out the door.</p><p>That experience stayed with me. Studies back up exactly what I witnessed on the ground: handwritten prescriptions have a staggering 35.7% error rate compared to just <a href="https://www.rxnt.com/e-prescribing-reduces-errors/?srsltid=AfmBOoo3Eq26w_EYd0wKRdzLlRqbN3nFirM50V71ncxhWdSfvyE3Ksgk\">2.5%</a> for electronic ones, and overall prescription completeness in Indian outpatient settings sits as low as <a href="https://www.ijbcp.com/index.php/ijbcp/article/view/6034">52%</a>. The problem wasn’t a lack of medical expertise; it was a total breakdown of physical data continuity.</p><p>I wanted to build something to solve this concrete workflow issue. That project became CareScript, a lightweight, serverless prescription management system that connects doctors, pharmacists, and patients. Comprehensive enterprise systems exist for massive hospital networks, but small, independent clinics need a streamlined, low-overhead solution that gets out of the way of patient care.</p><p>The workflow is straightforward. A doctor registers a patient and creates a digital prescription. The prescription immediately appears in the pharmacist’s dashboard, where it waits to be dispensed. Once the medicines are handed over, the patient receives an email containing the prescription details, while the doctor retains a permanent digital history for future consultations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZHyyQFrTPjWJYgRRu5hwg.png" /></figure><p>Although the goal was simple, building the backend taught me several lessons that had little to do with the specific cloud primitives and everything to do with designing reliable software.</p><p><strong>Lesson 1: A Patient Number Isn’t Just a Number</strong></p><p>One of the first requirements sounded very simple. Every patient needed a unique, sequential patient ID. Not a UUID like 550b–44c, but something human-friendly like P001, P002, and P003. Receptionists could read them over the phone, pharmacists could type them quickly, and doctors could reference them during consultations.</p><p>If I were using a traditional relational database, an auto-incrementing primary key would have solved this sequential generation easily. DynamoDB doesn’t provide that feature because it is designed as a highly distributed database. A single, central incrementing engine would become a massive global performance bottleneck for a system serving many concurrent scaling applications.</p><p>To solve this, I created a dedicated counter item whose only responsibility was to store the latest patient number. My first instinct was straightforward: read the current counter value, increment it in memory, and use the new value when creating the patient.</p><p>Then I considered what would happen if two receptionists registered patients at nearly the same time. Both API requests might read 42. Both would compute 43. Both would try to write 43.</p><p>This wasn’t only a numbering problem. It was a classic <strong>race condition</strong>, a scenario where two or more elements try to act or change the same resource.</p><p>To avoid that race condition, I updated the dedicated counter item using <strong>DynamoDB’s atomic ADD operation</strong>. Atomic means the increment happens entirely at the database engine layer as a single, indivisible step; concurrent requests are forced to serialize, ensuring no two requests can ever receive the same ID.</p><p>There was still one subtle issue. What if the counter incremented to 43 but the subsequent write to create the patient record failed? The next patient would become 44, leaving 43 permanently unused.</p><p>My first instinct was to wrap both operations in a DynamoDB transaction. But transactions require that every value be known before the transaction runs, and the new patient’s ID depends on the counter’s response, which only becomes available after DynamoDB executes the update.</p><p>So I made a deliberate tradeoff: accept that a failed second write leaves a small gap in the ID sequence. A skipped number is cosmetic, not data corruption, no orphaned records, no broken foreign keys, just a W043 that never existed. Fine for a patient-facing display ID.</p><p>Generating patient IDs was about designing a system that remained correct, even when multiple people used it at the same time.</p><p><strong>Lesson 2: A Prescription Isn’t Just a Record</strong></p><p>Whenever a doctor issued a prescription, I also updated the patient’s visit count. At first, one request created the prescription, and another updated the patient’s record.</p><p>That worked until I imagined what would happen if one operation succeeded and the other failed due to a micro-failure or timeout. The system could record a prescription without recording the visit, or increase the visit count without ever creating the prescription. Both outcomes violated the fundamental business logic.</p><p>A prescription and a patient visit should either exist together or not exist at all. That realization introduced me to the idea of<strong> business invariants</strong>: conditions that must always remain true across the entire system regardless of underlying infrastructure failures.</p><p>To enforce that invariant, I wrapped both writes inside a DynamoDB transaction. Either both operations committed successfully, or both were completely rolled back. The transaction wasn’t protecting multiple database writes; it was protecting a strict promise the system made about how the real-world works.</p><p>This is like sealing both database updates inside a single locked box. The database engine must either accept the entire box and apply everything inside, or reject it completely.</p><p><strong>Lesson 3: Designing for Questions, Not Data</strong></p><p>With patient registration and prescription creation complete, the next feature was building dashboards. Doctors needed to view a patient’s prescription history, and pharmacists needed to see every prescription waiting to be dispensed.</p><p>Having worked with relational databases before, my instinct was to think about entities first: Patients, Prescriptions, Doctors. Then I’d write flexible queries to join tables and answer whatever questions the application asked later.</p><p>DynamoDB encourages almost the opposite approach. Instead of asking, <em>“What data am I storing?”</em>, it asks, <em>“How will this data be accessed?”</em></p><p>Those recurring questions are what database engineers call access patterns — the specific, predictable query pathways an application uses to retrieve data. In NoSQL, you don’t design tables around objects; you model your schema specifically to satisfy these access patterns at scale.</p><p>For CareScript, the access patterns quickly became obvious:</p><ul><li>A doctor asks: <em>“Show me this patient’s prescription history.”</em></li><li>A pharmacist asks: <em>“Which prescriptions are still waiting to be dispensed?”</em></li></ul><p>Once I started listing those questions, the database schema designed itself. Because querying unindexed fields requires slow, expensive table scans, I created Global Secondary Indexes (GSIs): a PatientIndex and a StatusIndex.</p><p>Think of booking an airline seat online. Two people can look at seat 12A simultaneously, but the system verifies a condition, <em>“is it still unassigned?”</em>, at the exact millisecond of purchase, instantly rejecting the slower click.</p><p>The indexes were intentional reflections of how people actually use the system. A good schema isn’t simply one that stores data efficiently; it answers your users’ questions efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gy_7TLZeiikcRnJMnmSFkw.jpeg" /></figure><p><strong>Lesson 4: Not Every State Change Should Be Allowed</strong></p><p>Once a pharmacist dispensed a prescription, they clicked a “Dispense” button. Behind that button, the application updated the prescription’s status and sent the patient an email confirming that their medicines were ready using Amazon SES.</p><p>The status update itself wasn’t the problem. Changing a prescription from PENDING to DISPENSED is idempotent. In software architecture, idempotency describes an operation that produces the same system state whether you run it once or a million times.</p><p>The real problem was the downstream business event. Imagine two pharmacists have the same dashboard open at the counter. A patient arrives, and in the real-world hustle of a clinic, both pharmacists click “Dispense” within a fraction of a second of each other.</p><p>Without any safeguards, both concurrent requests would evaluate successfully. The database status would end up correctly as DISPENSED, but two independent execution threads would fire. The patient would get duplicate confirmation emails, duplicate audit logs would be recorded, and internal inventory metrics would double-count the medication.</p><p>To prevent this, I implemented <strong>Optimistic Concurrency Control (OCC)</strong> by adding a <strong>ConditionExpression</strong> that only allowed the update if the prescription’s current status was exactly PENDING.</p><p>This works because DynamoDB performs the condition check and the update as a single atomic operation. There is no structural gap where a second request can sneak in and observe the old state after the condition has been verified but before the update is written.</p><p>One pharmacist’s request succeeds. Every subsequent request immediately sees the updated state, fails the condition check, and is safely rejected. Backend systems aren’t just responsible for storing state; they’re responsible for controlling exactly how state is allowed to change.</p><p><strong>Final Thoughts:</strong></p><p>Generating sequential IDs wasn’t about counting; it was about concurrency.</p><p>Transactions weren’t about grouping writes; they were about protecting business invariants.</p><p>Database schemas weren’t designed around tables; they were designed around the questions users ask.</p><p>And conditional writes weren’t just preventing invalid updates; they were protecting real-world business events.</p><p>Looking back, those ideas have stayed with me far longer than the AWS services themselves.</p><p><em>My biggest takeaway, as a CS Sophomore, about Software engineering is tha</em>t<strong> it is all about designing systems that continue to reflect reality, even when multiple users interact simultaneously, failures occur unexpectedly, and complexity inevitably grows.</strong></p><p><a href="https://github.com/ManjunathAnde/CareScript"><strong>GitHub</strong></a><strong> | </strong><a href="https://manjunathportfolio-hazel.vercel.app/"><strong>Portfolio</strong></a><strong> | </strong><a href="https://www.linkedin.com/in/manjunath-ande/"><strong>Linkedn</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dffc5c4358d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Architecture Isn’t About Servers. It’s About Not Thinking About Servers.]]></title>
            <link>https://medium.com/@manjunathande7/cloud-architecture-isnt-about-servers-it-s-about-not-thinking-about-servers-0fbe6651941d?source=rss-04ae29784769------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fbe6651941d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[shared-responsibility]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-services]]></category>
            <dc:creator><![CDATA[Manjunath Ande]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 22:27:05 GMT</pubDate>
            <atom:updated>2026-03-30T22:50:22.980Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Day Everything Broke:</strong></p><p>You spent a weekend building a simple game, posted it on Reddit, and went to sleep. You wake up to 400 notifications. Someone big shared it. You open your site, and it’s down. Not because you wrote bad code. Because you never expected this many people to show up at once.</p><p>This wasn’t just a startup problem. Every company building software faced the same constraint. You bought physical servers upfront, guessed your traffic or users, and prayed. Too many servers and you’re spending money on idle machines. Too few and you collapse the moment people actually show up. Most companies were betting on a guess.</p><p><strong>The Nightmare Before Cloud:</strong></p><p>Say you built that game and it actually works. Now you need somewhere to run it. So you buy a server. Like a physical machine that sits somewhere, and needs power and cooling to not fry itself.</p><p>You get it running. Good. Now you need a database to store player scores. So you install one on the same machine, configure it, and make sure it talks to your game correctly. Then one night it crashes. You don’t know why. You dig through logs at midnight trying to figure out what happened. You fix it. It crashes again a week later.</p><p>Now you want to add a new feature. But touching anything feels risky because you don’t fully understand why the last crash happened. And this is just one server. One database. One developer. The moment you get more users, you need more servers. Which means doing all of this again. And again.</p><p>This is where cloud steps in. Stop managing machines. Focus on your product. Let the infrastructure handle itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DbQ7JWd2DTXigMAwMmI8MQ.png" /></figure><p><strong>Plugging Into the Grid:</strong></p><p>Instead of owning infrastructure to run your game, website or service, you rent it. Think of it like electricity. We don’t build a power plant to run our house; we plug into the grid and pay for what we use. Scale up when traffic spikes, scale back down when it doesn’t.</p><p>The big three, AWS, Google Cloud, and Microsoft Azure, are the companies that built this grid. They own the physical infrastructure, servers to run your code, data centers to store your data, cooling systems to keep everything from melting, and a lot more, so you don’t have to. Netflix runs on AWS. Google Maps runs on Google Cloud. Xbox Live runs on Azure. Apps you use every day, kept alive from hundreds of miles away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j5WebTKaABfUZUpGKoazeg.png" /></figure><p><strong>How AWS Was Actually Born:</strong></p><p>AWS wasn’t originally built for the world. It was built for Amazon.</p><p>Around 2002, Jeff Bezos sent an internal memo to every engineering team at Amazon. The rule was simple. Every team must package the efficiency and purpose of their small blocks as a service, accessible through an API. If the payments team needed the storage team’s data, they called their API. If the logistics team needed processing power to run code, they called that team’s API. Every internal tool had to work like a product.</p><p>To make sure this worked, each team had to make its piece so clean and self-contained that anyone else could use it without knowing how it worked internally. Think of it like a vending machine. You press a button, you get what you need. You don’t need to know how it’s stocked, wired, or cooled. You just get your chips. Each team worked exactly like that: press a button, get the service, move on.</p><p>A few years of that discipline later, Amazon had something interesting on their hands. Without meaning to, they’d solved one of the hardest problems in software, making complex infrastructure feel simple. A storage service anyone could use in minutes. Processing power on demand. Tools built for internal chaos that somehow worked perfectly for the outside world. In 2006, they opened it to the world. That became AWS.</p><p><strong>The Three Floors in the AWS Building:</strong></p><p>Let us think of AWS in three layers to better understand. At the bottom, raw infrastructure. This is the machine your game actually runs on. The server, the storage, the network connection. AWS gives you access to all of this through simple services; you pick what you need, and they provide it. No physical hardware, no setup.</p><p>In the middle, managed services. Say your game needs a database to store player scores. You use AWS’s managed database service, and it handles all of that for you. That’s what managed means: AWS runs the underlying complexity, you consume the result.</p><p>At the top, application layer services. This is where things like AI, analytics, and developer tools live. Your game wants to suggest friends based on playing patterns? There’s a service for that. Want to analyze player behavior? There’s a service for that too. The higher you go, the less you manage. The lower you go, the more control you have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KrWp7APKAbm1FvB2" /></figure><p><strong>Who Is Actually Responsible When Things Go Wrong:</strong></p><p>When I spoke with a Solutions Architect at Amazon, shared responsibility was one of the first things he underlined alongside the electricity analogy.</p><p>AWS operates on a shared responsibility model. AWS secures the infrastructure, the physical hardware, the data centers, and the network (the cables and systems that connect everything together). We are responsible for everything we build on top of it. Our data, our configurations, who has access to what.</p><p>AWS makes sure nobody breaks into the data center. We make sure nobody breaks into our application.</p><p>In 2019, Capital One had data from over 100 million customers exposed. Not because AWS got hacked. Because of a misconfigured storage bucket, a setting that was left open when it shouldn’t have been. The infrastructure was secure. The human configuration layer wasn’t. Security isn’t something you add at the end. It’s a decision you make at every step of building.</p><p><strong>The Final Analogy:</strong></p><p>Think of it like this. You want to store important files but your office is a mess, things keep getting lost, and organizing it falls on you. AWS is like a series of purpose-built buildings down the road. One building handles storage. You walk in, get assigned a room, hand your files to the person in charge, and leave. They organize it, secure it, back it up. You just come back when you need something.</p><p>That’s cloud architecture. You don’t manage the room. You just build what matters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*evOSv3HLdBcoE3wDbWojEg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fbe6651941d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RAG Explained: How AI Apps Read Uploaded Docs]]></title>
            <link>https://medium.com/@manjunathande7/rag-explained-how-ai-apps-read-uploaded-docs-7434306a601a?source=rss-04ae29784769------2</link>
            <guid isPermaLink="false">https://medium.com/p/7434306a601a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Manjunath Ande]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 21:06:30 GMT</pubDate>
            <atom:updated>2026-02-25T02:00:42.704Z</atom:updated>
            <content:encoded><![CDATA[<p>You’ve uploaded a 200-page PDF to an AI app. You ask it a question about page 147. It answers correctly, almost like it read the whole thing. But “it doesn’t”. The AI model was trained months ago. It has never seen your document. It doesn’t even have the memory to hold 200 pages at once. So how did it just answer a question about your file?</p><p>The answer is RAG (Retrieval-Augmented Generation). It’s the system behind every “chat with your data” app you’ve seen, and once you understand it, a massive chunk of the AI application world clicks into place.</p><p>AI models like GPT-4 and Claude are, at their core, text-in, text-out machines. You type something, you get a response. These models were trained on massive amounts of text so they know a lot of general stuff. But that’s where their knowledge ends.</p><p>That 500-page company handbook your manager keeps referencing? The model has never seen it. Same goes for your college textbook, your research papers, any of it.</p><p>And there’s another wall. These models have something called a context window, basically their short-term memory. There’s a hard limit on how much text you can feed them at once.</p><p>The model can’t memorize your data, and it can’t hold all of it properly at once. There’s got to be a workaround, right?</p><p><strong>An analogical understanding of RAG</strong>: Think of it like an open-book exam. The student hasn’t memorized the entire textbook. But right before each question, someone finds the most relevant pages, hands them over, and says “here, use these.” The student reads those pages and writes an informed answer. (I wish all exams were open-book.)</p><p>That’s RAG. The AI never memorizes your data. It gets the right pieces at the right time. A retrieval system goes and finds what’s relevant, stuffs it into the AI’s prompt as context, and then the AI generates an answer off of that.</p><p><strong>The Process and Pipeline</strong>: Say you’re building an app where students can ask questions about their History textbook PDF. Before any questions get asked, the system needs to prepare your data. This only happens once.</p><p>The PDF gets loaded and all the text gets extracted. That text gets split into smaller pieces called chunks , maybe one chunk covers the Stamp Act, another covers the Boston Tea Party. Each chunk is small enough to fit within the AI’s memory limits.</p><p>Now each chunk gets run through an embedding model, a separate, smaller AI whose only job is converting text into a vector. A vector is just a list of numbers that represents the meaning of that chunk. So “colonists refused to pay British taxes” and “rebellion against taxation by the Crown” produce similar vectors even though the words are completely different. This is called semantic similarity, and honestly, this part blew my mind when I first learned it. It’s what makes the whole system actually work.</p><p>All those vectors get stored in a vector database. Regular search engines match keywords. Vector databases match meaning, which is why they’re so much better for this kind of thing.</p><p>Your textbook is now chunked, embedded, and stored.</p><p>A student types: “What were the main causes of the American Revolution?”</p><p>That question gets converted into a vector by the same embedding model. The vector database compares it against every stored chunk and pulls back the closest matches by meaning — a chunk about the Stamp Act, one about colonial grievances, one about Enlightenment influences. That’s the <strong>Retrieval</strong>.</p><p>The system assembles everything into one prompt: “Here’s context from the textbook: [chunk 1] [chunk 2] [chunk 3]. Based on this, answer the student’s question.” The retrieved chunks are now sitting inside the prompt, augmenting what the AI can see. That’s the <strong>Augmented</strong> part.</p><p>That whole prompt goes to the AI model. The model reads the context, reads the question, and generates an answer grounded in the actual textbook content, not whatever it picked up during training. That’s the <strong>Generation</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N0FyNrsgDEtXHrDr_zN38g.png" /></figure><p><strong>RAG and its Quality</strong>: You know those customer support bots that somehow know your company’s entire policy handbook? That’s RAG. Same with legal search tools, study apps, anything that lets you “chat with your data.”</p><p>AI models can’t know everything, and retraining them every time your data changes isn’t practical. RAG keeps the AI’s general intelligence while giving it access to specific, up-to-date information on demand.</p><p>But here’s what most people overlook. The quality of a RAG system doesn’t just depend on how smart the AI model is. If the retrieval step pulls the wrong chunks, the AI gets bad context and gives a bad answer, even though the right information exists somewhere in your data. The retrieval is the backbone. Get that wrong and it doesn’t matter how powerful your model is.</p><p>Now when you see an app that “understands your documents,” you know what’s actually happening under the hood. A pipeline that loads, chunks, embeds, retrieves, and generates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7434306a601a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SDKs Are Translators and Logistics Managers for Your Code]]></title>
            <link>https://medium.com/@manjunathande7/sdks-are-translators-and-logistics-managers-for-your-code-95d1e91ac3cd?source=rss-04ae29784769------2</link>
            <guid isPermaLink="false">https://medium.com/p/95d1e91ac3cd</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[sdk]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[application-development]]></category>
            <dc:creator><![CDATA[Manjunath Ande]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 04:57:35 GMT</pubDate>
            <atom:updated>2026-01-23T15:16:26.529Z</atom:updated>
            <content:encoded><![CDATA[<p>You’ve built a shopping app and need to add payments. You want ‘Stripe’ to handle the checkout, but how does your code or app actually talk to Stripe’s servers across the internet? How do you make it feel like a piece of Stripe is running inside your app and doing work for you while nodding to your user requests?<br>The answer: an SDK (Software Development Kit). It’s the translator and logistics handler that makes your Python or JavaScript communicate with Stripe’s API like they’re speaking the same language.<br>An SDK is a client library that bridges the gap between high-level code and HTTP protocol requirements. Apps speak Python or JavaScript. APIs speak HTTP with specific headers, authentication, and formatting. The SDK translates between these languages, so we don’t have to manually construct every request.</p><p><strong>An Analogical Understanding of SDKs</strong><br>Think of it like this: You’re in Tokyo for a vacation and don’t speak Japanese.<br>Without a translator, you’d need to learn Japanese grammar, memorize phrases, practice pronunciation, construct each sentence carefully, and hope you got the nuances right. Every interaction becomes a language lesson.<br>With a translator, you speak English. They handle the Japanese. You focus on the conversation, get things done and enjoy the trip. (Although I wouldn’t mind learning the language for a vacation in Japan)<br>That’s what SDKs do for code. You write “openai.ChatCompletion.create()” in Python. The SDK translates this to an HTTP POST request with proper headers, authentication tokens, and JSON formatting that the API understands. Response comes back in HTTP, and the SDK parses it into a Python object you can use. You communicate without learning the protocol. It does the heavy-lifting</p><p><strong>SDK: The Logistics Manager</strong><br>Or think of it like international shipping. You want to send a package from New York to Tokyo.<br>Without FedEx, you’d research international postal codes, learn customs declaration formats, understand packaging regulations, fill out forms in Japanese, figure out routing protocols, and track it manually through multiple carriers.<br>With FedEx, you hand them the package and the destination. They handle customs paperwork, proper packaging, routing, and tracking across carriers. You get a tracking number. The package arrives.<br>The SDK is both the translator AND the logistics handler. It knows the ‘language’ (HTTP protocol) and the ‘shipping requirements’ (authentication, headers, error handling, retries). You just call functions. It handles everything between your code and their servers.</p><p>Let’s break down exactly what happens in this journey :<br>Your code → SDK method call → SDK constructs HTTP request (with auth headers, proper formatting) → sends over the internet → API server processes it → sends back HTTP response (JSON) → SDK parses it → returns usable objects → your code continues.</p><p>That’s the complete pipeline. An SDK carries your site’s request in a neatly sealed envelope (as the receiving server needs it), delivers it, brings the response back and translates to make sure your code understands.</p><p><strong>Without SDK (raw HTTP)</strong></p><pre>import requests<br>import json<br><br>url = &quot;https://api.openai.com/v1/chat/completions&quot;<br>headers = {<br>    &quot;Authorization&quot;: &quot;Bearer sk-your-key&quot;,<br>    &quot;Content-Type&quot;: &quot;application/json&quot;<br>}<br>data = {<br>    &quot;model&quot;: &quot;gpt-4&quot;,<br>    &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Hello&quot;}]<br>}<br><br>response = requests.post(url, headers=headers, json=data)<br>result = response.json()<br>message = result[&quot;choices&quot;][0][&quot;message&quot;][&quot;content&quot;]</pre><p><strong>With SDK:</strong></p><pre>import openai<br><br>openai.api_key = &quot;sk-your-key&quot;<br>response = openai.ChatCompletion.create(<br>    model=&quot;gpt-4&quot;,<br>    messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Hello&quot;}]<br>)<br>message = response.choices[0].message.content</pre><p>Same API endpoint. Same result.</p><p>“Stripe payments? SDK handling the REST API. Google Maps? SDK abstracting the geolocation protocol. Firebase authentication? SDK translates your function calls into OAuth flows.<br>Now, when you see import something, you know what’s happening: a translation layer between your code and their servers. It is a systematic abstraction. It is an SDK skyrocketing your efficiency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95d1e91ac3cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>