<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abhishek gupta</title>
    <description>The latest articles on DEV Community by Abhishek gupta (@glax3max).</description>
    <link>https://dev.to/glax3max</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1149234%2F9c5fac1b-3fa5-46cd-b4a3-72b451a6e486.png</url>
      <title>DEV Community: Abhishek gupta</title>
      <link>https://dev.to/glax3max</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/glax3max"/>
    <language>en</language>
    <item>
      <title>Node js and Backpressure .How and what?</title>
      <dc:creator>Abhishek gupta</dc:creator>
      <pubDate>Thu, 05 Mar 2026 07:05:38 +0000</pubDate>
      <link>https://dev.to/glax3max/node-js-and-backpressure-how-and-what-25fl</link>
      <guid>https://dev.to/glax3max/node-js-and-backpressure-how-and-what-25fl</guid>
      <description>&lt;p&gt;What happens when your Node.js server receives 1000 requests/sec but your database can only handle 100/sec? 🤔&lt;/p&gt;

&lt;p&gt;Most engineers think the system will just queue the requests.&lt;/p&gt;

&lt;p&gt;But that's exactly how systems crash.&lt;/p&gt;

&lt;h1&gt;
  
  
  Memory spikes.
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Queues grow infinitely.
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Latency explodes.
&lt;/h1&gt;

&lt;p&gt;So how do modern systems prevent this?&lt;br&gt;
The answer is a concept called Backpressure.&lt;/p&gt;

&lt;p&gt;The idea is surprisingly simple when a consumer cannot process data fast enough, it signals the producer to slow down.&lt;/p&gt;

&lt;p&gt;Instead of blindly pushing more data, the system controls the flow of information.&lt;/p&gt;

&lt;p&gt;Think of it like a traffic signal 🚦&lt;/p&gt;

&lt;p&gt;Cars (data) cannot enter&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0y2d3whz2ic8ovkpxou5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0y2d3whz2ic8ovkpxou5.png" alt=" " width="800" height="436"&gt;&lt;/a&gt; the road faster than they exit.&lt;br&gt;
Node.js actually implements this by default.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>backend</category>
      <category>node</category>
    </item>
    <item>
      <title>Tight Coupling (Request-Response) vs. Loose Coupling (Event-Driven).</title>
      <dc:creator>Abhishek gupta</dc:creator>
      <pubDate>Mon, 23 Feb 2026 06:43:52 +0000</pubDate>
      <link>https://dev.to/glax3max/tight-coupling-request-response-vs-loose-coupling-event-driven-5cpa</link>
      <guid>https://dev.to/glax3max/tight-coupling-request-response-vs-loose-coupling-event-driven-5cpa</guid>
      <description>&lt;p&gt;This is the perfect way to visualize it. In the world of software, we often call this Tight Coupling (Request-Response) vs. Loose Coupling (Event-Driven).&lt;/p&gt;

&lt;p&gt;Let's step into the kitchen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scenario A: The Traditional Bistro&lt;/strong&gt;&lt;br&gt;
System: Request-Response (Synchronous)&lt;/p&gt;

&lt;p&gt;In this restaurant, the Chef and the Waiter are "tightly coupled." The Waiter stands at the kitchen window and places an order for Table 5.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The Workflow: The Waiter tells the Chef, "I need a steak." The Waiter then stands there staring at the Chef until the steak is done.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Connection: If the Chef is busy or slow, the Waiter is stuck. They can’t take orders from other tables or refill drinks because they are waiting for that specific "Response."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Failure Point: If the Chef gets overwhelmed and stops cooking, the Waiter has to tell the customer immediately, "We can't help you," and the whole process breaks.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Scenario B: The High-Volume Teppanyaki&lt;/strong&gt;&lt;br&gt;
System: Event-Driven (Asynchronous)&lt;/p&gt;

&lt;p&gt;In this restaurant, there is a Bulletin Board (the "Message Broker") in the middle of the kitchen. Nobody talks directly to anyone else.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The Workflow: When a customer orders, the Waiter pins a ticket to the board (The Event) and immediately walks away to help other guests.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The Reaction: * The Grill Chef sees the ticket and starts the steak.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Garnish Chef sees the same ticket and preps the                      veggies.&lt;/li&gt;
&lt;li&gt;The Dishwasher sees the ticket and knows a dirty plate is coming soon.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;The Connection: The Waiter doesn't care when the steak is done; they just know the "system" handled the event. They are free to keep the front of the house moving.&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Failure Point: If the Grill Chef takes a 5-minute break, the tickets just pile up on the board. The work isn't lost; it’s just "queued" until the Chef returns.&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5brs1jfhuajpr91fin0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5brs1jfhuajpr91fin0.png" alt=" " width="800" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw8mtmgt2ick13in86i3a.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw8mtmgt2ick13in86i3a.jpg" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>restapi</category>
      <category>rpc</category>
      <category>eventdriven</category>
      <category>pubsub</category>
    </item>
  </channel>
</rss>
