<?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 Dushyanthy Jeganathan on Medium]]></title>
        <description><![CDATA[Stories by Dushyanthy Jeganathan on Medium]]></description>
        <link>https://medium.com/@dushyd81?source=rss-bfce3e0b3e79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*q7dlNOS2ejJH3Iqu</url>
            <title>Stories by Dushyanthy Jeganathan on Medium</title>
            <link>https://medium.com/@dushyd81?source=rss-bfce3e0b3e79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:34:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dushyd81/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 Servers Bring Your Website Online.]]></title>
            <link>https://medium.com/@dushyd81/how-servers-bring-your-website-online-3207dfd290f5?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/3207dfd290f5</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 07:30:21 GMT</pubDate>
            <atom:updated>2025-04-30T07:34:02.711Z</atom:updated>
            <content:encoded><![CDATA[<p>Server is a computer program or device that provides a service to another computer program and it’s user, also know as a client. Imagine a library a server is a librarian who provides books and services to other users.</p><p>Web hosting is the service that allows to publish your files and websites on to the internet.It’s like renting the space in to the internet to store your websites an files so users can access it.</p><h3><strong>Type of web hosting services:</strong></h3><p>Here are some most standard ones:</p><p>Shared Hosting.</p><p>VPS Hosting.</p><p>Dedicated Hosting.</p><p>Cloud Hosting.</p><p>Free Web Hosting.</p><p>Shared hosting is when a web hosting provider hosts a number of different websites on the same server. It is the most affordable form of hosting because you share the same server, so you split costs.</p><p>VPS stands for Virtual Private Server.Like shared hosting, websites that run on VPS share a physical server with other websites.</p><p>Cloud hosting is when you run your application or website on virtual servers in the cloud.</p><h3><strong>Compare hosting types:</strong></h3><p>Advantages of VPS hosting : Heigher uptimes but speed the shared hosting. Shared hosting have limited assess for the resourse and less control. VPS hosting is more expensive than cloud hosting. But the cloud hosting technical setup can be complex. If you need to bulid Growing business you have to use VSP hosting. You need Flexible, scalable solution you choose cloud hosting.</p><h3><strong>How the websites work:</strong></h3><p>Servers are the powerful computers that store website files and deliver them to users when requested. Servers are often located in data centers and are designed to handle numerous requests simultaneously.</p><p>Web browsers is the software application that can we use to access websites. Broswsers interpret the content and recived from the server.</p><p>Domin-Names are human readable addresses that replace complex IP address. They make it easier for users to access websites.</p><p>DNS servers translate the domain name to IP addresses. When you type a URL in your browser, DNS servers resolve it to the appropriate IP address to locate the web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*iookjKaRNnk1hEOPvQFOxA.jpeg" /></figure><h3><strong>What happen when someone visit the website:</strong></h3><p>When someone enter the websites the request will pass the server and the server will collect the data and send the responces to the user.</p><h3><strong>Important of choosing the correct server:</strong></h3><p>Before building your website or application you have to choose the correct web server. First you might to want the cheapest one or the newest version.</p><p>The right server handles requests efficiently, reducing load times and improving user experience.</p><p>example: Nginx performs better than Apache for high-traffic static websites.</p><p>A good server choice ensures your app can grow with user demand.</p><p>You choice the must align with the tec stack.</p><p>example: Apache and Nginx have large communities; enterprise servers like AWS offer dedicated support.</p><p>If you building the real time chatting app you choose Node.js with socket.io make sense because it handel the real time communication well. Choosing a traditional PHP server would perform as effectively.</p><p>Reference : <a href="https://www.one.com/en/hosting/what-is-web-hosting">https://www.one.com/en/hosting/what-is-web-hosting</a></p><ul><li><a href="https://aws.amazon.com/what-is/cloud-hosting/">What is Cloud Hosting? - Cloud Server Hosting Explained - AWS</a></li><li><a href="https://www.next7it.com/insights/what-happens-when-visit-website/">What Happens When You Visit A Website</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Web_standards/How_the_web_works">How the web works - Learn web development | MDN</a></li><li><a href="https://networkise.com/how-to-choose-the-right-server-for-your-organization/">How to Choose The Right Server For Your Organization</a></li></ul><p><a href="https://www.seekahost.com/types-of-web-hosting-services/">https://www.seekahost.com/types-of-web-hosting-services/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3207dfd290f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[prop.]]></title>
            <link>https://medium.com/@dushyd81/prop-f034bf54ae6a?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/f034bf54ae6a</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 15:40:36 GMT</pubDate>
            <atom:updated>2025-04-26T15:40:36.429Z</atom:updated>
            <content:encoded><![CDATA[<h3>Prop-type.</h3><p>In React, prop-types is a library that provides type-checking for props (properties) passed to components. It helps developers catch type-related errors during development, ensuring that components receive the expected data types. This improves code maintainability and reduces potential bugs.</p><p>Key aspects of prop-type:</p><p><strong>. Type Checking</strong></p><p>. <strong>Error Detection</strong></p><p>.<strong>Improved Code Quality</strong></p><p>. <strong>Documentation</strong></p><p>. <strong>Custom Validators.</strong></p><h3><strong>defalt-prop.</strong></h3><p>In React, defaultProps is a static property that can be assigned to a component to specify default values for props. These default values are used when the parent component does not pass a value for a particular prop. This helps ensure that your components have sensible defaults, preventing issues when a prop is missing.</p><h3>Why Use Default Props?</h3><ul><li>They make your components more resilient.</li><li>They help avoid undefined errors.</li><li>They provide a better user experience without requiring every parent to pass all props.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f034bf54ae6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoDB Transactions.]]></title>
            <link>https://medium.com/@dushyd81/mongodb-transactions-2b71c5ec8095?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b71c5ec8095</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 14:02:18 GMT</pubDate>
            <atom:updated>2025-04-15T14:02:18.112Z</atom:updated>
            <content:encoded><![CDATA[<p>In database terms, a <strong>transaction</strong> is a sequence of operations performed as a single logical unit of work. A transaction must be:</p><ul><li><strong>Atomic</strong> — All operations succeed or none do.</li><li><strong>Consistent</strong> — Database remains in a valid state.</li><li><strong>Isolated</strong> — Concurrent transactions don’t interfere.</li><li><strong>Durable</strong> — Once committed, data remains, even on failure.</li></ul><p>Together, these form the <strong>ACID</strong> properties.</p><p>MongoDB is usually schema-less and document-oriented, so many applications don’t need complex transactions. However, there are cases where they are useful:</p><ul><li>Updating <strong>multiple documents</strong> that must stay in sync</li><li>Making <strong>related changes</strong> across collections (e.g., orders and inventory)</li><li>Performing <strong>banking or financial</strong> operations</li><li><strong>Rollback</strong> scenarios for error handling</li></ul><h3>Limitations of MongoDB Transactions.</h3><ul><li>Not as performant as single-document writes.</li><li>Can introduce complexity and overhead.</li><li>Requires replica sets or sharded clusters.</li><li>Not ideal for high-frequency operations at scale.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b71c5ec8095" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoDB Transactions.]]></title>
            <link>https://medium.com/@dushyd81/mongodb-transactions-f8b2f8d245cd?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8b2f8d245cd</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Mon, 14 Apr 2025 15:00:13 GMT</pubDate>
            <atom:updated>2025-04-14T15:00:13.789Z</atom:updated>
            <content:encoded><![CDATA[<p>MongoDB is known for its flexibility and performance, but what if you need multiple operations to succeed or fail together — just like in SQL databases? That’s where <strong>transactions</strong> come in.</p><p>In this post, we’ll dive into what MongoDB transactions are, why you need them, and how to use them properly.</p><p>A <strong>transaction</strong> is a sequence of operations performed as a single unit. Either <strong>all</strong> operations succeed, or <strong>none</strong> of them do.</p><p>Imagine you’re transferring money from one user to another:</p><ul><li>Subtract $100 from Alice’s account.</li><li>Add $100 to Bob’s account.</li></ul><p>If the first operation succeeds and the second fails, your data is inconsistent — not good! A transaction ensures both succeed or both fail.</p><h3>When Should You Use Transactions?</h3><ul><li>Banking or financial apps</li><li>E-commerce checkout systems</li><li>Multi-document updates that must be atomic</li><li>Ensuring referential integrity across collections</li></ul><h3>MongoDB and ACID</h3><p>Since MongoDB 4.0 (for replica sets) and 4.2+ (for sharded clusters), MongoDB <strong>supports multi-document ACID transactions</strong> — meaning operations are:</p><ul><li><strong>Atomic</strong> — All or nothing</li><li><strong>Consistent</strong> — Data remains valid</li><li><strong>Isolated</strong> — No interference from other ops</li><li><strong>Durable</strong> — Once committed, it sticks</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8b2f8d245cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoDB Aggregation: Unleashing the Power of Data Transformation]]></title>
            <link>https://medium.com/@dushyd81/mongodb-aggregation-unleashing-the-power-of-data-transformation-fd89f664e3aa?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd89f664e3aa</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Sun, 13 Apr 2025 12:14:24 GMT</pubDate>
            <atom:updated>2025-04-13T12:14:24.860Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of databases, simply storing data isn’t enough — analyzing, transforming, and summarizing that data is equally critical. That’s where MongoDB Aggregation comes in. It’s one of the most powerful features in MongoDB and a must-know for anyone working with large datasets.</p><p>What is Aggregation in MongoDB?</p><p>Aggregation is MongoDB’s way of processing data records and returning computed results. Think of it as a pipeline — you pass your documents through multiple stages, each performing a specific operation (like filtering, grouping, or reshaping).</p><p>This is similar to GROUP BY, JOIN, and SUM in SQL — but way more flexible.</p><p>The Aggregation Pipeline</p><p>The aggregation framework uses a concept called the pipeline, which processes data in stages. Each stage performs a task and passes the result to the next stage.</p><p>Example stages:</p><p>•	$match: Filter documents</p><p>•	$group: Group data by a field and perform operations like count or sum</p><p>•	$sort: Sort documents</p><p>•	$project: Reshape documents (choose specific fields)</p><p>•	$limit: Limit number of output documents.</p><p>Real-World Use Cases</p><p>•	Analytics Dashboards: Calculate KPIs like total revenue, average order value, etc.</p><p>•	Reporting Systems: Generate grouped reports with dynamic filters.</p><p>•	Data Transformation: Clean, reshape, and prepare data for APIs.</p><p>•	Joins Without SQL: Use $lookup to join related data across collections.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd89f664e3aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoDB key words.]]></title>
            <link>https://medium.com/@dushyd81/mongodb-key-words-d25e047d65c4?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/d25e047d65c4</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 14:00:00 GMT</pubDate>
            <atom:updated>2025-04-12T14:00:00.503Z</atom:updated>
            <content:encoded><![CDATA[<p>CRUD Operations:</p><ul><li><strong>insertOne() / insertMany()</strong> — Add document(s) to a collection.</li><li><strong>find() / findOne()</strong> — Read/retrieve documents.</li><li><strong>updateOne() / updateMany() / replaceOne()</strong> — Update documents.</li><li><strong>deleteOne() / deleteMany()</strong> — Remove documents.</li></ul><p><strong>Query Operators:</strong></p><ul><li><strong>$eq</strong> — Equal</li><li><strong>$ne</strong> — Not equal</li><li><strong>$gt / $gte</strong> — Greater than / Greater than or equal</li><li><strong>$lt / $lte</strong> — Less than / Less than or equal</li><li><strong>$in / $nin</strong> — In / Not in array</li><li><strong>$and / $or / $not / $nor</strong> — Logical operators</li><li><strong>$exists</strong> — Checks if a field exists</li><li><strong>$regex</strong> — Regular expression matching.</li></ul><p>Update Operators:</p><ul><li><strong>$set</strong> — Set a field to a value</li><li><strong>$unset</strong> — Remove a field</li><li><strong>$inc / $mul</strong> — Increment / multiply a value</li><li><strong>$push / $pull / $addToSet</strong> — Modify arrays</li></ul><p>Aggregation &amp; Pipelines:</p><ul><li><strong>aggregate()</strong> — Runs aggregation queries</li><li><strong>$match</strong> — Filter documents</li><li><strong>$group</strong> — Group documents by a field</li><li><strong>$sort</strong> — Sort documents</li><li><strong>$project</strong> — Select specific fields</li><li><strong>$limit / $skip</strong> — Pagination</li><li><strong>$lookup</strong> — Perform joins between collections</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d25e047d65c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to MongoDB.]]></title>
            <link>https://medium.com/@dushyd81/introduction-to-mongodb-b11e3e73628f?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/b11e3e73628f</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 13:36:31 GMT</pubDate>
            <atom:updated>2025-04-11T13:36:31.004Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>MongoDB</strong> is an open-source <strong>NoSQL database</strong> that uses a <strong>document-oriented</strong> data model. Unlike traditional relational databases like MySQL or PostgreSQL that store data in rows and columns, MongoDB stores data in <strong>JSON-like documents</strong> (actually BSON — Binary JSON). These documents are dynamic and can store nested values, arrays, and a variety of data types.</p><h3><strong>USE OF MongoDB.</strong></h3><p>Here are some of the key reasons developers love MongoDB:</p><h3>1. Flexibility</h3><p>MongoDB has a <strong>schema-less design</strong>, meaning you don’t need to define the structure of your documents in advance. You can add fields to documents without impacting others.</p><h3>2. Scalability</h3><p>MongoDB was built with horizontal scalability in mind. It supports <strong>sharding</strong>, which distributes data across multiple servers — perfect for handling large-scale applications.</p><h3>3. High Performance</h3><p>MongoDB can handle <strong>large volumes of data</strong> and supports fast querying with indexing and aggregation pipelines.</p><h3>4. Developer Friendly</h3><p>If you’re working with JavaScript (like Node.js), MongoDB feels natural because it uses JSON-like syntax. You can even integrate it easily with Mongoose, an ODM (Object Document Mapper) for MongoDB in Node.js.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b11e3e73628f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database questions.]]></title>
            <link>https://medium.com/@dushyd81/database-questions-b1fb4a8ec698?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1fb4a8ec698</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Mon, 07 Apr 2025 09:45:37 GMT</pubDate>
            <atom:updated>2025-04-07T09:45:37.751Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Data</strong></p><p>Data is a collection of facts, numbers, words, observations or other useful information.</p><p><strong>What is a database</strong></p><p>Database is an organized collections of data, stored and accessed electronically.</p><p><strong>What is a Server</strong></p><p>A computer server is a type of powerful computer that provides you with various services such as web hosting, network storage, and application processing.</p><p><strong>Explain the type of Databases.</strong></p><p>Databases can be broadly classified into relational (SQL) and non-relational (NoSQL), each with various subcategories, catering to different data structures and application needs</p><p><strong>Advantages and Disadvantages of Centralized Database</strong></p><p>Advantages : Central host computer can be more easily protected from unauthorized access.</p><p>transactions can more easily.</p><p>Disadvantage : Access speed is limited by network speed.</p><p>Difficult to scale as the centralized computer would need to be replaced to scale up.</p><p><strong>What is the Data controller language and Transaction controller language</strong></p><p>Data Control Language is use to control access in database.</p><p>Transaction controller language is use to manage transaction in the database.</p><p><strong>What is DBMS</strong></p><p>DBMS is a software system that allows users to create, define, manipulate and manage database.</p><p><strong>What is the main difference between relational databases (RDBMS) and non-relational databases (NoSQL) in terms of how they store data</strong></p><ul><li>SQL databases are better for multi-row transactions, while NoSQL is better for unstructured data like documents or JSON.</li><li>SQL databases are table-based, while NoSQL databases are document, key-value or wide-column stores.</li><li>SQL databases are relational and NoSQL databases are non-relational.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1fb4a8ec698" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DOM TRAVERSAL.]]></title>
            <link>https://medium.com/@dushyd81/dom-traversal-05d062d0990d?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/05d062d0990d</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Wed, 02 Apr 2025 09:50:29 GMT</pubDate>
            <atom:updated>2025-04-02T09:50:29.524Z</atom:updated>
            <content:encoded><![CDATA[<p>DOM traversal is the process of navigating and manipulating the hierarchical structure of a webpage’s Document Object Model (DOM) using JavaScript or other scripting languages.</p><p>The nodes of every document are organized in a tree structure, called the DOM tree.</p><p>DOM traversal is essential for creating dynamic and interactive web applications because it allows developers to :</p><ul><li>Respond to user interactions.</li><li>Add or remove elements.</li><li>Update content dynamically.</li></ul><p>You can traverse the DOM by using methods like:</p><p>. parentNode.</p><p>. childNodes.</p><p>. firstChild.</p><p>. lastChild.</p><p>. nextSibling.</p><p>DOM traversal is a fundamental skill for web developers because it enables dynamic manipulation of web pages by allowing you to navigate and interact with the DOM tree.</p><p>Example structure of DOM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*FA0ArQRBJ6LV8kfO2rIeEA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05d062d0990d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Document object model (DOM.]]></title>
            <link>https://medium.com/@dushyd81/document-object-model-dom-faefe1888c01?source=rss-bfce3e0b3e79------2</link>
            <guid isPermaLink="false">https://medium.com/p/faefe1888c01</guid>
            <dc:creator><![CDATA[Dushyanthy Jeganathan]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 05:14:07 GMT</pubDate>
            <atom:updated>2025-03-20T05:14:07.176Z</atom:updated>
            <content:encoded><![CDATA[<h3>Document object model (DOM).</h3><p>The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document — such as the HTML representing a web page — in memory.</p><p>The DOM represents a document with a logical tree.</p><p>In HTML DOM (Document Object Model), every element is a node:</p><ul><li>A document is a document node.</li><li>All HTML elements are element nodes.</li><li>All HTML attributes are attribute nodes.</li><li>Text inserted into HTML elements are text nodes.</li><li>Comments are comment nodes.</li></ul><p>The object model itself closely resembles the structure of the documents it models. For instance, consider this table, taken from an HTML document.</p><p>When a web page loads, the browser creates a DOM of the page, allowing scripts (like JavaScript) to access and modify the page’s elements, attributes, and styles.</p><p>The DOM acts like a living version of HTML, organizing elements into a tree-like hierarchy where, for example, a title and paragraph are branches connected to the main document.</p><p>It’s a dynamic tool that JavaScript uses to update text, adjust styles, or react to user actions, making precise changes possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*CEJ1WxtOPl_XIOruGKL2XA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faefe1888c01" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>