<?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 Mohankumar B on Medium]]></title>
        <description><![CDATA[Stories by Mohankumar B on Medium]]></description>
        <link>https://medium.com/@mohankumarb498?source=rss-c66c69ec5ad1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NkMwsmlkoHCM3sLzyeIi2Q.jpeg</url>
            <title>Stories by Mohankumar B on Medium</title>
            <link>https://medium.com/@mohankumarb498?source=rss-c66c69ec5ad1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:05:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohankumarb498/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[Amazon SQS Explained: How Message Queues Power Modern Cloud Application]]></title>
            <link>https://medium.com/@mohankumarb498/amazon-sqs-explained-how-message-queues-power-modern-cloud-application-03caab6a1a72?source=rss-c66c69ec5ad1------2</link>
            <guid isPermaLink="false">https://medium.com/p/03caab6a1a72</guid>
            <dc:creator><![CDATA[Mohankumar B]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 05:32:38 GMT</pubDate>
            <atom:updated>2025-11-01T06:31:55.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*h6BiFX2FDkPYkX__7fBlSA.png" /><figcaption><strong>Simple Queue Service</strong></figcaption></figure><p>Amazon SQS (Simple Queue Service) is a fully managed message queuing service provided by AWS that enables decoupling and scaling of microservices, distributed systems, and serverless applications.</p><p>Let’s break it down clearly 👇</p><h3>1. Introduction</h3><h4><strong>What is Amazon SQS?</strong></h4><p>Amazon Simple Queue Service (SQS) is a fully managed message queuing service provided by AWS that enables reliable, asynchronous communication between distributed components of an application. It helps decouple microservices, distributed systems, and serverless applications by allowing them to send, store, and receive messages securely at any scale without needing to manage the underlying infrastructure.</p><h4>Why Message Queues Are Important in Distributed Systems</h4><p>In modern distributed architectures, different parts of a system often need to communicate and share data efficiently. Message queues act as intermediaries, allowing one component to send a message without waiting for another to be ready to receive it. This improves:</p><ul><li><strong>Scalability:</strong> Systems can handle varying loads by processing messages at different speeds.</li><li><strong>Reliability:</strong> Temporary failures don’t result in data loss; messages wait in the queue until they’re processed.</li><li><strong>Decoupling:</strong> Producers and consumers can evolve independently without direct integration.</li></ul><h4>Common Challenges That SQS Solves</h4><p>Amazon SQS addresses several key challenges in distributed systems:</p><ul><li><strong>Tight coupling:</strong> Components no longer need to communicate directly.</li><li><strong>Message loss:</strong> Messages are stored redundantly across multiple AWS servers for durability.</li><li><strong>Concurrency management:</strong> Multiple consumers can process messages simultaneously, improving throughput.</li><li><strong>Scalability issues:</strong> SQS automatically scales to handle large volumes of messages.</li></ul><h4>Real-World Use Cases</h4><p>Amazon SQS is widely used in:</p><ul><li><strong>E-commerce applications:</strong> Managing order processing and inventory updates.</li><li><strong>IoT systems:</strong> Buffering data from thousands of connected devices.</li><li><strong>Serverless applications:</strong> Connecting AWS Lambda functions in event-driven workflows.</li><li><strong>Microservices architectures:</strong> Enabling asynchronous communication between independent services.</li></ul><h3><strong>2. Understanding the Basics of Message Queues</strong></h3><h4><strong>What is a Message Queue?</strong></h4><p>A message queue is a communication mechanism that enables different components of a distributed system to exchange information asynchronously. It acts as a temporary storage area where messages (data, requests, or events) are placed by a producer and later retrieved by a consumer. This ensures that even if the consumer is busy or temporarily offline, no data is lost the message simply waits in the queue until it’s processed.</p><h4>How Producers, Queues, and Consumers Interact</h4><p>n a message queuing system, there are three main components:</p><ol><li><strong>Producer:</strong> The application or service that sends messages to the queue.</li><li><strong>Queue:</strong> The buffer that stores messages until they are processed.</li><li><strong>Consumer:</strong> The application or service that retrieves and processes messages from the queue.</li></ol><h4>Synchronous vs. Asynchronous Communication</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*ZLYOMBXcdzkAJNL5JfEe3A.png" /></figure><h3>3. Architecture of Amazon SQS</h3><h3>Core Components</h3><p>The architecture of Amazon SQS is simple yet powerful, built around three main components that work together to enable smooth, asynchronous communication.</p><p><strong>Producer (Sender)</strong><br> The <strong>producer</strong> is the system, application, or microservice that creates and sends messages to the SQS queue.</p><p>Example: An e-commerce website sends an order confirmation message after a purchase.</p><p><strong>Queue (Amazon SQS Service)</strong><br> The <strong>queue</strong> acts as a temporary storage buffer that holds messages until they are processed by consumers.</p><ul><li>Messages are stored redundantly across multiple AWS servers for durability.</li><li>Queues can handle <strong>millions of messages per second</strong> with no manual scaling required.</li></ul><h4>SQS supports two types of queues:</h4><ul><li><strong>Standard Queue:</strong> Best for high throughput and at-least-once delivery.</li><li><strong>FIFO Queue (First-In-First-Out):</strong> Ensures messages are processed in the exact order they are sent.</li></ul><p><strong>Consumer (Receiver)</strong><br> The consumer is the system or service that retrieves, processes, and deletes messages from the queue once they’re handled successfully.</p><p>Example: A background worker processes order details and updates the database.</p><h4><strong>How Messages Flow Between Services</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*yRLV24GVGLbQJVr2VJQeQA.png" /><figcaption><strong>Messages Flow</strong></figcaption></figure><h3>4. Decoupling in Amazon SQS</h3><h4>What is Decoupling and Why It Matters</h4><p>Decoupling means designing system components so that they operate independently of each other. In a tightly coupled system, if one service fails or slows down, it directly affects others. This makes systems harder to maintain, scale, and update.</p><p>By decoupling, each component can function, update, or scale on its own leading to:</p><ul><li><strong>Higher reliability</strong> (failures in one part don’t bring down the entire system)</li><li><strong>Easier scalability</strong> (scale specific services as needed)</li><li><strong>Simpler maintenance and updates</strong> (you can modify one service without impacting others)</li></ul><h4>How Amazon SQS Enables Decoupling</h4><p>Amazon SQS acts as a buffer between the producer and consumer. Instead of sending messages directly, the producer sends them to an SQS queue. The consumer then retrieves and processes those messages when ready.</p><p>This means:</p><ul><li>The producer doesn’t need to know when or how fast the consumer is working.</li><li>The consumer can process messages at its own pace.</li><li>Temporary outages or traffic spikes won’t cause message loss — SQS will hold messages safely until they’re processed.</li></ul><h3>5. Key Features of Amazon SQS</h3><p>Amazon SQS offers a range of features designed to ensure reliability, security, scalability, and flexibility in distributed applications. Let’s explore some of its most important features :</p><h4>1. Visibility Timeout</h4><p>When a consumer retrieves a message from the queue, that message isn’t immediately deleted — instead, it becomes <strong>invisible for a specific duration</strong> known as the <strong>visibility timeout</strong>.</p><ul><li>During this period, no other consumer can access the same message.</li><li>If the consumer successfully processes it, the message is deleted.</li><li>If not, the message becomes visible again for reprocessing.</li></ul><h4>2. Dead-Letter Queues (DLQ)</h4><p>A Dead-Letter Queue is used to handle messages that cannot be processed successfully after several attempts.</p><ul><li>You can configure a maximum number of processing retries.</li><li>Once that limit is reached, the message is moved to the DLQ for manual inspection or debugging.</li></ul><h4>3. Message Retention</h4><p>SQS allows messages to remain in the queue for a specific period — between 1 minute and 14 days.</p><ul><li>The default retention period is 4 days.</li><li>This ensures that messages aren’t lost even if consumers are temporarily unavailable.</li></ul><h4>4. Encryption (SSE with AWS KMS)</h4><p>Amazon SQS provides Server-Side Encryption (SSE) using AWS Key Management Service (KMS) to protect sensitive data.</p><ul><li>Messages are automatically encrypted when stored and decrypted when accessed by authorized users.</li><li>You can manage encryption keys via AWS KMS for added security and compliance.</li></ul><h3>5. Long Polling</h3><p>Long polling reduces empty responses and unnecessary costs by allowing consumers to wait for messages instead of continuously checking the queue.</p><ul><li>Instead of returning immediately when no messages are available, SQS can hold the request for up to 20 seconds until a message arrives.</li></ul><h3>6. Scalability and Reliability</h3><p>SQS automatically scales to handle any volume of messages without manual intervention.</p><ul><li>It can support millions of messages per second across distributed applications.</li><li>Built-in redundancy ensures high availability — messages are stored across multiple AWS servers and Availability Zones.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03caab6a1a72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Critical Time for Critical Thinking: Is AI Making Us Dull?]]></title>
            <link>https://medium.com/@mohankumarb498/critical-time-for-critical-thinking-is-ai-making-us-dull-4d3668faa992?source=rss-c66c69ec5ad1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d3668faa992</guid>
            <dc:creator><![CDATA[Mohankumar B]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 15:20:31 GMT</pubDate>
            <atom:updated>2025-07-17T15:20:31.139Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jG3Db9tuqA3iJyjImI_KEw.png" /><figcaption>Dulling Our Thiking?</figcaption></figure><p>In today’s fast-moving world, convenience has become the norm. With tools and technologies constantly simplifying our tasks, there’s a growing concern: are we losing our ability to think deeply?</p><p>Critical thinking isn’t just about solving problems it’s about questioning, analyzing, and staying curious. But as we rely more on external systems to process information for us, we risk becoming passive consumers of answers instead of active seekers of knowledge.<br>We must not confuse access to information with understanding. True learning happens when we challenge ideas, make connections, and engage in independent thought. It’s easy to follow trends, accept summaries, or take shortcuts. But when we do that too often, we trade depth for speed.</p><p>Now, more than ever, it’s important to slow down and think for ourselves. Read between the lines. Ask “why” more often. Reflect, discuss, and explore. Because when we stop thinking critically, we stop growing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d3668faa992" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>