<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Muditha Jayaweera</title>
    <description>The latest articles on Forem by Muditha Jayaweera (@muditha_jayaweera).</description>
    <link>https://forem.com/muditha_jayaweera</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2841446%2F75ff0df9-fcb1-4038-b9ce-38a050480acc.jpg</url>
      <title>Forem: Muditha Jayaweera</title>
      <link>https://forem.com/muditha_jayaweera</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/muditha_jayaweera"/>
    <language>en</language>
    <item>
      <title>What is Authentication : The Gatekeeper</title>
      <dc:creator>Muditha Jayaweera</dc:creator>
      <pubDate>Thu, 07 May 2026 03:48:22 +0000</pubDate>
      <link>https://forem.com/muditha_jayaweera/what-is-authentication-the-gatekeeper-49jn</link>
      <guid>https://forem.com/muditha_jayaweera/what-is-authentication-the-gatekeeper-49jn</guid>
      <description>&lt;p&gt;&lt;strong&gt;The Gatekeeper&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every building that matters has one.&lt;/p&gt;

&lt;p&gt;A bouncer at the door. A security guard at the lobby. A lock on the gate. Something — or someone — whose entire job is to look you in the eye and ask a single question before letting you through.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Are you really who you say you are?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In the digital world, that question has a name. It’s called &lt;strong&gt;authentication&lt;/strong&gt;. And every time you tap “Log In” on any app, anywhere in the world, a gatekeeper quietly wakes up and goes to work.&lt;/p&gt;

&lt;p&gt;This is what happens behind the door.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You Step Up to the Gate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It starts simply enough.&lt;/p&gt;

&lt;p&gt;You open your favorite app. You type your email. You type your password. You tap &lt;em&gt;Log In&lt;/em&gt; with the casual confidence of someone who’s done this a thousand times.&lt;/p&gt;

&lt;p&gt;But the moment that button registers your tap, your credentials — your email, your password, your claim to this account — are packaged up by the frontend and sent off through the API toward the backend.&lt;/p&gt;

&lt;p&gt;The gate has been approached. The gatekeeper has been summoned.&lt;/p&gt;

&lt;p&gt;Now the real work begins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Secret the Database Keeps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here’s something most people never think about — your password isn’t actually stored anywhere.&lt;/p&gt;

&lt;p&gt;Not really. Not in the way you’d imagine.&lt;/p&gt;

&lt;p&gt;If you picture a database as a filing cabinet, you might assume your password is written on a card somewhere, sitting in a folder with your name on it. But any system worth trusting doesn’t work that way. Storing plain passwords is like writing your house key on the front door — the moment someone breaks in, everything is exposed.&lt;/p&gt;

&lt;p&gt;So instead, something clever happens when you first create your password. The system runs it through a process called &lt;strong&gt;hashing&lt;/strong&gt; — a one-way mathematical transformation that turns your password into a long, scrambled string of characters. Something completely unrecognizable.&lt;/p&gt;

&lt;p&gt;That is what gets stored. Not your password. Its shadow.&lt;/p&gt;

&lt;p&gt;And the original? It’s never saved. Not even the system knows what it was.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Comparison That Decides Everything&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So when you show up at the gate and hand over your password, the gatekeeper can’t just look it up. Instead, it does something elegant.&lt;/p&gt;

&lt;p&gt;It takes the password you just typed, runs it through that exact same hashing process, and produces a shadow — your shadow, right now, in this moment.&lt;/p&gt;

&lt;p&gt;Then it holds two things side by side.&lt;/p&gt;

&lt;p&gt;The shadow you just created. And the shadow stored in the database from the day you signed up.&lt;/p&gt;

&lt;p&gt;If they match — if those two scrambled strings are identical — the gatekeeper nods.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;It’s you.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If they don’t match, the gate stays closed. No explanation, no second chances. Just a quiet, firm denial.&lt;/p&gt;

&lt;p&gt;Access denied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Identity Card&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But verification is only half the story. Because once the gatekeeper confirms who you are, a new problem appears.&lt;/p&gt;

&lt;p&gt;You’re inside now — but how does the system &lt;em&gt;keep&lt;/em&gt; knowing it’s you?&lt;/p&gt;

&lt;p&gt;You’re going to tap through different pages, load your feed, send messages, make purchases. The system can’t ask you to prove your identity every single time. That would be exhausting. So instead, the moment your identity is confirmed, the system hands you something.&lt;/p&gt;

&lt;p&gt;A token.&lt;/p&gt;

&lt;p&gt;Think of it like a wristband at a concert. You showed your ticket at the door — you proved you belong here. Now the wristband is your pass for the rest of the night. Every time a security guard sees it, they wave you through without asking for your ticket again.&lt;/p&gt;

&lt;p&gt;In the digital world, this token — often called a &lt;strong&gt;JWT&lt;/strong&gt;, a JSON Web Token — is a small, secure piece of data that says “this person was verified at this time, and they’re allowed to be here.” Your app holds onto it quietly, and every time you make a request, it sends the token along as proof.&lt;/p&gt;

&lt;p&gt;No need to log in again. The wristband speaks for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Door Opens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;With the token created and the identity confirmed, the backend sends its response back through the API.&lt;/p&gt;

&lt;p&gt;The frontend catches it, tucks the token away safely, and then — the door swings open.&lt;/p&gt;

&lt;p&gt;Your feed loads. Your profile appears. Your data, your history, your world inside the app — all of it unfolds in front of you, just as you left it.&lt;/p&gt;

&lt;p&gt;From the outside, it felt instant. Effortless. A tap and a second.&lt;/p&gt;

&lt;p&gt;But behind the scenes, an entire sequence of events had fired — credentials sent, passwords hashed, shadows compared, tokens created, responses returned. A gatekeeper had done its job with quiet, invisible precision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why This Matters More Than You Think&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Authentication isn’t just a technical detail. It’s the difference between a safe system and a dangerous one.&lt;/p&gt;

&lt;p&gt;Without it, there are no gates. No wristbands. No comparisons. Anyone could walk up to any account and simply walk in — your messages, your bank details, your private data, all of it exposed.&lt;/p&gt;

&lt;p&gt;Authentication is what makes trust possible in a world where you can’t look anyone in the eye.&lt;/p&gt;

&lt;p&gt;It’s also, for many developers, the first real moment where building software starts to feel serious. Because when you understand how authentication works — when you see the hashing, the tokens, the careful choreography — you realize that security isn’t something you add to an app later.&lt;/p&gt;

&lt;p&gt;It’s something you build into its bones from the very beginning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Gatekeeper Never Sleeps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Right now, as you read this, millions of login requests are flying through systems around the world. Passwords being hashed. Shadows being compared. Tokens being minted and sent back to waiting frontends.&lt;/p&gt;

&lt;p&gt;Instagram. Your bank. Your email. Every app with an account has a gatekeeper standing at the door, asking the same question it always asks.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Are you really who you say you are?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;And now — you know exactly how it decides.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>security</category>
    </item>
    <item>
      <title>What is a REST API: Four Words That Power the Internet</title>
      <dc:creator>Muditha Jayaweera</dc:creator>
      <pubDate>Wed, 06 May 2026 03:55:46 +0000</pubDate>
      <link>https://forem.com/muditha_jayaweera/what-is-a-rest-api-four-words-that-power-the-internet-poa</link>
      <guid>https://forem.com/muditha_jayaweera/what-is-a-rest-api-four-words-that-power-the-internet-poa</guid>
      <description>&lt;p&gt;&lt;strong&gt;The Menu You Never Questioned&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You’ve probably walked into a restaurant hundreds of times without ever thinking about how it actually works.&lt;/p&gt;

&lt;p&gt;You sit down. A waiter appears. You point at something on the menu. Food arrives.&lt;/p&gt;

&lt;p&gt;Simple. Comfortable. Familiar.&lt;/p&gt;

&lt;p&gt;But what if I told you that this exact same system — this quiet, organized dance between you, the waiter, and the kitchen — is how almost every app on your phone communicates behind the scenes?&lt;/p&gt;

&lt;p&gt;Welcome to the world of &lt;strong&gt;REST APIs&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Problem With No Rules&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Imagine a world with no menus.&lt;/p&gt;

&lt;p&gt;Every customer walks straight into the kitchen, shouts their order in whatever language they feel like, and expects the chef to understand. One person draws a picture of a burger. Another hums a description of pasta. Someone else just points aggressively at the stove.&lt;/p&gt;

&lt;p&gt;Chaos.&lt;/p&gt;

&lt;p&gt;This is what software communication looked like before standards were put in place. Every system had its own custom way of talking. If you wanted two systems to work together, you had to learn a brand new language every single time.&lt;/p&gt;

&lt;p&gt;It was exhausting. It didn’t scale. Something had to change.&lt;/p&gt;

&lt;p&gt;So the industry did what every good restaurant figured out centuries ago — they created a menu.&lt;/p&gt;

&lt;p&gt;That menu is called &lt;strong&gt;REST&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Waiter Who Knows the Rules&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;REST — which stands for Representational State Transfer — is simply an agreed-upon set of rules for how systems should talk to each other over the internet.&lt;/p&gt;

&lt;p&gt;And like any good restaurant, it works because everyone plays their role.&lt;/p&gt;

&lt;p&gt;You are the client — the frontend, the app on your phone, the website in your browser. You know what you want, but you don’t go barging into the kitchen to get it yourself.&lt;/p&gt;

&lt;p&gt;The kitchen is the backend — where the real work happens, where the data lives, where requests get processed. You don’t need to see it or understand it. You just need your order filled.&lt;/p&gt;

&lt;p&gt;And in between? The waiter. The API. The one who carries your request in one direction and your answer in the other, fluently, without confusion, every single time.&lt;/p&gt;

&lt;p&gt;But here’s what makes a REST API special — the waiter doesn’t just take any order in any format. There’s a structure. A language. A menu.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Learning the Menu&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In a restaurant, the menu tells you what’s available and how to ask for it. In a REST API, that menu is built from four simple actions — four words that cover almost everything you’d ever need to do with data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GET&lt;/strong&gt; — &lt;em&gt;“Bring me something.”&lt;/em&gt; You want to see your profile. You want a list of products. You want today’s news feed. GET goes and fetches it for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;POST&lt;/strong&gt; — &lt;em&gt;“Add something new.”&lt;/em&gt; You’re creating an account. You’re submitting a form. You’re posting a photo. POST takes what you’ve prepared and delivers it to the kitchen to be made.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PUT&lt;/strong&gt; or &lt;strong&gt;PATCH&lt;/strong&gt; — &lt;em&gt;“Change something that’s already there.”&lt;/em&gt; You want to update your username. You need to edit a booking. Something needs to be different from what it was. PUT and PATCH walk back to the kitchen and ask the chef to adjust the dish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DELETE&lt;/strong&gt; — &lt;em&gt;“Take it away.”&lt;/em&gt; You’re removing a post. Cancelling an account. Clearing out old data. DELETE sends back the plate and makes sure it doesn’t come back.&lt;/p&gt;

&lt;p&gt;Four actions. Almost infinite possibilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Address of Every Order&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But knowing what to ask for is only half the story. You also need to know &lt;em&gt;where&lt;/em&gt; to ask.&lt;/p&gt;

&lt;p&gt;In a REST API, every resource — every piece of data — has its own address, called an &lt;strong&gt;endpoint&lt;/strong&gt;. Think of it like a table number, or a specific item on the menu.&lt;/p&gt;

&lt;p&gt;Want a list of all users? That’s GET &lt;code&gt;/users&lt;/code&gt;. Want to add a new one? POST &lt;code&gt;/users&lt;/code&gt;. Want just one specific person? GET &lt;code&gt;/users/1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Clean. Predictable. Once you learn the pattern, you can walk into any REST API in the world and feel right at home — because the menu always looks the same.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Morning on Your Phone&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let’s make this real.&lt;/p&gt;

&lt;p&gt;You wake up and open your favorite app. You tap on your profile picture in the corner. Without you realizing it, your phone quietly whispers a GET /profile request to the server. The API receives it, passes it to the backend, the backend retrieves your data, and within a second your name, your photo, your details — all of it appears on screen.&lt;/p&gt;

&lt;p&gt;You didn’t write any code. You didn’t configure anything. You just tapped.&lt;/p&gt;

&lt;p&gt;But underneath that tap, REST did its job — organized, fast, and completely invisible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why the Whole World Agreed on This&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;REST didn’t become the dominant standard by accident. It earned its place.&lt;/p&gt;

&lt;p&gt;It’s &lt;strong&gt;simple&lt;/strong&gt; — the concepts are easy to grasp, and the structure is easy to follow. It’s &lt;strong&gt;standardized&lt;/strong&gt; — a developer in Sri Lanka and a developer in San Francisco can look at the same REST API and immediately understand what it does. It’s &lt;strong&gt;scalable&lt;/strong&gt; — the same structure that powers a small startup can handle millions of users at a time. And it’s &lt;strong&gt;flexible&lt;/strong&gt; — the frontend and backend don’t need to know each other’s secrets. They just need to agree on the menu.&lt;/p&gt;

&lt;p&gt;Separation. Clarity. Order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Door This Opens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you understand REST, something quietly shifts in how you see the digital world.&lt;/p&gt;

&lt;p&gt;Every app that loads your feed, every website that takes your order, every platform that remembers your preferences — they’re all just waiters carrying menus, running back and forth between you and a kitchen you’ll never see.&lt;/p&gt;

&lt;p&gt;And once you’re comfortable with that idea, the next doors start to appear. &lt;strong&gt;GraphQL&lt;/strong&gt; — a different kind of menu, one where you get to choose exactly what goes on your plate. &lt;strong&gt;WebSockets&lt;/strong&gt; — where the waiter doesn’t wait for you to ask, but brings you updates the moment they’re ready. &lt;strong&gt;Distributed systems&lt;/strong&gt; — where instead of one kitchen, there are hundreds, spread across the world.&lt;/p&gt;

&lt;p&gt;But all of it starts here.&lt;/p&gt;

&lt;p&gt;With a menu. A waiter. And the quiet confidence of knowing exactly how to place your order.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>restapi</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>How Data Flows in a Simple Application: The Journey of a Single Click</title>
      <dc:creator>Muditha Jayaweera</dc:creator>
      <pubDate>Tue, 05 May 2026 15:00:00 +0000</pubDate>
      <link>https://forem.com/muditha_jayaweera/how-data-flows-in-a-simple-application-the-journey-of-a-single-click-150i</link>
      <guid>https://forem.com/muditha_jayaweera/how-data-flows-in-a-simple-application-the-journey-of-a-single-click-150i</guid>
      <description>&lt;p&gt;🗺️⁀જ✈️ &lt;strong&gt;The Journey of a Single Click&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every great story has a journey. A hero who sets out, faces challenges, crosses through different worlds, and finally returns home with something valuable.&lt;/p&gt;

&lt;p&gt;Your click is that hero.&lt;/p&gt;

&lt;p&gt;And this is its story.&lt;/p&gt;

&lt;p&gt;🌍 &lt;strong&gt;The World Your Eyes See&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It starts with you.&lt;/p&gt;

&lt;p&gt;You’re on an app — maybe you’re trying to log into your favorite platform after a long day. You find the login button, type your email, type your password, and with a quiet confidence, you tap Log In.&lt;/p&gt;

&lt;p&gt;To you, it feels like nothing. A tap. Half a second. Done.&lt;/p&gt;

&lt;p&gt;But the moment your finger lifts off that screen, something extraordinary begins. A journey launches — invisible, lightning-fast, and more organized than most people’s morning routines.&lt;/p&gt;

&lt;p&gt;That button? That’s the &lt;strong&gt;frontend&lt;/strong&gt;. It’s the face of the app — the part designed for your eyes, your fingers, your experience. Websites, mobile apps, dashboards — they all live here, in this layer built entirely for you.&lt;/p&gt;

&lt;p&gt;And the moment you tapped that button, the frontend did its job. It packaged up your request—your email, your password, your intention — and sent it off into the unknown.&lt;/p&gt;

&lt;p&gt;The journey had begun.&lt;/p&gt;

&lt;p&gt;🌉 &lt;strong&gt;The Bridge in the Middle&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But here’s something most people don’t realize — your request didn’t go straight to where the data lives. It couldn’t just barge in.&lt;/p&gt;

&lt;p&gt;It had to go through a bridge first.&lt;/p&gt;

&lt;p&gt;That bridge is the &lt;strong&gt;API&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Think of it like a border checkpoint between two countries. You can’t just drive across — you have to stop, show your documents, get cleared, and then continue. The API receives your request, makes sure it’s properly formatted, and then passes it forward to where the real work happens.&lt;/p&gt;

&lt;p&gt;It’s not flashy. It doesn’t make decisions. But without it, nothing gets through. It is the silent gatekeeper that keeps the whole system organized.&lt;/p&gt;

&lt;p&gt;Your request cleared the checkpoint. Now it was heading somewhere deeper.&lt;/p&gt;

&lt;p&gt;🏠 &lt;strong&gt;The Room Where Decisions Are Made&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;On the other side of the bridge lives the &lt;strong&gt;backend&lt;/strong&gt; — and this is where the story gets interesting.&lt;/p&gt;

&lt;p&gt;If the frontend is the face, the backend is the brain.&lt;/p&gt;

&lt;p&gt;Your login request arrived here, and suddenly the room came alive. The backend picked up your request, rolled up its sleeves, and got to work. It read your email. It looked at your password. It asked the questions that needed asking — &lt;em&gt;Is this email registered? Does this password match what we have on file? Is this person who they say they are?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is where the rules live. The logic. The decisions that determine what you get to see and what you don’t. The backend doesn’t care about design or colors or how pretty the button looked. It only cares about one thing — doing the right thing with the right data.&lt;/p&gt;

&lt;p&gt;But to answer those questions, it needed to look something up. So it went further.&lt;/p&gt;

&lt;p&gt;🗄️ &lt;strong&gt;The Vault&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Deep in the system, past the logic and the rules, sits the &lt;strong&gt;database&lt;/strong&gt; — the vault where everything is stored.&lt;/p&gt;

&lt;p&gt;Every account ever created. Every transaction ever made. Every booking, every message, every preference you’ve ever set. It’s all here, organized and waiting.&lt;/p&gt;

&lt;p&gt;The backend knocked on the vault door and asked its question — &lt;em&gt;“Does this user exist? Does this password match?”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The database searched. Found the record. Checked the details.&lt;/p&gt;

&lt;p&gt;And sent the answer back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Journey Home&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now the story reverses — and just as quickly as it left, everything comes rushing back.&lt;/p&gt;

&lt;p&gt;The database gave its answer to the backend. The backend processed it, wrapped it into a clean response, and handed it back to the API. The API carried it across the bridge, back to the frontend. And the frontend — the world your eyes live in — lit up.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Welcome back.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Your homepage loaded. Your profile appeared. The app smiled at you as if nothing had happened.&lt;/p&gt;

&lt;p&gt;But something &lt;em&gt;had&lt;/em&gt; happened. In the span of a few seconds, your single tap had traveled through five distinct worlds — the frontend, the API, the backend, the database, and back again — each one playing its role perfectly, handing off to the next without missing a beat.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🗺️ The Map of the Journey&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you step back and look at it, the path is clean and clear:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You → Frontend → API → Backend → Database → Backend → API → Frontend → You&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A full circle. A complete story. Every time you use an app, this journey happens. Often multiple times per page. Millions of times per second, across the world.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why This Changes Everything&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you see this journey clearly, something shifts.&lt;/p&gt;

&lt;p&gt;You stop seeing apps as magic and start seeing them as systems. You understand &lt;em&gt;why&lt;/em&gt; things sometimes go wrong — because any point in that journey can stumble. A slow database. A confused backend. A broken API. A frontend that misread the response.&lt;/p&gt;

&lt;p&gt;You know where to look. You know what questions to ask.&lt;/p&gt;

&lt;p&gt;And when you sit down to learn bigger, heavier topics — system design, distributed systems, scalability — you won’t be starting from zero. You’ll recognize the same journey, just taken by millions of clicks at once.&lt;/p&gt;

&lt;p&gt;Every expert in this field once watched a single click and asked, &lt;em&gt;“Wait… where does that actually go?”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now you know.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ka84ss0l2v7rb71xwro.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ka84ss0l2v7rb71xwro.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Understanding APIs and Backend: The Kitchen You Never See</title>
      <dc:creator>Muditha Jayaweera</dc:creator>
      <pubDate>Tue, 05 May 2026 04:57:40 +0000</pubDate>
      <link>https://forem.com/muditha_jayaweera/understanding-apis-and-backend-the-kitchen-you-never-see-5dj6</link>
      <guid>https://forem.com/muditha_jayaweera/understanding-apis-and-backend-the-kitchen-you-never-see-5dj6</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk9ngj3kf9bucdayhmwqp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk9ngj3kf9bucdayhmwqp.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Hidden World Behind Your Screen&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Imagine you’re sitting in a restaurant. You pick up the menu, choose your meal, and call the waiter. The waiter walks to the kitchen, passes your order to the chef, and a few minutes later — your food arrives at your table.&lt;/p&gt;

&lt;p&gt;You never saw the kitchen. You never spoke to the chef. But somehow, exactly what you asked for appeared in front of you.&lt;/p&gt;

&lt;p&gt;That’s exactly how the internet works. And today, we’re going to walk into that kitchen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Moment You Open Instagram&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It’s 9 PM. You’re lying on your couch, you unlock your phone and tap Instagram. Within seconds, your feed loads — photos from your friends, reels you didn’t ask for but can’t stop watching, and an ad for shoes you looked up last Tuesday.&lt;/p&gt;

&lt;p&gt;But pause for a second. Where did all of that come from?&lt;/p&gt;

&lt;p&gt;Your phone doesn’t store those posts. It can’t. There are billions of them. So something had to go fetch them — fast, silently, invisibly. That messenger — the one carrying requests back and forth between your app and the server — has a name.&lt;/p&gt;

&lt;p&gt;It’s called an &lt;strong&gt;API&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;An API is simply a agreed-upon way for two systems to talk to each other. Your app says, “Hey, give me the latest posts for this user.” The server understands that language, grabs the right data, and sends it back. Your feed appears. You scroll. You never even noticed the conversation that just happened.&lt;/p&gt;

&lt;p&gt;Now Let’s Go Deeper — &lt;strong&gt;Into the Kitchen&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When the waiter takes your order to the kitchen, someone back there does the real work — chopping, cooking, plating. You enjoy the result without ever seeing the effort.&lt;/p&gt;

&lt;p&gt;In the digital world, that kitchen is called the &lt;strong&gt;backend&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Think about the last time you logged into Facebook. You typed your email, typed your password, and hit Login. Simple enough. But in that single moment, an entire chain of events fired off behind the scenes.&lt;/p&gt;

&lt;p&gt;Your request flew to a server somewhere — maybe thousands of miles away. The backend received it, woke up, and got to work. It searched through a database of billions of accounts, found yours, compared your password to what was stored, and within milliseconds made a decision: Yes, this is them. Let them in. And just like that, you were inside.&lt;/p&gt;

&lt;p&gt;You saw none of it. You just saw your homepage load.&lt;/p&gt;

&lt;p&gt;That invisible decision-making — the logic, the checking, the processing — that’s what the backend does all day, every day, for every user, without rest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three Characters, One Story&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every app you love is actually a story told by three characters working together:&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;frontend&lt;/strong&gt; is the actor on stage — the beautiful interface you tap, swipe, and interact with. It’s what makes you feel something.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;backend&lt;/strong&gt; is the director behind the curtain — making decisions, processing data, enforcing the rules. You never see it, but nothing works without it.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;API&lt;/strong&gt; is the script they both follow — the shared language that lets the actor and the director communicate without ever being in the same room.&lt;/p&gt;

&lt;p&gt;Remove any one of the three, and the story falls apart.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why This Should Excite You&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here’s the thing — this isn’t just how Instagram works. It’s how your banking app works. It’s how Google Maps knows your location. It’s how Uber finds you a driver in under three minutes. It’s how Netflix remembers you left off at episode four.&lt;/p&gt;

&lt;p&gt;These systems feel like magic. But they’re not magic. They’re just these three ideas — frontend, backend, API — repeated, scaled, and layered on top of each other.&lt;/p&gt;

&lt;p&gt;Once you truly understand this foundation, something clicks. Topics that used to sound intimidating — distributed systems, event-driven architecture, microservices — suddenly start to make sense. Because underneath all of it, you’ll recognize the same restaurant, the same waiter, the same kitchen.&lt;/p&gt;

&lt;p&gt;You’ll just be learning how to build a bigger one.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>api</category>
      <category>backend</category>
    </item>
  </channel>
</rss>
