<?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 Aathavan Kovinthamoorthy on Medium]]></title>
        <description><![CDATA[Stories by Aathavan Kovinthamoorthy on Medium]]></description>
        <link>https://medium.com/@aathavan4580?source=rss-54e1c7036746------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qbYfjo3pvuGU-ZAF</url>
            <title>Stories by Aathavan Kovinthamoorthy on Medium</title>
            <link>https://medium.com/@aathavan4580?source=rss-54e1c7036746------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:07:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aathavan4580/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[SERVER]]></title>
            <link>https://medium.com/@aathavan4580/server-87ce6f6ce220?source=rss-54e1c7036746------2</link>
            <guid isPermaLink="false">https://medium.com/p/87ce6f6ce220</guid>
            <dc:creator><![CDATA[Aathavan Kovinthamoorthy]]></dc:creator>
            <pubDate>Wed, 29 Jun 2022 06:27:28 GMT</pubDate>
            <atom:updated>2022-06-29T06:27:28.735Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is the server?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*WmRxdlLSj8_MPinRqQ8ysg.png" /></figure><ul><li>A server is <strong>a computer program or device that provides a service to another computer program and its user, also known as the client</strong>. In a data center, the physical computer that a server program runs on is also frequently referred to as a server.</li></ul><h3>What Does a Web Server Do?</h3><ul><li>Web servers are also used for hosting websites and data for web applications. They can host single websites and multiple websites using virtualization.</li><li>So what does a web server do? It’s software or hardware (or both together) that stores and delivers content to a web browser at a basic level. The servers communicate with browsers using Hypertext Transfer Protocol (HTTP). Web servers can also support SMTP (Simple Mail Transfer Protocol) and FTP (File Transfer Protocol).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/0*MlZB2Z8lx0GW6nUV" /></figure><p><strong>What are Protocols?</strong></p><p>A protocol is a set of rules and guidelines for communicating data. Rules are defined for each step and process during communication between two or more computers. Networks have to follow these rules to successfully transmit data.</p><p>Examples :</p><ul><li>HTTP</li><li>FTP</li><li>SMTP</li><li>TCP</li></ul><h3>Server-side languages</h3><ul><li><a href="https://webplatform.github.io/docs/server-side_languages/perl">Perl</a></li><li><a href="https://webplatform.github.io/docs/server-side_languages/php">PHP</a></li><li><a href="https://webplatform.github.io/docs/server-side_languages/python">Python</a></li><li><a href="https://webplatform.github.io/docs/server-side_languages/ruby">Ruby</a></li><li><a href="https://webplatform.github.io/docs/server-side_languages/java">Java</a></li><li><a href="https://webplatform.github.io/docs/server-side_languages/javascript">JavaScript</a></li></ul><p><strong>Why do we need a Web Server to Build Applications?</strong></p><p>A web server is software and hardware that uses HTTP (Hypertext Transfer Protocol) and other protocols to respond to client requests made over the World Wide Web.</p><p>The main job of a web server is to display website content through storing, processing, and delivering web pages to users using HTTP.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87ce6f6ce220" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node JS]]></title>
            <link>https://medium.com/@aathavan4580/node-js-97416f8a269f?source=rss-54e1c7036746------2</link>
            <guid isPermaLink="false">https://medium.com/p/97416f8a269f</guid>
            <dc:creator><![CDATA[Aathavan Kovinthamoorthy]]></dc:creator>
            <pubDate>Wed, 29 Jun 2022 05:53:32 GMT</pubDate>
            <atom:updated>2022-06-29T05:53:32.160Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Node js is an open-source run-time environment.</li><li>Node js is not a programming language itself. it is a platform that runs javascript on the server side.</li><li>Node js = Runtime Environment + Javascript library</li><li>Its runs on various platforms. such as Windows, Linux, Mac os X, etc.</li><li>Node js has built-in libraries for web requests and responses so we don’t need a separate web server or other dependencies.</li></ul><h3><strong>How it’s work</strong></h3><ul><li><strong>Extremely fast: </strong>Node js is built on Google chrome’s V8 Javascript Engine, it&#39;s used for converting javascript code to machine code more quickly.</li><li><strong>I/O Non-Blocking and asynchronous: </strong>All APIs of Node js library is asynchronous i.e. non-blocking. so a Node js based server never waits for an API to return data. The server moves to the next API after calling it and a notifications mechanism of events of Node js helps the server to get a response from the previous API call. it is also a reason that it is very fast.</li><li><strong>Single-threaded: </strong>Node js follows a single-threaded model with event looping. Node js uses a single-threaded program and the same program can provide service to a much larger number of requests than traditional servers like the Apache HTTP server.</li><li><strong>No buffering:</strong> Node js cuts down the overall processing time while uploading audio and video files. Node js applications never buffer any data. These applications simply output the data chunks.</li></ul><p><strong>Modules</strong><br>●Node JS Modules to be the same as JavaScript libraries.<br> Node.js has a set of built-in modules that you can use in your<br>application without any further installation.<br>•In Node JS, you can easily create your own modules and include<br>in your application.<br>•If you want to include the inbuilt modules or your own<br>modules in your application then you use the require ( ) function<br>with the name of the module.</p><p><strong>NODE JS BUILT_IN MODULES</strong><br>*HTTP — To make Node.js act as an HTTP server<br>*HTTPS — To make Node.js act as an HTTPS server.<br>*fs — To handle the file system.<br>*events — To handle events<br>*path To handle file paths<br>*URL — To parse URL strings.</p><h3><strong>HOW DOES HTTP WORK?</strong></h3><ul><li>HTTP stands for Hyper Text Transfer Protocol<br>*WWW is about communication between web clients and servers<br>*It&#39;s done by sending HTTP requests and receiving HTTP Responses<br>Client<br>Cloud<br>Server<br>*A client ( a browser ) sends an HTTP request to the web<br>*A web server receives the request<br>*The server runs an application to process the request<br>* The server returns an HTTP response ( output ) to the browser<br>*The client ( the browser ) receives the response.</li></ul><h3><strong>HTTP MODULE</strong></h3><p>*<strong>require</strong><br>We use the required directive to load Node JS modules.<br>* <strong>Create Server</strong><br>An HTTP module is a built-in module of node js, which allows Node.js to<br>transfer data over the Hyper Text Transfer Protocol ( HTTP ).<br>The HTTP module uses the createServer ( ) method to create an HTTP<br>server.<br>*<strong>HTTP Header</strong><br>If the response from the HTTP server is supposed to be displayed as<br>HTML, you should include an HTTP header with the correct content type.<br>The first argument of the res. write head ( ) method is the status code, 200<br>means that all is OK, the second argument is an object containing the<br>response headers.<br>*<strong>Port Number</strong><br>An HTTP server that listens to server ports and gives a response back to the<br>client.<br>Activate Windows<br>The function passed into the HTTP.createServer ( ) method, will be to PC settings<br>executed when someone tries to access the computer on port 8080.</p><h3><strong>File System Module</strong></h3><p>*The Node JS file system module allows you to read, write, create,<br>update, delete, or rename the files on your computer.<br>*In the fs module, every method has synchronous and asynchronous.<br>*Asynchronous is better than synchronous because it never blocks<br>the program during execution like synchronous.<br>* Asynchronous methods take the last parameter as a completion<br>function callback.<br>*Inside the callback function, we pass the first parameter as err for<br>printing the error message when the file has an error.<br>* Import file system module using require keyword<br>var fs = require ( ‘ fs ‘ ) ;</p><p><strong>Read File</strong></p><p>*fs.readFile ( ) — Used to read the files from your computer.<br>*In Node JS , Read File have both synchronous and asynchronous<br>methods .<br>*Synchronous<br>var data = fs.readFileSync ( ‘ demo.txt ‘ ) ;<br>* Asynchronous Parameters<br>path — File name including path<br>callback — In this callback function which gets two arguments<br>( err, data )<br>fs.readFile ( ‘ demo.txt ‘ , function ( err , data ) ) ;</p><p><strong>Write File</strong><br><br>*fs.writeFile ( ) — If the file already exists then it replaces the file<br>content. If the file does not exist, a new file will be created and<br>specified content should be written.<br>path — File name including with path.<br>data — String to be written in the file.<br>callback — In this callback function gets single arguments<br>( err ) and returns an error in case of any error occurs.<br>fs.writeFile ( ‘ demo.txt “ , “ Hello world “ , function ( err ) ) ;</p><p><strong>Append File</strong></p><p>fs. append file ( ) — Append the specified content to a file. If the file<br>does not exist then it creates a file and appends the content.<br>path — File name including with path.<br>data — String to be appended in the file.<br>callback — In this callback function gets single arguments<br>( err ) and returns an error in case of any error occurs.<br>fs.append file ( ‘ demo.txt ‘ , ‘ Hello World ‘ , function ( err ) )</p><p><strong>Rename / Delete File<br></strong><br>*fs.rename ( ) — This method used to rename the file<br>Path 1- existing file name including path<br>Path 2- new file name including path<br>Callback — In this callback function gets one argument<br>( err ).<br><strong>fs.rename ( ‘ demo1.txt ‘ , ‘ demo2.txt ‘ , function ( err ) )</strong><br>*fs.unlink ( ) — This method used to delete a file<br>Path — This is a string having a file name including path.<br>Callback — This is the callback function that gets one argument<br>( err )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97416f8a269f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mongo DB]]></title>
            <link>https://medium.com/@aathavan4580/mongo-db-f998815d36dc?source=rss-54e1c7036746------2</link>
            <guid isPermaLink="false">https://medium.com/p/f998815d36dc</guid>
            <dc:creator><![CDATA[Aathavan Kovinthamoorthy]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 10:25:17 GMT</pubDate>
            <atom:updated>2022-06-10T02:54:02.136Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is NoSQL?</strong></p><p>NoSQL is also known as “not only SQL”. They are non-tabular databases. They store data in a different manner than SQL databases. These kinds of databases come in various types based on their data model, such as document, key-value, wide-column, and graph. They are more flexible, scalable, distributed databases. Most of the NoSQL databases are open source.</p><p>There are mainly four types of NoSQL database systems that exist. Each of them uses different types of data models.</p><ul><li>Document databases</li><li>Graph databases</li><li>Key-value stores</li><li>Wide-column stores</li></ul><p><strong>Advantages of NoSQL</strong></p><ul><li>The workload for interactive real-time web applications is simplified.</li><li>NoSQL caters to flexibility for data that is not normalized and requires flexible data models.</li><li>They provide great scalability for large data sets.</li><li>They are greatly suited for cloud applications, mobile, and big data requirements.</li></ul><p><strong>Disadvantages of NoSQL</strong></p><ul><li>NoSQL has its own querying languages. Which is in contrast to SOL.</li><li>As NoSQL databases are newer, there are no standards as relational databases.</li><li>There is no such schema as relational databases have.</li></ul><h3>What is MongoDB?</h3><p>MongoDB is a No SQL database. It is an open-source document database that uses a flexible schema to store data and is built on a horizontal scale-out architecture. MongoDB, which was founded in 2007, has a large development community all around the world.</p><p>Each entry in a MongoDB database is a document described in BSON, a binary representation of the data, rather than tables of rows or columns like SQL databases. This data can then be retrieved in JSON format by applications.</p><p>Document databases are extremely adaptable, allowing for changes in document structure and the storage of partially completed documents. Others can be embedded in one document. Fields in a document are similar to columns in a SQL database in that they can be indexed to improve search performance.</p><p>MongoDB has been developed on a scale-out architecture since its inception, which allows many tiny machines to collaborate to create fast systems and process large volumes of data.</p><p>MongoDB has always prioritized delivering an outstanding developer experience, which, in addition to its other features, has made it a favorite among developers worldwide for a wide range of applications.</p><h3>Why Use MongoDB?</h3><p>Document databases are extremely adaptable, allowing for changes in document structure and the storage of partially completed documents. Others can be embedded in one document. Fields in a document are similar to columns in a SQL database in that they can be indexed to improve search performance.</p><p>MongoDB has been developed on a scale-out architecture since its inception, which allows many tiny machines to collaborate to create fast systems and process large volumes of data.</p><p>MongoDB is based on a scale-out architecture, which has grown popular among developers of all types for creating scalable systems with changing data schemas.</p><p>MongoDB makes it simple for developers to store structured and unstructured data as a document database. It makes use of a JSON-like format.</p><h3>Advantages of MongoDB?</h3><p>MongoDB has become one of the most popular databases in the world because it makes it simple for developers to store, manage, and retrieve data while using most programming languages to create apps.</p><p>Let’s have a look at the benefits of MongoDB for developers to see if it’s perfect for you. Also, have a look at the top five MongoDB features.</p><p><strong>Differences between RDBMS and MongoDB</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/0*3Oiphzf08iXvhzxq.png" /></figure><h3>*starting server</h3><p>sudo mongod</p><h3>*starting clint</h3><p>sudo mongo</p><h3>*Show All Databases</h3><p>show dbs</p><h3><strong>*Select Database or create database to Work With</strong></h3><p>use databaseName</p><h3>*List Down Collections, Users, Roles, etc.</h3><p>//<br>// List down collections of the current database<br>//<br>show collections;<br>db.getCollectionNames();<br>//<br>// List down all the users of current database<br>//<br>show users;<br>db.getUsers();<br>//<br>// List down all the roles<br>//<br>show roles</p><h3>*Create a Collection</h3><p>db.createCollection(“collectionName”);</p><h3><strong>*Insert</strong></h3><p><strong>db.collection.insertOne() -&gt;</strong>This operation is used when we need to insert a single document in the collection.</p><p><strong>db.collection.insertMany()-&gt;</strong>This operation is used when we need to insert multiple documents in the collection.</p><h3><strong>*Update</strong></h3><p>db.collection.updateOne() -&gt;Updates a single field in the document where the provided criteria or filter meets the condition. Updating a field will not delete the existing one, but will create a new field that will be added to the document.</p><p>db.collection.updateMany()-&gt;This command will update all fields in the document where the provided criteria or filter matches the condition.</p><p>db.collection.replaceOne()-&gt;This command replaces the whole document. It will replace the old fields and values with new ones.</p><h3><strong>*Delete Operations</strong></h3><p><strong>db.collection.deleteOne()-&gt;</strong>Deletes just one document from the collection that meets the given criteria</p><p><strong>db.collection.deleteMany()-&gt;</strong>Deletes multiple document from the collection that meet the given criteria</p><p><strong>db.collection.remove()-&gt;</strong>Deletes one or multiple documents that meet the given criteria</p><h3><strong>*Read Operations</strong></h3><p>db.collection.find()-&gt;You will be able to define query filters or criteria that pinpoint the documents to be returned.</p><p><strong>Conclusion</strong></p><p>By using this article, you learned NoSQL and the notation of CRUD operations using MongoDB and the characteristics of MongoDB.</p><p>Thank you so much for reading my article and I hope you have a better idea from this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f998815d36dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database]]></title>
            <link>https://medium.com/@aathavan4580/database-be39e6509694?source=rss-54e1c7036746------2</link>
            <guid isPermaLink="false">https://medium.com/p/be39e6509694</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Aathavan Kovinthamoorthy]]></dc:creator>
            <pubDate>Mon, 06 Jun 2022 02:53:12 GMT</pubDate>
            <atom:updated>2022-06-09T03:09:20.255Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Data?</h3><p>In simple words, data can be facts related to any object in consideration. For example, your name, age, height, weight, etc. are some data related to you. A picture, image, file, pdf, etc. can also be considered data.</p><h3>What is Database?</h3><p>A database is a systematic collection of data. They support electronic storage and manipulation of data. Databases make data management easy.</p><p>Let us discuss a database example: An online telephone directory uses a database to store data of people, phone numbers, and other contact details. Your electricity service provider uses a database to manage billing, client-related issues, handle fault data, etc.</p><p>Let us also consider Facebook. It needs to store, manipulate, and present data related to members, their friends, member activities, messages, advertisements, and a lot more. We can provide a countless number of examples for the usage of databases.</p><h3>What are the components of a database?</h3><p>While the different types of databases vary in schema, data structure and data types most suited to them, they are all comprised of the same five basic components.</p><ol><li><strong>Hardware. </strong>This is the physical device that database software runs on. Database hardware includes computers, servers and hard drives.</li><li><strong>Software. </strong>Database software or application gives users control of the database. Database management system (DBMS) software is used to manage and control databases.</li><li><strong>Data. </strong>This is the raw information that the database stores. <a href="https://searchsqlserver.techtarget.com/definition/database-administrator">Database administrators</a> organize the data to make it more meaningful.</li><li><strong>Data access language. </strong>This is the programming language that controls the database. The programming language and the DBMS must work together. One of the most common database languages is SQL.</li><li><strong>Procedures. </strong>These rules determine how the database works and how it handles the data.</li></ol><p><strong>Database Management System (DBMS)</strong></p><p>We often mistakenly say our database is Oracle, MySQL, SQL Server, MongoDB. But, they aren’t databases, they are database management systems (DBMS).</p><p>The DBMS is the software that would be installed on your personal computer or on a server, then you would use it to manage one or more databases.</p><p>The database has your actual data and the rules about that data, while the DBMS is the program that surrounds and manages your actual data, and it enforces the rules you specified on your data. The rules for example could be the type of the data, like integer or string, or the relationship between them.</p><p>In practice, it’s very common to have multiple databases. The database that deals with your order and customer information might be completely independent of your database that deals with human resource information. And in many organizations, you don’t just have multiple databases but multiple DBMS. Sometimes it’s because one DBMS is better at something than the other.</p><p><strong>There are different DBMS, and they are categorized under:</strong></p><ul><li>Relational Database Management Systems</li><li>Hierarchical Database Systems</li><li>Network Database Systems</li><li>Object-Oriented Database Systems</li><li>NoSQL Database Systems</li></ul><h3><strong>Conclusions</strong></h3><p>In conclusion, a database is a far more efficient mechanism to store and organize data than spreadsheets, it allows for a centralized facility that can easily be modified and quickly shared among multiple users. Having a web-based front end removes the requirement of users having to understand and use a database directly, and allows users to connect from anywhere with an internet connection and a basic web browser. It also allows the possibility of queries to obtain information for various surveys.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be39e6509694" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>