<?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 Abhishek Tekalkar on Medium]]></title>
        <description><![CDATA[Stories by Abhishek Tekalkar on Medium]]></description>
        <link>https://medium.com/@abhitekalkar21?source=rss-77841f38e94b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dJqg0UY1fFrGQiIl</url>
            <title>Stories by Abhishek Tekalkar on Medium</title>
            <link>https://medium.com/@abhitekalkar21?source=rss-77841f38e94b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:27:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhitekalkar21/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[Comparing DynamoDB and MongoDB: Features, Use Cases, and Performance]]></title>
            <link>https://medium.com/@abhitekalkar21/comparing-dynamodb-and-mongodb-features-use-cases-and-performance-91f8a961b2cf?source=rss-77841f38e94b------2</link>
            <guid isPermaLink="false">https://medium.com/p/91f8a961b2cf</guid>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[application]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Abhishek Tekalkar]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 03:46:03 GMT</pubDate>
            <atom:updated>2023-07-01T03:46:03.268Z</atom:updated>
            <content:encoded><![CDATA[<p>Certainly! Let’s compare DynamoDB and MongoDB, two popular NoSQL databases, in terms of their features and use cases:</p><p><strong>1. Data Model:</strong><br> — DynamoDB: DynamoDB is a key-value store with optional secondary indexes. It doesn’t enforce a specific schema, allowing flexibility in data structures.<br> — MongoDB: MongoDB is a document database that stores data in flexible, JSON-like documents. It supports a rich document model with nested structures and arrays.</p><p><strong>2. Scalability and Performance:</strong><br> — DynamoDB: DynamoDB is a fully managed service provided by Amazon Web Services (AWS) and is designed for automatic scaling and high-performance applications. It offers seamless scaling, automatic partitioning, and global replication.<br> — MongoDB: MongoDB provides horizontal scalability through sharding, allowing distribution of data across multiple nodes. It also supports replica sets for high availability and read scaling.</p><p><strong>3. Querying:</strong><br> — DynamoDB: DynamoDB provides fast key-value access and efficient queries based on the primary key. Secondary indexes can be created for additional query flexibility.<br> — MongoDB: MongoDB supports rich queries, including equality, range, and text searches. It also provides powerful aggregation framework for complex data manipulations and analysis.</p><p><strong>4. Data Consistency:</strong><br> — DynamoDB: DynamoDB offers two consistency models: eventual consistency and strong consistency. Eventual consistency provides higher availability, while strong consistency ensures immediate consistency across all replicas.<br> — MongoDB: MongoDB supports configurable consistency, allowing developers to choose between strong consistency or eventual consistency based on their application’s requirements.</p><p><strong>5. Deployment and Management:</strong><br> — DynamoDB: DynamoDB is a fully managed service, which means AWS handles infrastructure provisioning, backups, and software updates.<br> — MongoDB: MongoDB can be self-hosted on-premises or deployed in the cloud. It requires manual management of infrastructure, backups, and upgrades, although cloud providers like MongoDB Atlas offer managed services.</p><p><strong>6. Use Cases:</strong><br> — DynamoDB: DynamoDB excels in applications that require low-latency, high-scale read and write operations, such as real-time analytics, gaming leaderboards, and high-traffic applications.<br> — MongoDB: MongoDB is suitable for a wide range of applications, including content management systems, e-commerce platforms, data analytics, and document-centric use cases.</p><p>It’s important to note that the suitability of DynamoDB or MongoDB depends on the specific requirements and characteristics of your application. Consider factors such as scalability, performance, data model flexibility, and ease of management when choosing between them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91f8a961b2cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Essential Skills for a Successful Backend Developer: A Comprehensive Guide”]]></title>
            <link>https://medium.com/@abhitekalkar21/essential-skills-for-a-successful-backend-developer-a-comprehensive-guide-e494d75f4200?source=rss-77841f38e94b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e494d75f4200</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[Abhishek Tekalkar]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 06:02:22 GMT</pubDate>
            <atom:updated>2023-06-30T06:02:22.391Z</atom:updated>
            <content:encoded><![CDATA[<p>To become a successful<strong> backend developer</strong>, you’ll need to acquire a combination of technical skills and soft skills. Here are some key skills that can help you excel in this role:</p><p><strong>1. Programming Languages:</strong> Strong proficiency in at least one backend programming language is essential. Popular choices include Python, Java, Ruby, C#, and Node.js. It’s important to be comfortable with the syntax, data structures, algorithms, and concepts specific to your chosen language.</p><p><strong>2. Web Frameworks:</strong> Familiarity with backend web frameworks is crucial for efficient development. Examples include Django (Python), Spring (Java), Ruby on Rails, .NET (C#), and Express.js (Node.js). These frameworks provide tools and libraries to streamline the development process.</p><p><strong>3. Databases and SQL: </strong>Understanding databases and SQL (Structured Query Language) is vital for storing, retrieving, and managing data. You should be familiar with relational databases like MySQL, PostgreSQL, or Oracle, as well as NoSQL databases like MongoDB or Redis.</p><p><strong>4. Web APIs:</strong> Backend developers often create and consume web APIs (Application Programming Interfaces) to facilitate communication between different systems or services. You should have knowledge of RESTful API design principles and experience with tools like Swagger or Postman.</p><p><strong>5. Version Control:</strong> Proficiency in using version control systems like Git is crucial for collaboration and managing code repositories. Learn how to create branches, merge code, resolve conflicts, and work effectively in a team using Git.</p><p><strong>6. Server Management and Deployment: </strong>Understanding server infrastructure, cloud platforms (e.g., AWS, Azure, Google Cloud), and deployment methodologies (e.g., Docker, Kubernetes) is essential. You should know how to deploy and manage applications on servers or cloud environments.</p><p><strong>7. Security Principles:</strong> Backend developers must be mindful of security considerations. Knowledge of secure coding practices, authentication and authorization mechanisms, and protection against common vulnerabilities (e.g., cross-site scripting, SQL injection) is important.</p><p><strong>8. Testing and Debugging:</strong> Proficiency in writing unit tests, integration tests, and debugging code is crucial for ensuring the reliability and stability of backend applications. Familiarize yourself with testing frameworks and tools like pytest, JUnit, or Mocha.</p><p><strong>9. Problem-Solving and Analytical Thinking:</strong> Backend development often involves solving complex problems and optimizing code performance. Strong problem-solving skills, analytical thinking, and the ability to break down complex tasks into smaller, manageable components are invaluable.</p><p><strong>10. Communication and Collaboration:</strong> Effective communication and collaboration skills are essential when working with cross-functional teams, such as front-end developers, designers, and project managers. Clear communication ensures a shared understanding of requirements and smooth project execution.</p><p>Remember that backend development is a constantly evolving field, so staying updated with new technologies, frameworks, and industry best practices is crucial for long-term success. Continuous learning and a willingness to adapt to new challenges are key traits of a successful backend developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e494d75f4200" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a RESTful API with Node.js: A Step-by-Step Guide with Example]]></title>
            <link>https://medium.com/@abhitekalkar21/creating-a-restful-api-with-node-js-a-step-by-step-guide-with-example-6951efba85d7?source=rss-77841f38e94b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6951efba85d7</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[node-js-tutorial]]></category>
            <dc:creator><![CDATA[Abhishek Tekalkar]]></dc:creator>
            <pubDate>Thu, 29 Jun 2023 15:36:24 GMT</pubDate>
            <atom:updated>2023-06-29T15:38:36.956Z</atom:updated>
            <content:encoded><![CDATA[<p>REST (Representational State Transfer) is an architectural style for building web services that allows clients to communicate with servers using HTTP methods such as <strong>GET, POST, PUT,</strong> and <strong>DELETE</strong>. Node.js is a popular JavaScript runtime that allows you to build scalable and efficient server-side applications.</p><p>For the above explanation, you will need the following <strong>tools</strong>:</p><p><strong>1. Node.js: </strong>You’ll need to have Node.js installed on your machine to run the server and execute the JavaScript code. You can download Node.js from the official website: <a href="https://nodejs.org/">https://nodejs.org/</a></p><p><strong>2. Terminal:</strong> A terminal or command prompt is required to execute commands and run the Node.js server.</p><p><strong>3. Text Editor:</strong> You’ll need a text editor or an integrated development environment (IDE) to write your Node.js code. Some popular choices include Visual Studio Code, Atom, Sublime Text, or WebStorm.</p><p><strong>4. cURL:</strong> cURL is a command-line tool for making HTTP requests. It comes pre-installed on many UNIX-based systems, but you can also download it for Windows. You can find the installation instructions for your specific operating system here: <a href="https://curl.se/download.html">https://curl.se/download.html</a></p><p>Alternatively, you can use other HTTP client tools like Postman (<a href="https://www.postman.com/">https://www.postman.com/</a>) or Insomnia (<a href="https://insomnia.rest/">https://insomnia.rest/</a>). These tools provide a user-friendly graphical interface for sending HTTP requests and inspecting responses. They can be particularly helpful when working with more complex APIs or when you prefer a visual representation of the requests and responses.</p><p>To create a<strong> RESTful API</strong> in Node.js, you’ll need to follow these steps:</p><p>Step 1: Setting up the project Create a new directory for your project and initialize a new Node.js project using npm (Node Package Manager).</p><pre>mkdir rest-api<br>cd rest-api<br>npm init</pre><p>Follow the prompts to initialize your project and install the required dependencies.</p><p>Step 2: Installing dependencies You’ll need to install Express.js, a minimal and flexible Node.js framework for building web applications.</p><pre>npm install express</pre><p>Step 3: Creating the server Create a new file called server.js and import the required dependencies.</p><pre>const express = require(&#39;express&#39;);<br>const app = express();<br>const port = 3000;<br><br>app.use(express.json());<br><br>app.listen(port, () =&gt; {<br>  console.log(`Server is running on port ${port}`);<br>});</pre><p>In the code above, we import Express, create an instance of the application, and set the port to 3000. We also add middleware to parse incoming JSON requests.</p><p>Step 4: Defining routes Next, we’ll define the routes for our API. Let’s create a simple example for managing a list of books.</p><pre>let books = [];<br><br>app.get(&#39;/books&#39;, (req, res) =&gt; {<br>  res.json(books);<br>});<br><br>app.post(&#39;/books&#39;, (req, res) =&gt; {<br>  const { title, author } = req.body;<br>  const newBook = { title, author };<br>  books.push(newBook);<br>  res.status(201).json(newBook);<br>});<br><br>app.put(&#39;/books/:id&#39;, (req, res) =&gt; {<br>  const { id } = req.params;<br>  const { title, author } = req.body;<br>  const book = books.find((b) =&gt; b.id === id);<br>  if (!book) {<br>    res.status(404).json({ error: &#39;Book not found&#39; });<br>  } else {<br>    book.title = title;<br>    book.author = author;<br>    res.json(book);<br>  }<br>});<br><br>app.delete(&#39;/books/:id&#39;, (req, res) =&gt; {<br>  const { id } = req.params;<br>  books = books.filter((b) =&gt; b.id !== id);<br>  res.sendStatus(204);<br>});</pre><p>In the code above, we define four routes:</p><ul><li>The GET /books route returns the list of books.</li><li>The POST /books route creates a new book and adds it to the list.</li><li>The PUT /books/:id route updates an existing book by its ID.</li><li>The DELETE /books/:id route deletes a book by its ID.</li></ul><p>Step 5: Testing the API To test the API, you can use a tool like cURL or Postman. Here’s an example using cURL:</p><p>Step 5 is about testing the API endpoints you created in Step 4 using a tool like cURL or Postman. These tools allow you to send HTTP requests and receive responses from your API.</p><p>Let’s go through the process using cURL, a command-line tool for making HTTP requests.</p><ol><li>Make sure your server is running. If not, start it by running the following command in your project’s root directory:</li></ol><pre>node server.js</pre><p>Open a new terminal window and execute the following command to get all books from your API:</p><pre>curl -i http://localhost:3000/books</pre><p>The -i flag is used to include the response headers in the output. You should receive an empty array as the response since you haven&#39;t added any books yet.</p><ol><li>Now, let’s add a book to the API using the POST /books endpoint. Execute the following command:</li></ol><pre>curl -i -H &quot;Content-Type: application/json&quot; -X POST -d &#39;{&quot;title&quot;:&quot;The Great Gatsby&quot;,&quot;author&quot;:&quot;F. Scott Fitzgerald&quot;}&#39; http://localhost:3000/books</pre><p>This command sends a POST request to the /books endpoint with the book data provided in the request body.</p><p>You should receive a response with a 201 Created status code and the book information in the response body.</p><ol><li>To verify that the book was added successfully, retrieve all books again by executing the following command:</li></ol><pre>curl -i http://localhost:3000/books</pre><p>This time, you should receive a response with a single book in the array.</p><ol><li>Let’s update the book we just added using the PUT /books/:id endpoint. Replace :id with the actual ID of the book you want to update. Execute the following command:</li></ol><pre>curl -i -H &quot;Content-Type: application/json&quot; -X PUT -d &#39;{&quot;title&quot;:&quot;The Great Gatsby&quot;,&quot;author&quot;:&quot;F. Scott Fitzgerald&quot;}&#39; http://localhost:3000/books/:id</pre><p>Make sure to replace :id with the ID of the book you want to update.</p><p>You should receive a response with the updated book information.</p><ol><li>Finally, let’s delete the book we added using the DELETE /books/:id endpoint. Replace :id with the ID of the book you want to delete. Execute the following command:</li></ol><pre>curl -i -X DELETE http://localhost:3000/books/:id</pre><p>Again, make sure to replace :id with the ID of the book you want to delete.</p><p>You should receive a response with a 204 No Content status code, indicating that the book was successfully deleted.</p><p>That’s it! You have now tested your RESTful API endpoints using cURL. You can repeat these steps with different data to further explore the functionality of your API.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6951efba85d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are the Middlewares in Nodejs?]]></title>
            <link>https://medium.com/@abhitekalkar21/what-are-the-middlewares-in-nodejs-c6d5575bca14?source=rss-77841f38e94b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6d5575bca14</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[middleware]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Abhishek Tekalkar]]></dc:creator>
            <pubDate>Sat, 10 Dec 2022 17:55:09 GMT</pubDate>
            <atom:updated>2022-12-10T17:55:09.800Z</atom:updated>
            <content:encoded><![CDATA[<p>all about middlewares in node js and express js</p><p>Middleware means anything you put in the middle of one layer of the software and another. Each middleware has access to the HTTP request and response for each route (or path) it’s attached to. middleware can either terminate the HTTP request or pass it on to another middleware function using next . \</p><h4>There are a total of five types of middleware in nodejs are follows:-</h4><p>1. Application-level middleware “<strong>app.use</strong>”</p><p>2. Router level middleware “<strong>router.use</strong>”</p><p>3. Built-in middleware “<strong>express.static,express.json,express.urlencoded</strong>”</p><p>4. Error handling middleware “<strong>app.use(err,req,res,next)</strong>”</p><p>5. Third party middleware “<strong>bodyparser,cookieparser</strong>”</p><p>Now we will understand every Middleware with their use case :-</p><h3><strong>Application level middleware :-</strong></h3><p>Bind application-level middleware to an instance of the <a href="https://expressjs.com/en/4x/api.html#app">app object</a> by using the app.use() and app.METHOD() functions, where METHOD is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.</p><p>Application has the method <em>listen</em> and some other which router doesn’t have. Application “does” the main thing, while route only groups some routes, and provides encapsulation (see Manohar’s answer with example). Routes in router don’t necessarily know in advance what will be its full route.</p><h3>Router level middleware:-</h3><p>Router-level middleware works in the same way as application-level middleware, except it is bound to an instance of express.Router().</p><p>const router = express.Router()</p><p>Load router-level middleware by using the router.use() and router.METHOD() functions.</p><h3>Error Handling Middleware :-</h3><p>Express JS comes with default error handling params, defines error-handling middleware functions in the same way as other middleware functions, except error-handling functions, have four arguments instead of three</p><h3>Third-party Middlewares :-</h3><p>In some cases, we will be adding some extra features to our backend</p><p>Install the Node.js module for the required functionality, then load it in your app at the application level or at the router level.</p><p>Example: <strong>body-parser</strong></p><p>All middlewares will populate the req.body property with the parsed body when the Content-Type request header.</p><p><strong>app.use({urlencoded:false})</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6d5575bca14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sending HTML files to the server using Node.js and Express.js]]></title>
            <link>https://medium.com/@abhitekalkar21/sending-html-files-to-the-server-using-node-js-and-express-js-54f0bd6d1016?source=rss-77841f38e94b------2</link>
            <guid isPermaLink="false">https://medium.com/p/54f0bd6d1016</guid>
            <category><![CDATA[website-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Abhishek Tekalkar]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 16:46:22 GMT</pubDate>
            <atom:updated>2022-12-09T16:46:22.071Z</atom:updated>
            <content:encoded><![CDATA[<p>You will discover how to use <strong>res. send the file ()</strong> in this tutorial.</p><h4>Prerequisites:-</h4><p>To complete this tutorial, you will need the following:</p><ul><li>Node.js installed locally, which you can do by following <a href="https://www.digitalocean.com/community/tutorial_series/how-to-install-node-js-and-create-a-local-development-environment">How to Install Node.js and Create a Local Development Environment</a>.</li></ul><h4>Step 1 — Setting up the project</h4><p>This tutorial was verified with Node v16.17.0, npm v8.19.1, and express v4.18.2.</p><p>Initialize a new npm project:-</p><pre>npm init</pre><p>When you are creating a node project, you need to have package.json. npm init is a convenient way of constructing your package.json; you may need to run it every time you are starting a new project.</p><h4><strong>Step 2 — Installing Express.js</strong></h4><pre>npm install express</pre><p>Firstly, you have to install the express framework to create a web application using a Node terminal. Use the following command to install the express framework.</p><p>You currently have a new project created for Express.</p><h4><strong>Step 3 — Giving a port number</strong></h4><p>Now Make a new server.js file and open your code editor in it:</p><pre>const express = require(&#39;express&#39;);<br>const app = express();<br><br>app.listen(3000);</pre><p>Now your server is running on <a href="http://localhost:3000/">http://localhost:3000/</a>. After this, we will optimize this code in pure form.</p><h4><strong>Step 4 — Setting env variable</strong></h4><pre>const express = require(&#39;express&#39;);<br>const app = express();<br>const PORT = process.env.PORT || 3000;<br><br>app.listen(&#39;3000&#39;,()=&gt;{<br><br>    console.log(`server is listening on port ${3000}`);<br><br>})</pre><p>Here we added one sentence “ const PORT = process.env.PORT || 3000; ” using this we can available a port from <strong>.env </strong>variable if it is set in <strong>.env</strong> file(we will learn about .env variable in the upcoming blogs, so stay tuned.) if port no 3000 is busy then express will use port no which set in .env file.</p><h4>Step 5 — using res.sendfile</h4><p>Now we will deliver the HTML file to the express server, and for that first create an HTML file.</p><pre>//server.js file<br>const express = require(&#39;express&#39;);<br>const app = express();<br>const PORT = process.env.PORT || 3000;<br>const path = require(&#39;path&#39;)<br><br><br><br>app.get(&#39;/&#39;,(req,res)=&gt;{<br>    res.sendFile(path.resolve(__dirname) +&#39;/index.html&#39;);<br>});<br> <br>app.listen(&#39;3000&#39;,()=&gt;{<br><br>    console.log(`server is listening on port ${3000}`);<br><br>}<br>)</pre><pre>//index.html file<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>    &lt;head&gt;<br>        &lt;title&gt;Abhi&lt;/title&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;h1&gt;hello Mern developers&lt;/h1&gt;<br>    &lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>the path</strong> is Node.js native utility module.</p><p><a href="https://nodejs.org/api/path.html">https://nodejs.org/api/path.html</a></p><p><strong>require</strong> is Node.js global function that allows you to extract contents from the <strong>module.exports</strong> object inside some file.</p><p>Unlike regular NPM modules, you don’t need to install it because it’s already inside Node.js</p><p>In your example you use <strong>path.resolve</strong> method which creates a proper string representing the path to your file.</p><p>The <strong>app.get()</strong> function routes the <strong>HTTP GET</strong> Requests to the path which is being specified with the specified callback functions. It is intended for binding the middleware to your application.</p><p>Code output:-</p><figure><img alt="code output" src="https://cdn-images-1.medium.com/max/423/1*fZ4TKyZmhQ1Jt_gqSKvYtw.png" /></figure><p>So here, we Successfully delivered the Html file to the express server using node js and express.js.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54f0bd6d1016" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>