<?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 Alisha Fatima on Medium]]></title>
        <description><![CDATA[Stories by Alisha Fatima on Medium]]></description>
        <link>https://medium.com/@af4060957?source=rss-3f1b765fd366------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HvQSQrIW4MLFlkLmvOhMoQ.png</url>
            <title>Stories by Alisha Fatima on Medium</title>
            <link>https://medium.com/@af4060957?source=rss-3f1b765fd366------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 14:45:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@af4060957/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[Docker to Production: A Beginner’s Guide to Cloud Deployment]]></title>
            <link>https://medium.com/@af4060957/docker-to-production-a-beginners-guide-to-cloud-deployment-d02692e648ba?source=rss-3f1b765fd366------2</link>
            <guid isPermaLink="false">https://medium.com/p/d02692e648ba</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[container-secuirty]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Alisha Fatima]]></dc:creator>
            <pubDate>Sat, 23 May 2026 11:27:11 GMT</pubDate>
            <atom:updated>2026-05-23T11:27:11.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pjrtf_0euEljH91ehMSUVQ.png" /></figure><p>Writing software locally on your laptop is straightforward. The code works because you have complete control over your files, libraries, and database versions.</p><p>The real challenge begins when you deploy that code to a production server. Hidden differences in operating systems or missing libraries cause the application to fail. This guide explains how containerization and cloud orchestration solve this exact problem by packaging your applications to run anywhere.</p><h3>1. The Isolation Problem: Virtual Machines vs. Containers</h3><p>To run multiple applications securely on a single physical server, you must isolate them from one another. Historically, engineers used <strong>Virtual Machines (VMs)</strong> to achieve this separation.</p><p>A physical server uses a software layer called a Hypervisor to split its hardware into independent digital computers. Each Virtual Machine requires its own allocated hardware and its own completely separate <strong>Guest Operating System</strong>.</p><p>This setup wastes massive amounts of hardware resource:</p><ul><li><strong>Duplicated Code:</strong> Every VM runs its own heavy operating system kernel, system drivers, and background processes.</li><li><strong>Locked Memory:</strong> If you allocate 4GB of RAM to a VM, that memory is permanently taken. The guest operating system consumes a large portion of that RAM just to stay alive, leaving less room for your application.</li></ul><h3>The Lightweight Alternative: Docker Containers</h3><p>Docker completely changes this setup by shifting to <strong>Operating System-level Virtualization</strong>. Instead of simulating an entirely new computer with an independent guest operating system, Docker runs applications inside isolated sandboxes called <strong>Containers</strong>.</p><p>Containers sit directly on top of the host machine’s operating system user space and share the single kernel of the physical host. Because they eliminate the heavy operating system overhead, a container typically utilizes only a few megabytes of memory instead of gigabytes. This allows your applications to start instantly in seconds.</p><h3>2. The Docker Ecosystem: From Recipes to Served Plates</h3><p>To understand how Docker standardizes application delivery, you can map its core technical components to a professional commercial kitchen.</p><ul><li><strong>Docker Client:</strong> The command-line interface where you type instructions like build or run. This acts like the <strong>Order Desk</strong>.</li><li><strong>Docker Daemon:</strong> The persistent background engine running on your host machine that executes your commands. This acts like the <strong>Head Chef</strong>.</li><li><strong>Dockerfile:</strong> A plain text configuration script containing a step-by-step list of setup instructions. This acts like the <strong>Master Recipe</strong>.</li><li><strong>Docker Image:</strong> The unchangeable compiled blueprint created from your Dockerfile. This acts like the <strong>Prepared Meal Plan</strong>.</li><li><strong>Docker Container:</strong> The live, running instance instantiated directly from your Docker Image. This acts like the <strong>Served Plate</strong>.</li><li><strong>Docker Registry:</strong> A centralized cloud storehouse, such as Docker Hub or Amazon Elastic Container Registry, used to store your images. This acts like the <strong>Food Pantry</strong>.</li></ul><h3>3. Practical Container Configuration: Port Mapping Exploded</h3><p>When you launch a containerized application, it boots inside an isolated virtual network environment. By default, external users cannot reach this process. You must build an explicit network bridge to handle traffic using <strong>Port Mapping</strong>.</p><p>When running a container in your terminal, you specify this network link directly:</p><p>Bash</p><pre>docker run -d -p 8080:3000 --name web-api node-app:v1</pre><p>The -p flag acts as a network translation bridge split into two distinct parts:</p><ul><li><strong>The Host Port (</strong><strong>8080):</strong> The port exposed publicly on the host server. This is the entry point that public users and web browsers hit when accessing your server over the internet.</li><li><strong>The Container Port (</strong><strong>3000):</strong> The internal port where your actual application code is listening inside the isolated container space.</li></ul><p>The Docker daemon intercepts incoming traffic on the public host port 8080 and automatically forwards those network packets down into the internal container port 3000.</p><h3>4. Multi-Container Orchestration via Docker Compose</h3><p>Modern applications rarely live in isolation. A production system requires a web frontend, a backend runtime, and a separate database tier. Managing these components individually using separate terminal commands introduces significant configuration errors.</p><p><strong>Docker Compose</strong> automates this multi-container configuration by allowing you to define your entire application stack within a single configuration file named docker-compose.yml.</p><p>YAML</p><pre>version: &#39;3.8&#39;<br>services:<br>  database:<br>    image: mongo:latest<br>    volumes:<br>      - db-data:/data/db<br>  web-app:<br>    build: .<br>    ports:<br>      - &quot;8080:3000&quot;<br>    depends_on:<br>      - database<br>volumes:<br>  db-data:</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NiVDWcCBKYzExlBBuQQn8A.png" /></figure><h3>Advanced Compose Mechanics</h3><p>Executing docker-compose up -d handles two crucial infrastructure requirements automatically:</p><ul><li><strong>Automated Bridge Networking:</strong> Docker Compose sets up an isolated virtual network layer automatically. Every container listed in your file joins this network, allowing them to discover and talk to each other securely using their service names as addresses. Your web application can query your database directly using the network address mongodb://database:27017 without needing hardcoded IP addresses.</li><li><strong>Deterministic Dependency Ordering:</strong> Distributed applications fail if your backend attempts to connect to your database before the database finishes its initial storage setup. The depends_on instruction forces sequential execution, ensuring your database container initializes completely before the dependent application container starts up.</li></ul><h3>5. Overcoming Ephemeral Storage: Docker Volumes to AWS EBS</h3><p>By default, data stored inside a running container is strictly <strong>ephemeral</strong>. Containers utilize a temporary copy-on-write file system layer. If a container encounters a runtime crash or is destroyed during a routine code update, <strong>all data written to that temporary layer is instantly lost</strong>.</p><p>To preserve critical data like user records or file uploads, you must separate your storage lifecycle from your computing process.</p><ul><li><strong>Docker Volumes:</strong> This method creates a dedicated storage folder on your host machine’s physical file system that is managed completely by the Docker engine. This folder is mounted directly into a targeted file path inside your container. Because the physical storage exists outside the container boundaries, your data remains completely safe on the host disk even if the container process is destroyed.</li><li><strong>AWS EBS (Elastic Block Store):</strong> When scaling your infrastructure out to public cloud platforms like Amazon EC2, local single-host storage is insufficient. AWS EBS delivers high-performance persistent network storage volumes. Think of an EBS volume as a high-speed virtual hard drive operating over a network fabric. When a container running inside an EC2 instance writes data, those blocks are saved securely onto the EBS storage array. If your primary compute instance experiences a hardware failure, the EBS volume can be detached instantly and re-connected to a brand-new EC2 instance with zero data loss.</li></ul><h3>6. Scaling to Production: AWS ECS and Enterprise Traffic Routing</h3><p>Hosting production workloads on a single cloud server introduces a dangerous single point of failure. If that single server undergoes an outage, your users face an immediate service shutdown. Enterprise environments use a managed container orchestration system to automate container placement, handle horizontal scaling, route incoming traffic, and replace failed nodes across multiple data centers.</p><p>On Amazon Web Services, this orchestration engine is <strong>Amazon ECS (Elastic Container Service)</strong>.</p><p>The production deployment process relies on a clear hierarchy of three core abstraction layers:</p><ul><li><strong>The Cluster:</strong> The fundamental logical pool of computing hardware resources distributed across multiple physical availability zone datacenters.</li><li><strong>The Task Definition:</strong> An extensive JSON configuration file that serves as your container blueprint. It dictates exactly how a container should be provisioned, specifying the Amazon ECR image location, precise allocations of CPU and memory boundaries, and environment variables.</li><li><strong>The Service:</strong> The long-running operational manager responsible for scaling and auto-healing. The Service constantly monitors your cluster state. If you configure your service to maintain three identical running application tasks, and one task encounters an unexpected error, the Service immediately detects the variance and boots a fresh replacement container task based on your Task Definition.</li></ul><h3>Choosing Your Compute Strategy: Fargate vs. EC2</h3><p>When constructing your ECS cluster infrastructure, you select between two distinct launch types:</p><ul><li><strong>Dedicated EC2 Launch Type:</strong> You manually provision, configure, update, and manage the underlying pool of virtual servers. You pay a flat rate for the entire running instance regardless of whether your containers consume 10% or 90% of its capacity, which adds significant operational maintenance overhead.</li><li><strong>AWS Fargate Launch Type:</strong> A completely serverless compute engine for containers. AWS handles all underlying server provisioning, infrastructure patching, and hardware scaling automatically. You pay strictly for the exact CPU and memory resources requested by your running container tasks per second, removing server-management overhead entirely.</li></ul><h3>High-Availability Traffic Routing with an Application Load Balancer (ALB)</h3><p>In an elastic production environment, individual container tasks are constantly spinning up or down, resulting in frequently changing internal IP addresses. To prevent exposing this shifting network directly to public users, you place an <strong>Application Load Balancer (ALB)</strong> at the edge of your cloud architecture.</p><p>The ALB provides a single, unchangeable public URL for your users. It receives incoming web traffic and spreads those requests evenly across a managed <strong>Target Group</strong> — a dynamic tracking layer that constantly indexes the active internal IP addresses and ports of your running containers.</p><h3>Hardening Security via Double Security Groups</h3><p>To protect your application backend from direct network attacks, production systems enforce strict isolation using two distinct layers of firewall rules called Security Groups:</p><ul><li><strong>ALB Security Group (The Public Shield):</strong> Placed in your public-facing network zones. This group accepts traffic from the open internet, but restricts entry strictly to standard web access points, specifically <strong>Port 80 (HTTP)</strong> and <strong>Port 443 (HTTPS)</strong>.</li><li><strong>ECS Security Group (The Private Vault):</strong> Tied directly to your running application container tasks inside isolated private zones. This security group completely blocks all direct incoming connections from the open internet. It enforces a strict firewall rule that <strong>only allows incoming traffic if it originates directly from your ALB Security Group</strong> on your specific application target container port (such as Port 3000).</li></ul><pre>[ Public User Traffic ] ──&gt; Allowed ──&gt; [ ALB Security Group (Port 80/443) ]<br>                                                       │<br>                                            Proxied over Private Network<br>                                                       │<br>                                                       ▼<br>[ Public User Traffic ] ──&gt; BLOCKED ──&gt; [ ECS Security Group (Port 3000) ]</pre><h3>Continuous Automated Health Auditing</h3><p>The Application Load Balancer continuously audits the operational readiness of your running tasks. At configured intervals, it transmits automated HTTP requests to a designated check path, such as /health, inside your containers.</p><p>If a running container experiences a deadlock and fails to respond multiple times in a row, the ALB labels that specific container instance as unhealthy. It instantly removes the broken container from the active traffic rotation to protect your users, while the Amazon ECS Service simultaneously terminates the failed task and spawns a fresh container to maintain your desired infrastructure capacity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d02692e648ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to CI/CD and Cloud Deployment]]></title>
            <link>https://medium.com/@af4060957/a-beginners-guide-to-ci-cd-and-cloud-deployment-067d90603210?source=rss-3f1b765fd366------2</link>
            <guid isPermaLink="false">https://medium.com/p/067d90603210</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Alisha Fatima]]></dc:creator>
            <pubDate>Sat, 23 May 2026 11:07:53 GMT</pubDate>
            <atom:updated>2026-05-23T11:07:53.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*Ve5s_Le3oc4bFVwfpcc78Q.png" /></figure><p>Building a software application locally is just the first step. To make your application truly useful, you must store user data safely in the cloud and automate your deployment updates so you don’t have to configure servers manually every time you change a line of code.</p><p>This guide breaks down two core pillars of modern cloud operations: managing cloud-native storage using <strong>AWS S3</strong> and creating a completely hands-free automated deployment system using <strong>GitHub Actions</strong>.</p><h3>1. Cloud Object Storage: Demystifying AWS S3</h3><p>When building applications, saving files (like user profile pictures, invoices, or videos) directly inside a server’s local storage is bad practice. If the server crashes or scales down, all those files disappear. Instead, production applications separate their file storage using <strong>AWS S3 (Simple Storage Service)</strong>.</p><p>AWS S3 is an object storage service designed to hold flat files. It treats data as <strong>objects</strong> stored inside digital containers called <strong>buckets</strong>.</p><pre>+─────────────────────────────────────────────────────────────+<br>|                       AWS S3 BUCKET                         |<br>|  (Must have a globally unique name: e.g., &quot;my-food-app-s3&quot;)  |<br>+─────────────────────────────────────────────────────────────+<br>       │                                       │<br>       ▼                                       ▼<br>+───────────────────────────+           +───────────────────────────+<br>|      STANDARD CLASS       |           |       GLACIER CLASS       |<br>|  For files your app needs |           | For old logs &amp; long-term  |<br>|  frequently &amp; instantly.  |           | archives at lowest cost.  |<br>+───────────────────────────+           +───────────────────────────+</pre><h3>Key Architectural Concepts of S3</h3><ul><li><strong>Globally Unique Naming:</strong> Bucket names act exactly like website domain names. No two AWS accounts in the world can share the exact same bucket name. If someone else locks down my-app-storage, you must choose a different name.</li><li><strong>Storage Tiers for Cost Management:</strong> S3 offers different storage classes depending on how often you need your files. <strong>S3 Standard</strong> is engineered for immediate, frequent access (like rendering images on a website feed). <strong>S3 Glacier</strong> is built for long-term archiving (like old tax records or system logs) at a fraction of the cost, though retrieving those files takes a few hours.</li></ul><h3>Securing the Bucket: Public Access and JSON Policies</h3><p>By default, AWS activates a total block on all public access to a new bucket. If you upload a file and try to access its raw web URL, your browser will return an <strong>Access Denied</strong> error. To allow public internet users to view your files, you must complete two security overrides:</p><ul><li><strong>Unblock Public Access:</strong> Disable the master block toggle in your bucket’s permission settings page.</li><li><strong>Apply a Bucket Policy:</strong> Write a plain text JSON document that tells AWS exactly who can access your files and what they are allowed to do.</li></ul><p>JSON</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;PublicReadGetObject&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::your-bucket-name/*&quot;<br>    }<br>  ]<br>}</pre><blockquote><strong><em>What this JSON tells AWS:</em></strong><em> The </em><em>Principal: &quot;*&quot; means </em><strong><em>anyone on the internet</em></strong><em> is granted permission (</em><em>Effect: &quot;Allow&quot;) to read files (</em><em>Action: &quot;s3:GetObject&quot;) inside your specified bucket destination.</em></blockquote><h3>2. Static Website Hosting and Node.js Integration</h3><p>Beyond simple file storage, S3 can act as a lightweight web server. You can activate <strong>Static Website Hosting</strong> inside your bucket settings, upload your frontend compiled assets (index.html, styles.css, and JavaScript code), and S3 will instantly give you a live public web link to view your app.</p><h3>Connecting Your Backend App to S3 via Code</h3><p>To let your Node.js backend application programmatically create, read, update, or delete files inside S3, you must use <strong>AWS IAM (Identity and Access Management)</strong> to generate secure API keys consisting of an <strong>Access Key ID</strong> and a <strong>Secret Access Key</strong>.</p><p>Inside your backend code, you pull in the official AWS Software Development Kit (@aws-sdk/client-s3) to handle file actions using simple programmatic operations:</p><ul><li><strong>The S3 Client:</strong> You initialize the S3 connection by feeding your generated IAM keys and your bucket’s geographical region into your code setup.</li><li><strong>Pre-signed URLs (Temporary Keys):</strong> To protect sensitive private files, you should keep your bucket locked. When a verified user wants to view or upload a file, your backend can generate a <strong>Pre-signed URL</strong>. This is a secure link that stays active for only a few minutes (e.g., 5 minutes) before expiring automatically.</li><li><strong>Listing Objects (</strong><strong>ListObjectsV2Command):</strong> Fetches an array of all active files along with their metadata properties (file size, timestamp of upload).</li><li><strong>Deleting Objects (</strong><strong>DeleteObjectCommand):</strong> Removes a file completely from your storage bucket by targeting its unique string key (its file path).</li></ul><h3>3. Demystifying CI/CD: The Core of Automation</h3><p>When your application code expands, manually testing and updating your cloud servers becomes tedious and error-prone. DevOps fixes this structural headache by introducing <strong>CI/CD Pipelines</strong>.</p><pre>+──────────────+     +──────────────+     +─────────────+     +────────────────+<br>|  CODE MERGE  | ──&gt; | LINT &amp; TEST  | ──&gt; | BUILD IMAGE | ──&gt; | LIVE DEPLOYMENT|<br>| (Developer)  |     | (Automated)  |     | (Automated) |     |  (Zero Human)  |<br>+──────────────+     +──────────────+     +─────────────+     +────────────────+</pre><ul><li><strong>Continuous Integration (CI):</strong> This phase triggers the moment a developer merges new code into the central Git repository. An automated pipeline intercepts the code and immediately runs system checks, syntax tests, and style rules (<strong>Linting</strong>). If the code contains a single broken link or syntax typo, the linter fails, and the pipeline halts instantly, keeping bad code completely out of production.</li><li><strong>Continuous Deployment (CD):</strong> Once the integration checks pass, the pipeline automatically packs your updated code into clean Docker containers, transports them directly to your live production servers, stops the outdated processes, and replaces them with your new versions without any human intervention.</li></ul><h3>4. Automating Workflows with GitHub Actions</h3><p><strong>GitHub Actions</strong> is a native DevOps tool built directly into your GitHub repository to handle automated pipelines. It operates entirely on declarative configuration blueprints written in a standard format called YAML, stored inside a dedicated folder path: .github/workflows/main.yml.</p><p>To understand how GitHub Actions processes your automation rules, map its structural components to a standard task system:</p><ul><li><strong>Workflows:</strong> The master automated process file that maps out your entire pipeline from check-in to production launch.</li><li><strong>Events (The Trigger):</strong> The exact event that tells the pipeline to start executing, usually declared as on: push branches: [main].</li><li><strong>Jobs:</strong> Isolated blocks of tasks that run on an independent temporary virtual operating system server provided by GitHub, called a <strong>Runner</strong>.</li><li><strong>Steps and Actions:</strong> The micro-tasks executed sequentially inside a job, such as checking out your source code repository or logging into Docker Hub.</li></ul><h3>Managing Credentials with Secret Keys</h3><p>Because your YAML workflow configuration script is stored directly alongside your public code, you must never hardcode your cloud passwords or access keys within it. Instead, you store them securely within <strong>GitHub Repository Secrets</strong>.</p><p>Your pipeline references these encrypted hidden placeholders directly inside the text file using a safe template format: ${{ secrets.DOCKER_PASSWORD }}.</p><h3>5. End-to-End Lab Architecture: MERN Stack Deployment</h3><p>To deploy a standard full-stack application (React frontend and Node.js backend) to a live cloud server automatically, your overall operational pipeline is divided into two phases.</p><h3>Phase A: The One-Time Server Preparation</h3><p>Before the automation pipeline can process updates successfully, you complete a manual setup on your AWS EC2 instance exactly once:</p><ul><li>Launch an Ubuntu server instance inside your AWS console.</li><li>Open <strong>Port 80</strong> for public web browser traffic, <strong>Port 5000</strong> for your backend system API, and <strong>Port 22</strong> for secure terminal SSH communication.</li><li>Install the runtime engine by running your system updates (sudo apt update &amp;&amp; sudo apt install docker.io).</li><li>Configure system execution permissions so that your standard system user can run container commands directly without typing ‘sudo’ every time (sudo usermod -aG docker ubuntu).</li></ul><h3>Phase B: The Automated Pipeline Execution</h3><p>Once your initial server preparation is finalized, every code push you make to your main GitHub branch initiates an automated, hands-free deployment sequence:</p><pre>                  ┌────────────────────────────────────────┐<br>                  │ DEVELOPER PUSHES CODE TO GITHUB REPO   │<br>                  └───────────────────┬────────────────────┘<br>                                      │<br>                                      ▼<br>                  ┌────────────────────────────────────────┐<br>                  │ GITHUB RUNNER: Runs Linter and Tests   │<br>                  └───────────────────┬────────────────────┘<br>                                      │<br>                                      ▼<br>                  ┌────────────────────────────────────────┐<br>                  │ GITHUB RUNNER: Builds &amp; Pushes Docker  │<br>                  │ Images directly to Docker Hub Registry │<br>                  └───────────────────┬────────────────────┘<br>                                      │<br>                                      ▼<br>                  ┌────────────────────────────────────────┐<br>                  │ GITHUB RUNNER: Establishes a Secure    │<br>                  │ SSH Tunnel connection to AWS EC2 Node  │<br>                  └───────────────────┬────────────────────┘<br>                                      │<br>                                      ▼<br>                  ┌────────────────────────────────────────┐<br>                  │ AWS EC2 SERVER: Pulls updated images,  │<br>                  │ drops dead containers, runs new stack   │<br>                  └────────────────────────────────────────┘</pre><h3>Choosing the Right Tooling: GitHub Actions vs. Jenkins</h3><p>As teams scale, they choose their automation software based on structural complexity.</p><p>While older tools like <strong>Jenkins</strong> provide a highly detailed custom user interface and complex, advanced post-build notification triggers, they require you to manually install, update, and secure a separate dedicated server just to keep the automation engine alive.</p><p><strong>GitHub Actions</strong> simplifies this overhead completely. Because it lives directly inside your repository management tool, there are zero dedicated automation servers for you to patch or configure. The pipeline configuration uses simple text structures, making it the preferred approach for modern startup applications and agile deployment workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=067d90603210" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Journey of a Web Request in the Cloud]]></title>
            <link>https://medium.com/@af4060957/the-journey-of-a-web-request-in-the-cloud-cf3cf21abf04?source=rss-3f1b765fd366------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf3cf21abf04</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Alisha Fatima]]></dc:creator>
            <pubDate>Tue, 19 May 2026 14:21:36 GMT</pubDate>
            <atom:updated>2026-05-19T14:21:36.104Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U0PlAm7gMqJf6Sx9vMQtSw.png" /></figure><p>You tap a button on your food application at 9:00 PM. Your screen updates within seconds. The restaurant receives your order, payment clears, and a delivery driver accepts the assignment. This single tap triggers an immediate need for communication between your phone and a remote server. Your device faces its first obstacle because it does not know where that server lives.</p><h3><strong>DNS Resolution</strong></h3><p>Computers communicate using numerical IP addresses, but human users identify websites using domain names. Your browser must resolve this conflict by finding the numerical address.</p><p>Your request travels to your Internet Service Provider. The provider checks its cache memory for a matching IP address. When the address is missing, the provider queries the Root DNS directory. The Root DNS does not know the address, but it directs the query to the Top Level Domain server for the .com extension. The Top Level Domain server identifies the Authoritative DNS. The Authoritative DNS provides the final IP address to your browser. Your browser now has the location, but millions of other users are hitting the same address simultaneously, creating massive traffic jams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T73ZvVxWunaGrmCafzsDag.png" /></figure><h3><strong>AWS Route 53 Traffic Management</strong></h3><p>A high volume of concurrent users will crash a single destination. You need a mechanism to distribute these visitors before they reach the infrastructure. AWS Route 53 manages this network connection on Port 53.</p><p>Latency routing directs your request to the geographically closest server to maximize speed. If you send a request from Pakistan, Route 53 connects you to an Asian data center rather than a European center. Failover routing automatically transfers your connection to a backup server if the primary system fails. Weighted routing splits user traffic between different application versions by specific percentages to test new features safely. Now that the traffic is sorted, the request lands at the physical hosting environment.</p><h3>AWS Core Infrastructure</h3><p>A global application requires massive computing power. Buying and maintaining physical hardware is too expensive for growing businesses, so companies rent virtual infrastructure from Amazon Web Services.</p><p>AWS EC2 provides virtual computing instances to host your application code. Developers configure operating systems like Ubuntu on these instances to execute the application logic. However, storing millions of food images directly on this computing instance slows down processing speeds. AWS S3 solves this by providing separate object storage for heavy asset files, keeping the primary server fast. This vast cloud network is vulnerable to attacks, creating an immediate need for strict security boundaries. IAM manages this access by using JSON policies to enforce the principle of least privilege, ensuring users only access individual services they require. The infrastructure is secure, but the server is still an empty shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YOud16SURinzIUDQTdH_dQ.png" /></figure><h3>Server Deployment Process</h3><p>An empty virtual server cannot run code automatically. A developer must log in securely and configure the environment.</p><p>Developers connect to the EC2 instance using secure shell authentication, verified by a private key file. The developer updates the server packages using the package manager. They install Node Version Manager to deploy the exact version of Node.js required for the app. The developer then clones the application repository from GitHub and installs the package dependencies. The code is now on the server, but running it manually creates a flaw. The moment the developer closes their laptop terminal, the application process terminates.</p><h3>Application Management with PM2</h3><p>A production application must run continuously without human supervision. Manual execution fails because terminal sessions are temporary. PM2 solves this by keeping production services running in the background 24/7.</p><p>PM2 monitors process status constantly. It restarts the application automatically if a runtime error causes a crash. Saving the process list configuration ensures the application launches automatically if the underlying server reboots. The code is running safely, but another barrier exists. The Node.js application runs internally on Port 3000, while public web traffic travels exclusively on Port 80.</p><h3>Nginx Reverse Proxy Configuration</h3><p>Exposing internal application ports directly to the public compromises security and creates messy URLs. Users expect to type a clean web address without specifying a port number. Nginx acts as a reverse proxy to bridge this gap.</p><p>Nginx intercepts public traffic on Port 80. It modifies headers and proxies the network request safely to the internal Port 3000 where Node.js listens. This separation protects your internal architecture from direct public exposure.</p><h3>Where DevOps Becomes Necessary</h3><p>The entire system is now functional, but a major operational problem emerges. Every time a developer fixes a bug or changes the application menu, they must log into the live AWS server manually, pull the new code from GitHub, and restart the processes.</p><p>If the developer makes a typo in the server terminal, the entire app crashes. If two developers upload conflicting changes, the production environment breaks. This manual friction between writing code (Development) and keeping the server stable (Operations) is exactly why DevOps exists.</p><h3>DevOps and Continuous Integration</h3><p>Manual deployments cause configuration mistakes and unexpected outages during updates. Teams need a system that tests and deploys code automatically. DevOps methodologies combine software creation with systems administration to solve this problem by removing human intervention.</p><p>CI/CD pipelines automate code validation completely. When a developer pushes modifications to GitHub, the pipeline triggers automated test scripts immediately. The system updates the production server automatically once the tests pass, ensuring zero downtime for the user ordering food.</p><h3>The Complete Lifecycle</h3><p>Your single tap moves through these interconnected systems sequentially:</p><p>DNS translates the domain name to an IP address.</p><p>Route 53 routes traffic based on server latency.</p><p>Security group rules allow entry on Port 80.</p><p>Nginx receives the external request.</p><p>Nginx proxies the traffic to Port 3000.</p><p>PM2 maintains the running Node.js process.</p><p>The application returns the response payload.</p><p>The cloud ecosystem processes these actions within milliseconds. Infrastructure design determines system availability. Track metrics using system logs to ensure operational efficiency. Use automation to keep infrastructure consistent.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf3cf21abf04" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>