<?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 Naimurrahman on Medium]]></title>
        <description><![CDATA[Stories by Naimurrahman on Medium]]></description>
        <link>https://medium.com/@naimurrahman1046?source=rss-4212b07969d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WPRT4yPS55Qw_r3tjPwndg.jpeg</url>
            <title>Stories by Naimurrahman on Medium</title>
            <link>https://medium.com/@naimurrahman1046?source=rss-4212b07969d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:27:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@naimurrahman1046/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[Choosing the Right Data Store for Modern Applications ]]></title>
            <link>https://medium.com/@naimurrahman1046/choosing-the-right-data-store-for-modern-applications-cf6be0e72722?source=rss-4212b07969d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf6be0e72722</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Naimurrahman]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 04:28:40 GMT</pubDate>
            <atom:updated>2026-01-28T04:28:40.756Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-driven world, storing and retrieving data efficiently is a critical part of application design. The way data is managed directly affects application performance, scalability, and user experience. With so many data storage options available, choosing the right one is an important architectural decision and should be done thoughtfully and clearly.</p><p>Before diving into selection, it is essential to understand the basic concept of a data store.</p><p>What Is a Data Store?</p><p>A data store is a place used to store, manage, and retrieve data. While databases are the most common form of data stores, they are not the only ones. Data stores can also hold raw files such as text, audio, images, videos, logs, and emails.</p><p>In this article, we will focus on some of the most widely used types of data stores:</p><ul><li>File-Based Data Stores</li><li>Relational Databases (RDBMS)</li><li>NoSQL Databases</li><li>In-Memory Databases</li><li>Object Storage</li></ul><p>1. File-Based Data Stores</p><p>File-based data stores save data in files such as CSV, JSON, or XML. They are simple, easy to understand, and quick to implement.</p><p>Use cases:</p><ul><li>Small applications</li><li>Configuration files</li><li>Lightweight data storage</li></ul><p>Limitations:</p><p>They become slow and inefficient for large datasets and lack advanced querying and concurrency support.</p><p>2. Relational Databases (RDBMS)</p><p>Relational databases store data in tables with predefined schemas and relationships. They are highly structured and ensure strong consistency through ACID properties.</p><p>Best used when:</p><ul><li>Data is structured and well-defined</li><li>Strong consistency and accuracy are required</li></ul><p>Common applications:</p><ul><li>Banking and financial systems</li><li>Payment gateways</li><li>Accounting software</li><li>ERP systems</li><li>HR management systems</li></ul><p>Challenge:</p><p>While very reliable, relational databases can be difficult to scale horizontally for massive workloads.</p><p>3. NoSQL Databases</p><p>NoSQL databases store data in non-tabular formats such as documents, key-value pairs, graphs, or column-family models. They offer high flexibility and scalability.</p><p>Best used when:</p><ul><li>Data structure changes frequently</li><li>Applications need to scale across distributed systems</li><li>High read/write throughput is required</li></ul><p>Common use cases:</p><ul><li>JSON documents</li><li>Logs and event data</li><li>Social media posts and comments</li><li>IoT systems (sensor data)</li><li>Real-time monitoring</li><li>Online gaming leaderboards</li></ul><p>Trade-off:</p><p>They can be more complex to design and may sacrifice strong consistency for scalability.</p><p>4. In-Memory Databases</p><p>In-memory databases store data directly in RAM instead of disk, making them extremely fast.</p><p>Used for:</p><ul><li>Real-time analytics</li><li>Caching</li><li>Session management</li><li>High-performance applications</li></ul><p>Because memory is volatile and expensive, it is often used alongside other storage systems rather than as a primary database.</p><p>5. Object Storage</p><p>Object storage stores data as individual objects, each containing:</p><ul><li>The data itself</li><li>Metadata</li><li>A unique identifier</li></ul><p>Unlike file systems, object storage uses a flat structure, making it highly scalable.</p><p>Ideal for storing:</p><ul><li>Images and videos</li><li>Documents</li><li>Backups and archives</li><li>Logs and multimedia files</li></ul><p>Popular platforms:</p><ul><li>Amazon S3</li><li>Google Cloud Storage</li><li>Azure Blob Storage</li></ul><p>Used for:</p><ul><li>Backup and archiving</li><li>Content delivery</li><li>Static website assets</li><li>Big data analytics</li><li>Data lakes</li></ul><p>Limitation:</p><p>Not suitable for low-latency transactional systems or applications requiring frequent updates.</p><p>How to Select the Right Data Store for Your Application (With Real-Life Perspective)</p><p>Choosing the right data store depends on several factors:</p><ul><li>Type of data (structured vs unstructured)</li><li>Scalability requirements</li><li>Performance needs</li><li>Consistency and reliability</li><li>Cost and maintenance</li></ul><p>In real-world applications, a single data store is often not enough. Modern systems commonly use a combination of databases, such as:</p><ul><li>RDBMS for transactions</li><li>NoSQL for scalability</li><li>In-memory stores for speed</li><li>Object storage for large files</li></ul><p>The key is understanding your application requirements and designing a data architecture that is both scalable and maintainable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwlQ6-Auc0BC49xFSofZ9A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf6be0e72722" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Webhooks: The Push Mechanism That Powers Real-Time Communication]]></title>
            <link>https://medium.com/@naimurrahman1046/webhooks-the-push-mechanism-that-powers-real-time-communication-179db84d8a15?source=rss-4212b07969d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/179db84d8a15</guid>
            <dc:creator><![CDATA[Naimurrahman]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 15:35:11 GMT</pubDate>
            <atom:updated>2025-11-28T15:35:11.879Z</atom:updated>
            <content:encoded><![CDATA[<p>What is a Webhook?<br>A webhook is a method that enables interaction between web-based applications using custom callbacks. Essentially, it allows one system to automatically notify another system when a specific event occurs, eliminating the need for constant polling.</p><p>For example, consider an e-commerce system integrated with a payment gateway:<br> → A customer completes a payment.<br> → The payment system instantly notifies your e-commerce system that the payment has been successful.<br> → This notification is sent via a webhook, ensuring real-time updates without your system having to constantly check for the payment status.</p><p>Key Points About Webhooks:<br>~ Designated URLs: The receiving system must provide a URL endpoint to get event notifications.<br>~ Efficient Communication: Webhooks reduce unnecessary load because HTTP requests are made only when events happen.<br>~ POST Requests: Data is typically sent via HTTP POST requests.<br>~ Event Handling: A single webhook can manage multiple event types using event identifiers.</p><p>Now there are a question arises. What is the difference between webhook and API?</p><p>Webhooks (push model) and traditional APIs (polling model) differ in data delivery. Webhooks push updates instantly when an event occurs, ideal for real-time scenarios like payment confirmations, reducing requests and overhead. Polling APIs require repeated requests at intervals, which can be inefficient, delayed, and resource-heavy. Webhooks are fast but risk data loss if endpoints are down (unless queued), while polling provides control over timing and data retrieval at the cost of latency and higher load.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6zkNG4ylnJ8Vvbfg9j9zg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=179db84d8a15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Middleware in ASP.NET Core]]></title>
            <link>https://medium.com/@naimurrahman1046/understanding-middleware-in-asp-net-core-655bc54b76f4?source=rss-4212b07969d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/655bc54b76f4</guid>
            <category><![CDATA[aspnet-web-api]]></category>
            <dc:creator><![CDATA[Naimurrahman]]></dc:creator>
            <pubDate>Tue, 25 Nov 2025 16:29:05 GMT</pubDate>
            <atom:updated>2025-11-25T16:29:05.526Z</atom:updated>
            <content:encoded><![CDATA[<p>Middleware is one of the most important concepts in <a href="http://asp.net/">ASP.NET</a> Core. If you understand how middleware works, you can understand how every request is processed inside your API.</p><p>🚀 What Is Middleware?</p><p>Middleware is a piece of code that sits in the application pipeline and processes incoming requests and outgoing responses. When an HTTP request comes into your API:<br>- It passes through a sequence of middleware components<br>- Each middleware can:<br> ~ Process the request<br> ~ Modify the request or response<br> ~ Call the next middleware in the pipeline<br> ~ OR stop the pipeline early (short-circuit)<br><a href="http://asp.net/">ASP.NET</a> Core contains many built-in middleware (added through NuGet packages), but you can also create custom middleware for your own logic.</p><p>🧩 Understanding <a href="http://app.run/">app.Run</a>(), app.Use(), and <a href="http://app.map/">app.Map</a>()</p><p>🟥 <a href="http://app.run/">app.Run</a>() — Terminal Middleware<br><a href="http://app.run/">app.Run</a>() adds a terminal middleware to the pipeline.<br> 1. It does not call the next middleware<br> 2. It should be placed at the end of the pipeline<br> 3. Once executed, the request pipeline ends there<br>If <a href="http://app.run/">app.Run</a>() executes, no other middleware after it will run.</p><p>🟦 app.Use() — Middleware With Next Delegate<br>app.Use() is the most commonly used method for adding middleware.<br> 1. It can call the next middleware using the next() delegate<br> 2. It can also decide not to call the next middleware → short-circuit<br> 3. Allows pre-processing and post-processing</p><p>🟩 <a href="http://app.map/">app.Map</a>() — Branching the Pipeline<br><a href="http://app.map/">app.Map</a>() is used to create branches in the pipeline based on a request path.<br>If the incoming request path matches, the branch executes.<br>If the request is:<br>- /admin → this branch runs<br>- Anything else → request continues in the main pipeline<br><a href="http://app.map/">app.Map</a>() is perfect for route-specific middleware.</p><p>References <br><a href="https://lnkd.in/g6DtsWwj">https://lnkd.in/g6DtsWwj</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wVWGC3owm0aGqYiQYoduKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*ZsPneKnAt4pKfCFAYZ4eWQ.png" /><figcaption>Output</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=655bc54b76f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding REST API & HTTP Methods in ASP.NET — A Complete Beginner-Friendly Guide]]></title>
            <link>https://medium.com/@naimurrahman1046/understanding-rest-api-http-methods-in-asp-net-a-complete-beginner-friendly-guide-6305fdc91cc6?source=rss-4212b07969d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6305fdc91cc6</guid>
            <category><![CDATA[aspnet-core-web-api]]></category>
            <dc:creator><![CDATA[Naimurrahman]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 14:56:13 GMT</pubDate>
            <atom:updated>2025-11-24T14:56:13.740Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Understanding REST API &amp; HTTP Methods in ASP.NET — A Complete Beginner-Friendly Guide</strong></h3><p>Before diving into how REST APIs work in <strong>ASP.NET</strong>, it’s essential to clearly understand what <strong>REST</strong> actually means. This foundation will help you build clean, scalable, and standard-compliant APIs.</p><h3>🔍 What Is REST?</h3><p><strong>REST</strong> stands for <strong>Representational State Transfer</strong>.<br> It is not a protocol — rather, it is an <strong>architectural style</strong> used to design networked applications.</p><p>REST emphasizes:</p><p><strong>Statelessness</strong> — Every request from the client must contain all required information.</p><p><strong>Resource-based communication</strong> — Instead of actions, REST focuses on <em>resources</em> (e.g., /books, /users).</p><p><strong>Use of HTTP methods</strong> — REST APIs rely on HTTP as the underlying communication protocol.</p><p>So when we talk about REST, HTTP methods naturally become part of the discussion.</p><h3>🔗 Common HTTP Methods in REST</h3><p>Although HTTP defines many methods, the most commonly used ones in REST APIs are:</p><p><strong>GET</strong></p><p><strong>POST</strong></p><p><strong>PUT</strong></p><p><strong>DELETE</strong></p><p><strong>PATCH</strong></p><p>Other HTTP methods such as <strong>TRACE</strong>, <strong>OPTIONS</strong>, and <strong>CONNECT</strong> exist but are less commonly used in typical application development.</p><p>Let’s break down the important ones:</p><h3>🔵 GET Method</h3><p>Used to <strong>retrieve</strong> a resource.</p><p>Safe, read-only operation</p><p>Returns <strong>200 OK</strong> on success</p><p>Error responses often include <strong>404 (Not Found)</strong> or <strong>400 (Bad Request)</strong></p><p>Example:<br> GET /api/books/10 → returns book with ID 10</p><h3>🟢 POST Method</h3><p>Used to <strong>create new resources</strong>.</p><p>Ideal for creating subordinate or new resources</p><p>Server usually generates the new resource’s URI</p><p>Returns <strong>201 Created</strong> with a Location header<br> Example: /api/books/57</p><h3>🟡 PUT Method</h3><p>Used to <strong>create or completely replace</strong> a resource at a <strong>specific URI</strong>.</p><p>Idempotent → multiple identical requests produce the same result</p><p>If the resource doesn’t exist, PUT can create it</p><p>The client must know the resource URL in advance</p><p>Example:<br> PUT /api/books/10 → updates or creates book at /books/10</p><h3>🟠 PATCH Method</h3><p>Used for <strong>partial updates</strong>.</p><p>Only the fields that need changes are sent</p><p>More efficient than PUT when only a few fields change</p><p>Example:<br> PATCH /api/books/10 { “title”: “New Title” }</p><h3>🔴 DELETE Method</h3><p>Used to <strong>delete</strong> a resource.</p><p>On success, returns <strong>200 OK</strong> or <strong>204 No Content</strong></p><p>Example:<br> DELETE /api/books/10</p><h3>⚖ POST vs PUT — When to Use Which?</h3><p>A common confusion arises because <strong>both POST and PUT can create resources</strong>.<br> So when should you choose one over the other?</p><h3>✔ Key Difference: Idempotency</h3><h3>PUT is Idempotent</h3><p>Sending the same PUT request multiple times has the <strong>same effect</strong> as sending it once.</p><p>Example:<br> Sending PUT /books/10 five times updates the same book, not create new ones.</p><h3>POST is Not Idempotent</h3><p>Sending the same POST request multiple times may result in <strong>multiple new resources</strong>.</p><p>Example:<br> Sending POST /books five times may create:</p><p>/books/60</p><p>/books/61</p><p>/books/62</p><p>/books/63</p><p>/books/64</p><h3>✔ When to Use What?</h3><p><strong>Use Case</strong></p><p><strong>Method</strong></p><p>Create a resource <strong>without specifying the URI</strong></p><p>POST</p><p>Create/update a resource <strong>at a known URI</strong></p><p>PUT</p><p>Submit data for server-side processing</p><p>POST</p><p>Replace an entire resource</p><p>PUT</p><p>Update a partial resource</p><p>PATCH</p><h3>📨 Understanding the Structure of an HTTP Request</h3><p>Before a REST API in ASP.NET can process a request, the request must follow a specific structure.</p><p>An HTTP request consists of:</p><h3>1️⃣ Request Line</h3><p>Defines <strong>what</strong> the client wants to do.</p><p>Includes:</p><p><strong>HTTP Method</strong> (GET, POST, PUT, DELETE)</p><p><strong>Request URI</strong> (e.g., /users, /products/123)</p><p><strong>HTTP Version</strong> (HTTP/1.1, HTTP/2)</p><p>Example:</p><p>GET /products/123 HTTP/1.1</p><h3>2️⃣ Headers</h3><p>Provide metadata about the request.</p><p>Common headers:</p><p><strong>Content-Type</strong> — Type of data sent (application/json)</p><p><strong>Authorization</strong> — Tokens or API keys</p><p><strong>User-Agent</strong> — Identifies the client</p><p><strong>Accept</strong> — Response formats supported by the client</p><p>Headers help the server understand <em>how</em> to process the request.</p><h3>3️⃣ Body (Optional)</h3><p>Used mostly with:</p><p>POST</p><p>PUT</p><p>PATCH</p><p>Contains the actual data being sent — commonly in:</p><p>JSON</p><p>XML</p><p>Form-data</p><p>Example:</p><p>{</p><p>“title”: “Clean Code”,</p><p>“author”: “Robert C. Martin”</p><p>}</p><h3>4️⃣ Query Parameters</h3><p>Used for filtering or customizing the request.</p><p>Example:<br> GET /products?category=books&amp;sort=price</p><p>Query parameters modify how data is retrieved.</p><h3>🔧 How HTTP Requests Are Processed</h3><p>When the request reaches the server:</p><ol><li>The <strong>method</strong> tells what action to perform</li><li>The <strong>URI</strong> identifies the resource</li><li>The <strong>headers</strong> guide how to process it</li><li>The <strong>body</strong> provides the data</li><li>The server sends back an <strong>HTTP response</strong> with a status code such as:</li></ol><p><strong>200 OK</strong></p><p><strong>201 Created</strong></p><p><strong>400 Bad Request</strong></p><p><strong>404 Not Found</strong></p><p><strong>500 Internal Server Error</strong></p><p>This structured communication ensures consistency between client and server.</p><p>References</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview">Overview of HTTP - HTTP | MDN</a></li><li><a href="https://www.browserstack.com/guide/what-is-http-request">What Is an HTTP Request and How Does It Work? | BrowserStack</a></li></ul><p><a href="https://dev.to/wirefuture/how-to-build-restful-apis-with-aspnet-core-8-j5">https://dev.to/wirefuture/how-to-build-restful-apis-with-aspnet-core-8-j5</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6305fdc91cc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Redux State Management]]></title>
            <link>https://medium.com/@naimurrahman1046/understanding-redux-state-management-95426453e2c1?source=rss-4212b07969d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/95426453e2c1</guid>
            <category><![CDATA[react-render]]></category>
            <dc:creator><![CDATA[Naimurrahman]]></dc:creator>
            <pubDate>Sat, 22 Mar 2025 13:36:09 GMT</pubDate>
            <atom:updated>2025-03-22T13:36:09.929Z</atom:updated>
            <content:encoded><![CDATA[<p>While fetching data via an API and updating the Redux store through an action, I noticed that my reducer state was being updated twice. This caused unexpected UI behaviour, leading to inconsistent data rendering. Upon investigation, I identified two primary causes:<br> 1. Shared State Across Components: I was using the same state slice in multiple components, which led to unintended re-renders.<br> 2. Single Reducer for Multiple Responsibilities: My reducer was handling multiple, unrelated tasks, which resulted in conflicts when different parts of the application interacted with the state</p><p>To resolve this, I separated my state management logic into two distinct reducers, each handling a specific responsibility. By structuring the state appropriately, I ensured that each reducer only modified its designated part of the store. This separation improved maintainability and prevented unnecessary re-renders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*kfWPggIyl5ROdjFUbwhcEA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95426453e2c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Efficient Message Storage in a Chat Application with Redux Efficient Message Storage]]></title>
            <link>https://medium.com/@naimurrahman1046/%EF%B8%8F-efficient-message-storage-in-a-chat-application-with-reduxefficient-message-storage-in-a-chat-454c310a31ff?source=rss-4212b07969d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/454c310a31ff</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Naimurrahman]]></dc:creator>
            <pubDate>Thu, 13 Mar 2025 18:40:34 GMT</pubDate>
            <atom:updated>2025-03-22T13:34:31.064Z</atom:updated>
            <content:encoded><![CDATA[<p>Modern communication relies heavily on chat applications, making real-time messaging a crucial feature for many systems. While working on a project, I faced the challenge of efficiently storing and loading messages dynamically in a Redux store for group-based chats.</p><p>🔹The Challenge<br> I needed to:<br> ✅ Store messages group-wise in Redux<br> ✅ Load messages dynamically when users scroll up<br> ✅ Optimize API calls to avoid unnecessary data fetching</p><p>🔹 The Solution<br> To implement this, I tracked the scroll position of the chat window. When the user scrolled 80% up, an action triggered an API call to the backend. The server then loaded a fixed batch of messages from MongoDB and appended them to the Redux store, ensuring a smooth experience.</p><p>This approach helped streamline chat performance and enhance scalability. What strategies have you used for managing chat data efficiently?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*te2ynVTPxqjAOQU5nOcFOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAySD0jXNYnduzRmIi7chA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=454c310a31ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>