<?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 Gautam on Medium]]></title>
        <description><![CDATA[Stories by Gautam on Medium]]></description>
        <link>https://medium.com/@gautambehl11?source=rss-2f1c2db0ac5c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RyA8CEaHnlg-5KdG1gOiTA.png</url>
            <title>Stories by Gautam on Medium</title>
            <link>https://medium.com/@gautambehl11?source=rss-2f1c2db0ac5c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:46:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gautambehl11/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[Observability Databases Should Be Treated Like OLTP Databases]]></title>
            <link>https://medium.com/@gautambehl11/observability-databases-should-be-treated-like-oltp-databases-5f183b1824a8?source=rss-2f1c2db0ac5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f183b1824a8</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oltp-vs-olap]]></category>
            <category><![CDATA[prometheus]]></category>
            <dc:creator><![CDATA[Gautam]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 09:11:37 GMT</pubDate>
            <atom:updated>2026-03-02T09:29:02.813Z</atom:updated>
            <content:encoded><![CDATA[<h3>Failure Is the Default State</h3><p>We design transactional databases under the assumption that failure is inevitable. Disks fail, processes crash, machines reboot, and networks partition. Every serious OLTP engine is architected around these constraints. Durability is not a feature layered on top of performance; it is the precondition for correctness.</p><p>Observability systems, however, are often treated differently. They are deployed and scaled with the implicit assumption that they are secondary infrastructure. Metrics are analytical, not transactional. Useful, but not critical in the same way as core business state.</p><p>That assumption collapses the moment production fails.</p><p>Because during an incident, your observability database becomes the primary system of record.</p><h3>The Same Primitives, Different Workloads</h3><p>While revisiting <em>Designing Data-Intensive Applications</em> and studying the storage architecture of Prometheus’s time series database, the parallels were striking. Despite serving very different workloads, both rely on the same foundational primitives: write ahead logs, append-only persistence, immutable segments, compaction, and deterministic crash recovery through replay.</p><p>These mechanisms are architectural responses to physical constraints. Sequential writes reduce seek overhead. Logs create a recoverable history. Compaction reorganizes data for long term efficiency without sacrificing ingestion speed. Replay ensures that acknowledged writes survive process failure.</p><p>If we abstract the write path of most durable systems, it looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MS77r7Xz9F4dRnh_1Iah3w.png" /></figure><p>The write path optimizes for sequential persistence.<br>The read path optimizes for structured access.<br>The two are intentionally decoupled.</p><p>This separation is not accidental. It is what allows systems to remain both durable and performant under stress.</p><h3>CAP and the Guarantees We Choose</h3><p>The CAP theorem forces tradeoffs under partition: consistency, availability, and partition tolerance. In distributed transactional systems that manage core state, architects frequently bias toward consistency and partition tolerance. When faced with a network split, it is preferable to reject writes than to accept conflicting truths. Corrupted state is more dangerous than temporary unavailability.</p><p>In contrast, many observability systems lean toward availability and partition tolerance. Under stress, they may buffer aggressively, drop samples, or accept eventual consistency. The reasoning seems pragmatic. Metrics are high volume. Ingestion never stops. Small gaps appear tolerable.</p><p>The moment the system enters failure mode, the cost of inconsistency in observability data increases dramatically. What seemed like a tolerable tradeoff during normal operation becomes a source of epistemic uncertainty when engineers are trying to reconstruct causality.</p><p>Imagine a cascading failure combined with a partial network partition. Metrics ingestion continues, but some WAL segments are dropped or inconsistently replicated. The system recovers, but parts of the timeline are missing. You now see error spikes without the latency buildup that preceded them. Your debugging path is skewed because your evidence is incomplete.</p><p>This is not merely inconvenient. It alters causality.</p><h3>When Observability Becomes Forensic Infrastructure</h3><p>During an outage, observability data ceases to be analytical exhaust. It becomes forensic evidence. Engineers are no longer exploring trends. They are reconstructing causality. Which service degraded first. Whether latency increased before error rates. Whether a deployment actually changed behavior.</p><p>Those questions depend on a trustworthy timeline. A timeline with gaps does not merely reduce precision. It alters conclusions.</p><p>This is the inversion most teams overlook. When systems are healthy, the transactional database is the source of truth. When systems misbehave, logs and metrics become the epistemic foundation of the organization. They determine what the team believes about reality.</p><h3>Write Amplification and the Physics of Disk</h3><p>Sequential writes dominate durable storage design for a reason. Random writes are expensive due to seek and rotational latency. Append-only logs minimize this cost by converting random mutations into sequential appends.</p><p>However, this design introduces write amplification. Data is written once to the log and later rewritten during compaction. LSM-based systems embrace this tradeoff: cheaper writes now, structural optimization later.</p><p>Prometheus’ storage design makes similar concessions. High ingestion velocity and time-ordered data mean the system must optimize for fast, sequential persistence. Compaction reorganizes blocks for efficient queries, but it is a controlled background cost. High cardinality increases compaction pressure and WAL replay time, which means durability mechanisms must scale with ingestion rate.</p><p>These are storage engine tradeoffs, not monitoring conveniences.</p><h3>The Log as the System of Record</h3><p>Prometheus’ storage design illustrates what it means to take durability seriously even in a high-ingestion, time-series context. Incoming samples are first written to a write ahead log to ensure persistence before acknowledgment. Recent data is maintained in an in-memory head block for performance, but the authoritative history remains sequentially persisted. Over time, data is compacted into immutable blocks optimized for querying. After a crash, the system replays the log to reconstruct in-memory state deterministically.</p><p>This is a monitoring system, yet its storage layer borrows directly from serious database engineering principles. The fact that a metrics engine adopts WAL, replay, and compaction as first-class mechanisms is not incidental. It reflects an explicit prioritization of recoverable truth over convenience.</p><p>At a high level, its architecture resembles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8QW5qxNXtrL69YNo7f5ogA.png" /></figure><p>From a storage engine perspective, the log is the authoritative history. The head block is a performance optimization. Immutable blocks are structured derivations. If necessary, in-memory state can be rebuilt by replaying the log.</p><p>Indexes can be reconstructed. Caches can be repopulated. Derived structures can be regenerated.</p><p>But if the log is incomplete, truth is incomplete.</p><h3>Preserving Truth Under Stress</h3><p>The distinction between OLTP and time-series databases is about workload shape. The distinction between robust and fragile systems is about guarantees. Durability, replayability, and deterministic recovery are not OLTP-specific concerns. They are properties of any system that claims to preserve truth under stress.</p><p>Any database that stores the story of your failures deserves the same engineering rigor as the database that stores your business state.</p><p>Observability systems do not merely measure reliability. Under stress, they define it. Reliability is not merely about serving requests successfully. It is about preserving recoverable truth when you fail.</p><h3>References</h3><ul><li>Martin Kleppmann, <em>Designing Data-Intensive Applications</em>, O’Reilly Media, 2017.</li><li>Prometheus Documentation — Storage and TSDB internals<br> <a href="https://prometheus.io/docs/prometheus/latest/storage/">https://prometheus.io/docs/prometheus/latest/storage/</a></li><li>Fabian Reinartz, “TSDB: Time Series Database Internals”<br> <a href="https://fabxc.org/tsdb/">https://fabxc.org/tsdb/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f183b1824a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rethinking Postgres for the Cloud: A Deep Dive into NeonDB’s Architecture]]></title>
            <link>https://medium.com/@gautambehl11/rethinking-postgres-for-the-cloud-a-deep-dive-into-neondbs-architecture-bdbfc7e45705?source=rss-2f1c2db0ac5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdbfc7e45705</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Gautam]]></dc:creator>
            <pubDate>Thu, 22 May 2025 15:25:41 GMT</pubDate>
            <atom:updated>2025-05-22T15:25:41.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwtlIIsRQenjQM4kR9_5GQ.png" /></figure><p><strong><em>How NeonDB brings Git-like versioning and truly serverless compute to relational databases</em></strong></p><p>Postgres has long been a rock-solid choice for transactional databases, and it is known for its reliability and maturity. But what happens when you take this battle-tested engine and redesign its deployment model for the cloud? That’s exactly what <a href="https://neon.tech/">NeonDB</a> has done.</p><p>In this article, we’ll explore the architecture of NeonDB, a serverless Postgres database that separates storage from compute and introduces powerful concepts like <strong>branching</strong>, <strong>time-travel</strong>, and <strong>autoscaling</strong> — ideas that feel native to cloud-native engineering but have rarely been applied so elegantly to relational databases.</p><h3>The Problem with Traditional Postgres in the Cloud</h3><p>Conventional Postgres deployments are tightly coupled systems: the same server process is responsible for both executing queries and maintaining the storage state. This makes operations like autoscaling, snapshotting, or creating temporary environments painful and resource-intensive.</p><p>Even in managed Postgres services, you’re typically working with fixed instances, pre-provisioned storage, and manual steps to handle backups or forks. It’s reliable, but not particularly flexible.</p><h3>Enter NeonDB: Cloud-Native Postgres with a Twist</h3><p>Neon reimagines how Postgres can run in the cloud by applying three key principles:</p><ol><li><strong>Separation of storage and compute</strong></li><li><strong>Append-only, layered storage built for object stores</strong></li><li><strong>Git-like branching and time-travel</strong></li></ol><p>Let’s walk through each of these and see why they matter.</p><h4>1. Separation of Compute and Storage</h4><p>Neon breaks the traditional model by decoupling the compute layer (Postgres process) from the storage layer (durable state). The Postgres engine runs as a <strong>stateless microservice</strong>, pulling in just enough data to respond to queries.</p><p>The storage layer is a multi-tenant service that handles:</p><ul><li>Write-ahead logs (WAL)</li><li>Layered data files (images and deltas)</li><li>Garbage collection and compaction</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vUWwMTwrzU0YVrUo5ASIQ.png" /></figure><p>This separation enables the compute process to be spun up or down on demand. If no queries are running, compute disappears. When a new query comes in, it spins up instantly and continues from the last consistent WAL position.</p><h4>2. Layered, Append-Only Storage Engine</h4><p>Instead of overwriting data, Neon stores it in layers. Each layer represents either:</p><ul><li><strong>Image Layers</strong>: compact snapshots of data pages</li><li><strong>Delta Layers</strong>: incremental changes between snapshots</li></ul><p>These layers are versioned and stored in an append-only log, making them perfect for object stores like S3. This design also enables efficient <strong>deduplication</strong>, <strong>compaction</strong>, and <strong>branching</strong>.</p><h4>3. Branching and Time Travel: Git for Your Database</h4><p>Here’s where things get really interesting. Neon allows you to <strong>branch your database state</strong> from any point in time, just like creating a new Git branch from a commit.</p><p>Want to test a new migration? Branch the prod database and test in isolation. Debug a bug from last night? Rewind the database to that exact timestamp. Need a fresh dev environment? Create a branch off the main in seconds.</p><p>Each branch is backed by the same underlying storage, with only changes being recorded separately. This makes branching <strong>lightweight and instant</strong>.</p><p>This timeline-based model is powered by the WAL and layering system. Branching and time-travel aren’t expensive or clunky anymore — they’re a native part of the design.</p><h3>Use Cases That Shine</h3><ul><li><strong>CI/CD Pipelines</strong>: Spin up a fresh Postgres environment for each test run.</li><li><strong>Analytics</strong>: Run historical queries by branching to a past point in time.</li><li><strong>Experimentation</strong>: Test schema changes or migrations on real data without risk.</li><li><strong>Debugging</strong>: Reproduce production issues in an accurate historical state.</li></ul><h3>Final Thoughts</h3><p>What Neon is doing is not about changing how Postgres works internally — it’s about <strong>rethinking how Postgres is deployed, scaled, and versioned</strong> in the cloud. By applying cloud-native design principles like stateless compute, durable append-only storage, and branchable state, it creates a far more flexible, modern developer experience.</p><p>If you’re interested in system design, serverless databases, or the future of relational infrastructure, I highly recommend checking out <a href="https://neon.tech/docs/introduction/architecture-overview">Neon’s documentation</a>.</p><p><em>Thanks for reading! I’d love to hear your thoughts on this model or if you’re exploring similar ideas.</em></p><p>#Postgres #NeonDB #DatabaseArchitecture #SystemDesign #Serverless #Versioning #CloudNative</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdbfc7e45705" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Kubernetes Events: The Hidden Debugging Superpower]]></title>
            <link>https://medium.com/@gautambehl11/understanding-kubernetes-events-the-hidden-debugging-superpower-ab404aca9efa?source=rss-2f1c2db0ac5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab404aca9efa</guid>
            <category><![CDATA[crashloopbackoff]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[k8s]]></category>
            <dc:creator><![CDATA[Gautam]]></dc:creator>
            <pubDate>Tue, 25 Mar 2025 13:57:50 GMT</pubDate>
            <atom:updated>2025-03-25T14:15:15.509Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Most engineers instinctively reach for <strong>logs</strong> and <strong>metrics</strong> when debugging Kubernetes issues, but <strong>events</strong> often hold the key to faster, more efficient troubleshooting. Unlike logs, which capture application-level details, or metrics, which give trends over time, events provide <strong>real-time insights into what’s happening inside the cluster</strong>, straight from the Kubernetes control plane.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YVPzXqCLtGRlURPc.jpg" /></figure><h3>🚀 Why Ignoring Events is a Mistake</h3><p>Logs and metrics are great, but they have limitations:</p><ul><li><strong>Logs</strong> are application-centric and might not capture cluster-level issues.</li><li><strong>Metrics</strong> show trends but lack real-time context on failures.</li><li><strong>Events</strong>, on the other hand, provide a chronological history of what Kubernetes itself is doing, making them invaluable for debugging infrastructure and scheduling issues.</li></ul><h3>🔍 How Kubernetes Events Can Help in Debugging</h3><h4>🚨 1. Detecting and Fixing Misconfigurations Instantly</h4><p>Imagine you deploy a new application, but it never comes up. You check the logs, and there’s nothing useful. Metrics don’t help either because the pod isn’t even running!</p><p>💡 <strong>Using Events:</strong></p><pre>kubectl get events --sort-by=&#39;.lastTimestamp&#39;</pre><p>You see:</p><pre>Warning  FailedScheduling  pod/webapp-123  10s  default-scheduler  0/3 nodes are available: 3 node(s) didn’t match pod affinity/anti-affinity.</pre><p>💡 The scheduler is telling you <strong>why</strong> your pod isn’t running: the affinity rules don’t match. Instead of wasting time digging into logs, you immediately fix the affinity settings and redeploy.</p><h4>🛑 2. Debugging CrashLoopBackOff Faster</h4><p>Your pod keeps restarting, and logs only show that the application exited with a non-zero code. The next step? <strong>Use Kubernetes events to find out why it crashed in the first place.</strong></p><p>💡 <strong>Using Events:</strong></p><pre>kubectl describe pod my-app</pre><p>You see:</p><pre>Warning  BackOff  1m  kubelet  Back-off restarting failed container<br>Warning  OOMKilled  1m  kubelet  Container killed due to memory limit exceeded</pre><p>💡 This tells you exactly what happened: the container was killed because it exceeded its memory limit. <strong>Increasing the memory request/limit</strong> in the deployment YAML fixes the issue.</p><h4>🚦 3. Network and DNS Failures: No More Guesswork!</h4><p>Networking issues in Kubernetes are notoriously difficult to debug. Pods can’t talk to each other, and your app is failing, but why?</p><p>💡 <strong>Using Events:</strong></p><pre>kubectl get events --field-selector involvedObject.kind=Pod</pre><p>You see:</p><pre>Warning  FailedMount  30s  kubelet  MountVolume.SetUp failed for volume &quot;config-volume&quot;<br>Warning  FailedCreatePodSandBox  10s  kubelet  Failed to create pod sandbox: failed to set up network for sandbox &quot;xyz&quot;</pre><p>💡 The error tells you the network setup failed for the pod. This could be due to a missing CNI plugin, incorrect network policies, or node issues. Instead of debugging network logs blindly, events provide a <strong>direct</strong> pointer to the root cause.</p><h3>🏷️ Common Kubernetes Events and Their Meanings</h3><p>Kubernetes generates different types of events, each signaling a specific issue. Here are some of the most common ones:</p><h3>1️⃣ Warning Events: Indicators of Problems</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Zuxa0VjjzR7_xuUVIs9eQ.png" /></figure><h3>2️⃣ Normal Events: Expected but Informative</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8bN21ndjDIgTT3tg7GN_Q.png" /></figure><p>Understanding these event types helps in quickly narrowing down issues without diving into logs.</p><h3>🏆 Real-World Scenarios Where Events Saved Debugging Time</h3><p>1️⃣ <strong>Deployment Issues:</strong> A team pushed a new deployment, but the pods remained in a Pending state. Logs showed nothing. Checking events revealed:</p><pre>Warning  FailedScheduling  10s  default-scheduler  No nodes available due to taints</pre><p><strong>Solution:</strong> They adjusted the node taints and tolerations, fixing the issue in minutes.</p><p>2️⃣ <strong>Storage Failures:</strong> An application using persistent volumes failed intermittently. Events showed:</p><pre>Warning  FailedAttachVolume  20s  attachdetach-controller  Timed out waiting for volume attachment</pre><p><strong>Solution:</strong> Debugging storage configurations instead of the application code saved hours of effort.</p><p>3️⃣ <strong>Ingress Problems:</strong> A service wasn’t reachable externally. The event logs showed:</p><pre>Warning  FailedSync  5s  ingress-controller  Failed to sync Ingress resource due to missing secret</pre><p><strong>Solution:</strong> Fixing the missing secret made the ingress work instantly.</p><h3>🔥 Conclusion: Embrace Events as a Debugging Superpower</h3><p>Events provide <strong>real-time insights</strong> directly from Kubernetes, helping diagnose scheduling, networking, storage, and resource allocation issues <strong>much faster</strong> than traditional logs and metrics.</p><p>Next time your cluster misbehaves, <strong>check the events first</strong> — you might just save yourself hours of frustration!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab404aca9efa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Tale of Docker Compose]]></title>
            <link>https://medium.com/@gautambehl11/the-tale-of-docker-compose-1c6f27ddfea6?source=rss-2f1c2db0ac5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c6f27ddfea6</guid>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Gautam]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 06:51:56 GMT</pubDate>
            <atom:updated>2024-12-27T06:51:56.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTMSMXXnlDwprJVlWPYDGg.jpeg" /></figure><h3><strong>Act I: The Chaos Begins</strong></h3><p>Meet Alex, a passionate software developer. Alex was tasked with building a robust web application for a fast-growing startup. The app needed three key components:</p><ol><li>A React <strong>frontend</strong> for a seamless user experience.</li><li>A Node.js <strong>backend</strong> to handle business logic.</li><li>A PostgreSQL <strong>database</strong> to store user data.</li><li>A Redis <strong>cache</strong> for session management.</li></ol><p>Excited to dive in, Alex decided to use Docker containers to ensure each component was isolated and consistent across environments.</p><p>With Docker installed, Alex began the setup.</p><h3><strong>Act II: The Struggle Without Compose</strong></h3><p>First, Alex tackled the database:</p><pre>docker run --name my-postgres \<br>  -e POSTGRES_USER=admin \<br>  -e POSTGRES_PASSWORD=secret \<br>  -e POSTGRES_DB=mydb \<br>  -v pgdata:/var/lib/postgresql/data \<br>  -p 5432:5432 \<br>  -d postgres:13</pre><p>The database container was up! Feeling confident, Alex moved on to Redis:</p><pre>docker run --name my-redis \<br>  -p 6379:6379 \<br>  -d redis:6.0</pre><p>Two containers down. Next came the Node.js backend. Alex wrote a Dockerfile for it:</p><pre>FROM node:16<br>WORKDIR /app<br>COPY . /app<br>RUN npm install<br>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p>Building and running the backend container took another set of commands:</p><pre>docker build -t my-backend .<br>docker run --name my-backend \<br>  --link my-postgres \<br>  --link my-redis \<br>  -p 3000:3000 \<br>  -d my-backend</pre><p>Finally, Alex moved on to the React frontend with its own Dockerfile:</p><pre>FROM node:16<br>WORKDIR /app<br>COPY . /app<br>RUN npm install<br>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p>Building and running the frontend container required yet another set of commands:</p><pre>docker build -t my-frontend .<br>docker run --name my-frontend \<br>  --link my-backend \<br>  -p 8080:8080 \<br>  -d my-frontend</pre><p>By the end of the day, Alex was exhausted but had a working setup. However, it wasn’t long before the cracks began to show:</p><ul><li><strong>Dependency Order</strong>: Starting the backend before the database often led to errors.</li><li><strong>Networking</strong>: Docker does not create a network for the application automatically, so the containers won’t be able to communicate with each other. Manually linking containers felt clunky and outdated.</li><li><strong>Scaling</strong>: When the backend needed scaling, Alex had to repeat commands for each instance, managing ports manually.</li><li><strong>Logs</strong>: Debugging required sifting through logs from each container individually.</li><li><strong>Reproducibility</strong>: Sharing this setup with a teammate required a long list of steps.</li><li><strong>Tracking/versioning</strong>: Its hard to track what changes were made in the configuration and by whom. This could be a huge problem in production systems as any step could be missed or could be executed wrongly.</li><li><strong>Shutdown: </strong>It would be a pain to shut down each service one by one and in correct order tyo shut down the application, and this would go worse when the number of containers in the application increase.</li></ul><p>Alex realized that managing this growing web application was becoming a nightmare.</p><h3><strong>Act III: The Savior Appears</strong></h3><p>That’s when Alex discovered <strong>Docker Compose</strong>.</p><p>Docker Compose promised a declarative way to manage multi-container applications using a single YAML file. Skeptical but desperate, Alex decided to give it a try.</p><p>Here’s the Compose file Alex wrote:</p><pre>version: &quot;3.9&quot;<br>services:<br>  postgres:<br>    image: postgres:13<br>    container_name: my-postgres<br>    environment:<br>      POSTGRES_USER: admin<br>      POSTGRES_PASSWORD: secret<br>      POSTGRES_DB: mydb<br>    volumes:<br>      - pgdata:/var/lib/postgresql/data<br>    ports:<br>      - &quot;5432:5432&quot;<br>    networks:<br>      - app-network<br>  redis:<br>    image: redis:6.0<br>    container_name: my-redis<br>    ports:<br>      - &quot;6379:6379&quot;<br>    networks:<br>      - app-network<br>  backend:<br>    build:<br>      context: ./backend<br>      dockerfile: Dockerfile<br>    container_name: my-backend<br>    ports:<br>      - &quot;3000:3000&quot;<br>    environment:<br>      - DB_HOST=my-postgres<br>      - REDIS_HOST=my-redis<br>    depends_on:<br>      - postgres<br>      - redis<br>    networks:<br>      - app-network  <br>  frontend:<br>    build:<br>      context: ./frontend<br>      dockerfile: Dockerfile<br>    container_name: my-frontend<br>    ports:<br>      - &quot;8080:8080&quot;<br>    depends_on:<br>      - backend<br>    networks:<br>      - app-network<br>volumes:<br>  pgdata:<br>networks:<br>  app-network:</pre><p>With this file in place, Alex started the entire setup with a single command:</p><pre>docker-compose up -d</pre><h3><strong>Act IV: The Transformation</strong></h3><p>The difference was night and day. With Docker Compose:</p><ol><li><strong>Centralized Configuration</strong>: All services were defined in one YAML file, making the setup easy to read and maintain.</li><li><strong>Version control: </strong>The configuration file is now part of the code and will be tracked by the version control system (Git), safeguarding unexpected changes.</li><li><strong>Automatic Networking</strong>: The app-network connected all containers seamlessly, without manual linking.</li><li><strong>Dependency Management</strong>: The depends_on directive ensured containers started in the correct order.</li><li><strong>Scaling</strong>: Scaling the backend became a breeze:</li></ol><pre>docker-compose up --scale backend=3 -d</pre><p><strong>5. Aggregated Logs</strong>: Alex could view logs for all containers in one place:</p><pre>docker-compose logs -f</pre><p><strong>6. Reproducibility</strong>: Sharing the setup was as simple as sharing the docker-compose.yml file.</p><h3><strong>Act V: The Lesson Learned</strong></h3><p>By embracing Docker Compose, Alex turned a chaotic development process into a streamlined and scalable workflow. What once took hours of manual effort now required just a single command.</p><p>Alex’s story is a testament to the power of simplifying complex workflows. If you’re juggling multiple containers, Docker Compose might just be the hero you need.</p><h3><strong>Epilogue: The Bigger Picture</strong></h3><p>While Docker Compose is an incredible tool for managing multi-container applications, it does come with limitations. It’s best suited for development, testing, and small-scale deployments. However, as applications grow in complexity and need to run in distributed environments, these issues arise:</p><ul><li><strong>Scalability</strong>: Compose is limited to a single host, making it unsuitable for large-scale, distributed applications.</li><li><strong>Orchestration</strong>: It doesn’t offer advanced features like load balancing, service discovery, or automated failover.</li><li><strong>Monitoring and Autoscaling</strong>: Docker Compose lacks built-in tools to monitor resource usage or automatically scale services based on demand.</li></ul><p>This is where Kubernetes steps in. Kubernetes is a container orchestration platform designed for running and managing containerized applications at scale. It provides robust features like:</p><ul><li>Automated deployment and scaling across multiple hosts.</li><li>Load balancing and traffic routing.</li><li>Self-healing capabilities to replace failed containers.</li></ul><p>That said, Docker Compose still shines in scenarios where simplicity and speed are key. For local development, testing environments, or small projects, Docker Compose remains a practical and efficient solution. By using the right tool for the right job, developers can achieve both productivity and scalability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c6f27ddfea6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best resources to get graphics for your website or mobile app]]></title>
            <link>https://medium.com/@gautambehl11/best-resources-to-get-graphics-for-your-website-or-mobile-app-ffbe024481a0?source=rss-2f1c2db0ac5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffbe024481a0</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[resources]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[graphics]]></category>
            <dc:creator><![CDATA[Gautam]]></dc:creator>
            <pubDate>Sat, 22 Jan 2022 13:31:21 GMT</pubDate>
            <atom:updated>2022-01-22T13:31:21.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kjCi3mNKxmcHqHNk" /><figcaption>Photo by <a href="https://unsplash.com/@easiblu?utm_source=medium&amp;utm_medium=referral">Eftakher Alam</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Graphics are an integral part of any application which deals with users directly. They may entertain, educate, or emotionally impact the user, and are crucial to the strength of branding, clarity of illustration, and ease of use for interfaces. While creating projects in the fields like Website Development and Mobile App Development, we do not focus directly on creating graphics for our project. Instead, we search for royalty-free sources, where we can find correct and appealing graphics for our project. Here are some resources I use for my projects. ✨</p><ul><li><strong>Pexels</strong> (<a href="http://pexels.com/">pexels.com</a>): It is a website containing stock photos, royalty-free images &amp; videos shared by creators that you can use in your project.</li><li><strong>FlatIcon</strong> (<a href="http://flaticon.com/">flaticon.com</a>): A website for free icons and stickers for your projects. Resources made by and for designers. You can use icon packs for similarly-themed icons throughout your project.</li><li><strong>Canva</strong> (<a href="http://canva.com/">canva.com</a>): Yes, you can also use canvas for icons and images. You can also design custom graphics for your project.</li><li><strong>Pinterest</strong> and <strong>Dribble</strong>: A great design is required to build a great project, and these websites can provide you inspiration for your upcoming projects.</li><li><strong>Unsplash</strong> (<a href="http://unsplash.com/">unsplash.com</a>): Here, you can find stock images with very high resolution</li><li><strong>Drawkit</strong> (<a href="http://drawkit.com/">drawkit.com</a>): Get print and digital-ready illustrations for your next project. Drawkit offers a collection of free, paid, and customizable vector illustrations, ideal for adapting and adding to any design.</li><li><strong>Font Awesome</strong> (<a href="http://fontawesome.com/">fontawesome.com</a>): Get vector icons and social logos on your website with Font Awesome, the web’s widely used icons, and toolkit.</li><li><strong>Freevector</strong> (<a href="http://freevector.com/">freevector.com</a>): It is a website full of free vector arts which can enhance your websites and apps.</li><li><strong>Humaaans</strong> (<a href="http://humaaans.com/">humaaans.com</a>): If you want to create custom human illustrations easily, this is the right platform for you.</li><li><strong>Vecteezy </strong>(<a href="http://vecteezy.com/">vecteezy.com</a>): This also provides free vector assets used majorly in web development.</li><li><strong>The Noun Project</strong> (<a href="http://thenounproject.com/">thenounproject.com</a>): This is a rich collection of icons and photos which can be used anywhere. They also provide various APIs for the same.</li><li><strong>GoogleFonts </strong>(<a href="http://fonts.google.com/">fonts.google.com</a>): Visually appealing fonts are a necessity nowadays when there are multiple options available for almost every app or website. Google Fonts provide us with a wide variety of fonts to choose from for our project.</li><li><strong>PixelBudhha </strong>(<a href="http://pixelbuddha.net/">pixelbuddha.net</a>): It&#39;s again a website with multiple kinds of resources including Vectors, UI/UX, Patterns, Icons, and Logos.</li><li><strong>RemoveBg </strong>(<a href="http://remove.bg/">remove.bg</a>): It’s a tool that uses AI to remove background from images in any format so that you can use them in the theme of your project.</li><li><strong>ImgBB </strong>(<a href="http://imgbb.com/">imgbb.com</a>): Sometimes, for better performance, you need to host the images to use them in to project such that the codebase doesn&#39;t become very heavy. For that purpose, ImgBB provides free unlimited image hosting services.</li></ul><p>Here are most of the resources I use for my projects. They will help you get some pre-designed graphics, make some custom graphics and make your projects more appealing to the users. Don’t hesitate to share any projects, comments, or suggestions, I would love to hear them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffbe024481a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>