<?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 Harsh Gaur on Medium]]></title>
        <description><![CDATA[Stories by Harsh Gaur on Medium]]></description>
        <link>https://medium.com/@harshgaur14?source=rss-7883a4d8a684------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XKO8_5NI4Mf0IZxC6Wlx9Q.png</url>
            <title>Stories by Harsh Gaur on Medium</title>
            <link>https://medium.com/@harshgaur14?source=rss-7883a4d8a684------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:43:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshgaur14/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[How to Install Docker on Ubuntu: A Comprehensive Guide]]></title>
            <link>https://medium.com/@harshgaur14/how-to-install-docker-on-ubuntu-a-comprehensive-guide-d923b5964b8d?source=rss-7883a4d8a684------2</link>
            <guid isPermaLink="false">https://medium.com/p/d923b5964b8d</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[i̇mages]]></category>
            <dc:creator><![CDATA[Harsh Gaur]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 10:34:41 GMT</pubDate>
            <atom:updated>2024-11-21T10:34:41.084Z</atom:updated>
            <content:encoded><![CDATA[<p>Step-by-Step Instructions to Set Up Docker on Your Ubuntu System</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*QQzVdkgHJlxQ6y-cOl0Agg.jpeg" /></figure><p><strong>What is Docker?<br></strong>Docker is an open-source platform designed for automating the deployment, scaling, and management of applications within containers. Containers are lightweight, portable units that package an application and its dependencies (such as libraries, system tools, and configurations) so it can run uniformly across different computing environments. Docker simplifies the development workflow by enabling developers to build, test, and deploy applications consistently, regardless of the underlying system.</p><p><strong>Real-World Use Cases of Docker</strong></p><ul><li><strong>Application Portability</strong>: Developers can create applications that are portable across environments, eliminating “it works on my machine” issues.</li><li><strong>Continuous Integration/Continuous Deployment (CI/CD)</strong>: Docker enables seamless integration into CI/CD pipelines, allowing for rapid development and deployment cycles.</li><li><strong>IoT Applications</strong>: In IoT ecosystems, Docker is used to manage and deploy updates to a wide range of devices while ensuring security and compatibility.</li><li><strong>DevOps Workflow Efficiency</strong>: Teams use Docker to standardize their workflows, ensuring the same setup for development, testing, and production environments.</li><li><strong>Legacy Application Modernization</strong>: Docker helps migrate legacy applications to modern systems by containerizing them, allowing old software to run on new infrastructure.</li><li><strong>Big Data and Machine Learning</strong>: Data scientists use Docker to create isolated environments for big data processing and ML model training, avoiding dependency conflicts.</li><li><strong>Microservices Deployment</strong>: Docker simplifies the deployment and scaling of microservices by isolating each service in its container.</li></ul><h3>How to Install Docker in Ubuntu 20.04</h3><p><strong>Prerequisites</strong><br><strong>Initial Server Setup with Ubuntu 20.04</strong></p><p>Step 1 — Logging in as root</p><pre>ssh root@your_server_ip</pre><p>Step 2— Creating a New User</p><pre>adduser username</pre><p>Step 3 — Granting Administrative Privileges</p><pre>usermod -aG sudo username</pre><p>Step 4— Setting Up a Basic Firewall</p><pre>ufw app list</pre><pre>Output<br>Available applications:<br>  OpenSSH</pre><pre>ufw allow OpenSSH<br>ufw enable<br>ufw status</pre><pre>Output<br>Status: active<br><br>To                         Action      From<br>OpenSSH                    ALLOW       Anywhere<br>OpenSSH (v6)               ALLOW       Anywhere (v6)</pre><p><strong>Docker Installation</strong></p><p>Step 1 — Installing Docker<br>First, update your existing list of packages:</p><pre>sudo apt update</pre><p>Install a few prerequisite packages which let apt use packages over HTTPS:</p><pre>sudo apt install apt-transport-https ca-certificates curl software-properties-common</pre><p>Add the GPG key for the official Docker repository:</p><pre>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -</pre><p>Add the Docker repository to APT sources:</p><pre>sudo add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable&quot;<br>apt-cache policy docker-ce</pre><pre>Output of apt-cache policy docker-ce<br>docker-ce:<br>  Installed: (none)<br>  Candidate: 5:19.03.9~3-0~ubuntu-focal<br>  Version table:<br>     5:19.03.9~3-0~ubuntu-focal 500<br>        500 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages</pre><p>Install Docker:</p><pre>sudo apt install docker-ce</pre><pre>sudo systemctl status docker</pre><pre>Output● docker.service - Docker Application Container Engine<br>     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)<br>     Active: active (running) since Tue 2024-11-20 17:00:41 UTC; 17s ago<br>TriggeredBy: ● docker.socket<br>       Docs: https://docs.docker.com<br>   Main PID: 24321 (dockerd)<br>      Tasks: 8<br>     Memory: 46.4M<br>     CGroup: /system.slice/docker.service<br>             └─24321 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock</pre><p>Step 2 — Using the Docker Command</p><pre>docker [option] [command] [arguments]</pre><pre>docker</pre><pre>Output<br>  attach      Attach local standard input, output, and error streams to a running container<br>  build       Build an image from a Dockerfile<br>  commit      Create a new image from a container&#39;s changes<br>  cp          Copy files/folders between a container and the local filesystem<br>  create      Create a new container<br>  diff        Inspect changes to files or directories on a container&#39;s filesystem<br>  events      Get real time events from the server<br>  exec        Run a command in a running container<br>  export      Export a container&#39;s filesystem as a tar archive<br>  history     Show the history of an image<br>  images      List images<br>  import      Import the contents from a tarball to create a filesystem image<br>  info        Display system-wide information<br>  inspect     Return low-level information on Docker objects<br>  kill        Kill one or more running containers<br>  load        Load an image from a tar archive or STDIN<br>  login       Log in to a Docker registry<br>  logout      Log out from a Docker registry<br>  logs        Fetch the logs of a container<br>  pause       Pause all processes within one or more containers<br>  port        List port mappings or a specific mapping for the container<br>  ps          List containers<br>  pull        Pull an image or a repository from a registry<br>  push        Push an image or a repository to a registry<br>  rename      Rename a container<br>  restart     Restart one or more containers<br>  rm          Remove one or more containers<br>  rmi         Remove one or more images<br>  run         Run a command in a new container<br>  save        Save one or more images to a tar archive (streamed to STDOUT by default)<br>  search      Search the Docker Hub for images<br>  start       Start one or more stopped containers<br>  stats       Display a live stream of container(s) resource usage statistics<br>  stop        Stop one or more running containers<br>  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE<br>  top         Display the running processes of a container<br>  unpause     Unpause all processes within one or more containers<br>  update      Update configuration of one or more containers<br>  version     Show the Docker version information<br>  wait        Block until one or more containers stop, then print their exit codes</pre><p>System-wide information about Docker:</p><pre>docker info</pre><p>Step 3 — Working with Docker Images</p><p>To check whether you can access and download images from Docker Hub:</p><pre>docker run hello-world</pre><pre>Output:<br>Hello from Docker!<br>This message shows that your installation appears to be working correctly.<br> <br>To generate this message, Docker took the following steps:<br> 1. The Docker client contacted the Docker daemon.<br> 2. The Docker daemon pulled the &quot;hello-world&quot; image from the Docker Hub.<br>    (amd64)<br> 3. The Docker daemon created a new container from that image which runs the<br>    executable that produces the output you are currently reading.<br> 4. The Docker daemon streamed that output to the Docker client, which sent it<br>    to your terminal.<br> <br>To try something more ambitious, you can run an Ubuntu container with:<br> $ docker run -it ubuntu bash<br> <br>Share images, automate workflows, and more with a free Docker ID:<br> https://hub.docker.com/<br> <br>For more examples and ideas, visit:<br> https://docs.docker.com/get-started/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d923b5964b8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Sandboxie on Windows]]></title>
            <link>https://medium.com/@harshgaur14/how-to-install-sandboxie-on-windows-407d5b10cf57?source=rss-7883a4d8a684------2</link>
            <guid isPermaLink="false">https://medium.com/p/407d5b10cf57</guid>
            <category><![CDATA[testing-tools]]></category>
            <category><![CDATA[isolation]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[sandboxie]]></category>
            <dc:creator><![CDATA[Harsh Gaur]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 12:39:16 GMT</pubDate>
            <atom:updated>2024-11-19T12:39:16.672Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*TVVYtsQJHll5vzQmSs24lw.jpeg" /></figure><p><strong>What is Sandboxie?<br></strong>Sandboxie is a sandbox-based isolation software designed for 32- and 64-bit Windows NT-based operating systems. Developed by David Xanatos, Sandboxie creates a virtual sandbox environment where applications can run isolated from the underlying system. This isolation prevents them from making permanent changes to other programs and data on the computer.</p><p><strong>Key features:<br>Isolation</strong>: Applications operate within a sandbox, ensuring they cannot alter system settings or access sensitive data.<br><strong>Security</strong>: Protects against malware by confining potentially harmful programs.<br><strong>Flexibility</strong>: Allows testing of untrusted applications without risking system integrity.<br><strong>Stability</strong>: prevents system crashes and freezes due to application conflicts.<br>System Information: displays system-wide information such as CPU usage, memory usage, disk space and more.<br><strong>Virtualization</strong>: runs programs in an isolated environment to prevent permanent changes to the system.<br>File and Registry Protection: protects files and registry entries from malicious programs.</p><p><strong>Sandboxie is useful for users concerned about security and testing applications in a controlled environment without affecting their main operating system.</strong></p><p><strong>System Requirements</strong></p><ul><li><strong>Operating System</strong>: Windows 10 Pro, Enterprise, or Server version; or Windows 11 Pro or Enterprise.</li><li><strong>Processor</strong>: AMD64 architecture with virtualization capabilities enabled in BIOS/UEFI.</li><li><strong>Memory</strong>: Minimum of 4GB RAM, with 8GB recommended.</li><li><strong>Disk Space</strong>: At least 1GB of free space for Sandbox installation and operation.</li><li><strong>Virtualization Support</strong>: Ensure that virtualization is enabled in your BIOS settings.</li></ul><p><strong>Suported Versions of Windows</strong></p><ul><li><strong>Windows 10</strong>: Build 18305 or later, Pro or Enterprise editions.</li><li><strong>Windows 11</strong>: Pro or Enterprise editions.</li></ul><p><strong>Step-by-Step Guide to Install Sandboxie on Windows</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2M5WMUwnW9F7rO5bOtKeA.png" /></figure><ol><li>Download Sandboxie <br><a href="https://sandboxie-plus.com/downloads/">https://sandboxie-plus.com/downloads/</a><br>Choose the right version.</li><li>Installing the Sandboxie<br>Run the installer</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*AusgdMr36EMgjHplItHwYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*3PM_yfnBapdLGvIcRvESgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*oYEWoRDYyF5KLLbkGGtlAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*EEWRtynWhz5ccXtj2_Fe1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*yOKdvH_BzKNJ22vIC3aO8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*boVoU2NTKBq_9Viq36qGUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*murZdl5H4CeRZQWbX8Lt0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*gVW-dPVV2_XdwPNROV0r_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*yKX0gkW_Eh_07m2SmdY4UA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*v1fW-80VI9PsqFk4LUcogw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*t_IO-skOEWIb0hgojQ_abA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*3aFvfrKt1uhGPNL-p2yVNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*x1EmHBqkq59YNDdCe2DCCg.png" /></figure><p>After successfully installing it, run it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*HnjY2-PcXC7mDMLLPhZCPA.png" /></figure><p><strong>When you run a browser using Sandboxie, it is highlighted with a yellow border to indicate that the application is running in a sandboxed environment. This visual cue ensures that users know the program is isolated from the system, protecting it from potentially harmful changes or threats.</strong></p><h4>Use Cases:</h4><ol><li><strong>Enhanced Security</strong>: Safely browse the internet without risking malware infections or unauthorized changes to the host system.</li><li><strong>Testing</strong>: Evaluate websites, downloads, or applications in a controlled and isolated space.</li><li><strong>Privacy</strong>: Prevent browsers from saving history, cookies, or cache outside the sandbox.</li><li><strong>System Protection</strong>: Contain malicious scripts or programs within the sandbox, avoiding damage to the main system.</li></ol><p>The yellow border is a default Sandboxie feature designed to help users easily distinguish sandboxed applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CLJyJSm54vZ1BFmuoAQhOw.png" /></figure><p><strong>Conclusion<br></strong>Sandboxie is a powerful tool for enhancing your digital security and privacy. By isolating applications, it minimizes risks and provides a safe environment for browsing, testing, and running potentially unsafe programs. With its user-friendly features, such as the yellow border indicator, you can confidently safeguard your system against unwanted changes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=407d5b10cf57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Scalable Microservices with Spring Boot: A Guide to Efficient Architecture]]></title>
            <link>https://medium.com/@harshgaur14/building-scalable-microservices-with-spring-boot-a-guide-to-efficient-architecture-eabfffc876d6?source=rss-7883a4d8a684------2</link>
            <guid isPermaLink="false">https://medium.com/p/eabfffc876d6</guid>
            <category><![CDATA[scalable-applications]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Harsh Gaur]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 10:23:23 GMT</pubDate>
            <atom:updated>2024-11-19T10:23:23.464Z</atom:updated>
            <content:encoded><![CDATA[<p>Master Microservices Architecture with Spring Boot for Enhanced Flexibility, Scalability, and Performance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*_-3kzoTXDGNIm4GG0TIFzA.png" /></figure><p><strong>What is Microservices in Spring Boot?<br></strong>Microservices in Spring Boot is an architectural style where an application is composed of small, loosely coupled, and independently deployable services. Each microservice is responsible for a specific functionality and communicates with other services via lightweight protocols such as HTTP or messaging systems like Kafka.</p><p><strong>Benefits of Microservices with Spring Boot:</strong></p><ul><li><strong>Resilience</strong>: Failures in one microservice don’t affect the entire application.</li><li><strong>Ease of Deployment</strong>: Continuous integration and deployment pipelines can be implemented for each service independently.</li><li><strong>Tech Diversity</strong>: Teams can use different tech stacks for different microservices.</li><li><strong>Flexibility:</strong> Services can be developed, deployed, and scaled independently.</li></ul><p><strong>Microservices Architecture Vs Monolithic Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*lCVyiL6nYL_qO91Ye-LTEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*97zMRzk__2iV-u2_Hn7RlA.png" /><figcaption><strong>Monolithic Architecture</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*Tz98CfYf3JHfzViJHkPFzQ.png" /><figcaption><strong>Microservice Architecture</strong></figcaption></figure><p><strong>What is a Registry Service in microservice?</strong></p><ul><li>A Registry Service in a microservices architecture is a central directory where all the microservices in the system register themselves and can be discovered by other services.</li><li>It acts as a dynamic lookup service, which helps microservices communicate with each other without needing to know their exact network location (such as IP address or port).</li></ul><p><strong>Why Registry Service is Needed?<br></strong>In a microservices environment, services are typically running on different servers or containers, and their locations (IP addresses, ports) can change due to scaling, load balancing, or failure recovery. A registry service solves this problem by providing a centralized directory that holds the network locations of all active services.</p><h4>How It Works</h4><ol><li>Service Registration: When a microservice starts, it registers itself with the registry service by providing its location (IP, port, etc.).</li><li>Service Discovery: Other microservices can query the registry service to find the location of a service they want to interact with.</li><li>Health Checks: The registry service can also perform health checks to ensure that services are available and remove any non-responsive services.</li></ol><p>In Spring Boot microservices, Eureka from Netflix OSS is one of the most commonly used service registry tools.</p><h4>Key Benefits of a Registry Service:</h4><ul><li>Decoupled Communication: Microservices don’t need to know the exact locations of other services, promoting loose coupling.</li><li>Dynamic Scaling: As services scale up or down, the registry updates dynamically.</li><li>Fault Tolerance: Failed services can be removed automatically from the registry, and healthy services can be discovered.</li></ul><p>A Registry Service in microservices (like Eureka) allows services to dynamically register themselves and discover other services without knowing their exact location, which is essential for a scalable and resilient microservices architecture.</p><p><strong>What is API Gateway in Spring boot microservices?<br></strong>An API Gateway in a Spring Boot microservices architecture is a single entry point for all client requests, acting as a reverse proxy. It routes requests to the appropriate backend microservices, handling cross-cutting concerns such as authentication, load balancing, rate limiting, and monitoring. This simplifies client communication with microservices by providing a unified interface and abstracting the complexity of microservice interactions.</p><p><strong>Key Features of API Gateway in Spring Boot Microservices:</strong></p><ol><li>Routing: The gateway forwards incoming client requests to the correct microservices based on predefined routing rules.</li><li>Authentication and Authorization: It ensures secure access by integrating with security mechanisms (like JWT) to authenticate users before forwarding requests.</li><li>Load Balancing: Distributes incoming requests across multiple instances of a microservice, optimizing performance.</li><li>Rate Limiting: Controls the number of requests a client can send within a specific timeframe to prevent overloading microservices.</li><li>Logging and Monitoring: Tracks incoming requests and responses, allowing for better monitoring of microservices.</li></ol><p><strong>Response Aggregation</strong>: Combines responses from multiple microservices into a single response for the client.</p><h4>Popular Solutions:</h4><ul><li><strong>Spring Cloud Gateway</strong>: A popular solution in the Spring Boot ecosystem, offering features like dynamic routing, filters, security integration, and service discovery.</li><li><strong>Netflix Zuul</strong>: An older API gateway from the Netflix OSS stack, though Spring Cloud Gateway has largely replaced it.</li></ul><h4>Example in Spring Boot with Spring Cloud Gateway:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*UPid4W8HfZGaYe8JT_Dxlw.png" /></figure><p><strong>What is config server in spring boot microservices?<br></strong>In Spring Boot microservices, a Config Server is part of the Spring Cloud ecosystem that provides a central place to manage configuration properties for multiple microservices. Here’s a breakdown of its role and functionality:</p><p><strong>What is Spring Cloud Config Server?</strong></p><p>Spring Cloud Config Server is a server-side application that serves configuration properties to microservices. It allows you to externalize configuration from your microservices and manage it centrally. This setup is particularly useful in a microservices architecture where each service needs its own configuration.</p><p><strong>Key Features:</strong></p><ol><li>Centralized Configuration: All your microservices can fetch their configuration from a single source, making management easier and more consistent.</li><li>Dynamic Configuration: Changes in configuration can be pushed to the microservices dynamically without requiring a restart.</li><li>Support for Multiple Backends: Config Server can read configurations from various backends such as Git, SVN, or a local filesystem.</li><li>Profile Support: Configurations can be set up for different environments (e.g., development, testing, production) using profiles, which helps in managing different settings for different stages of deployment.</li><li>Versioned Configuration: When using Git as a backend, configurations can be versioned, allowing you to keep track of changes and roll back if necessary.</li></ol><p>Check out the Spring Boot microservices demo project, which showcases a basic microservices architecture with centralized configuration and inter-service communication. You can explore the project and its setup on GitHub: <a href="https://github.com/Harshgaur14/spring-boot-microservices-demo.git">https://github.com/Harshgaur14/spring-boot-microservices-demo.git</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eabfffc876d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>