<?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: Ashik</title>
    <description>The latest articles on DEV Community by Ashik (@ashik2005).</description>
    <link>https://dev.to/ashik2005</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3996098%2F762f32de-182f-425c-bf0d-16f4e673f04d.jpg</url>
      <title>DEV Community: Ashik</title>
      <link>https://dev.to/ashik2005</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ashik2005"/>
    <language>en</language>
    <item>
      <title>POLLING</title>
      <dc:creator>Ashik</dc:creator>
      <pubDate>Mon, 22 Jun 2026 04:42:28 +0000</pubDate>
      <link>https://dev.to/ashik2005/polling-1epj</link>
      <guid>https://dev.to/ashik2005/polling-1epj</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short term polling:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;when a client(browser) sends a request to the server , server sends the response to the client and the client waits for it, if there is an update or any data needed the client again sends the request and recieves response&lt;br&gt;
client[waiting.....] --------------------&amp;gt; server&lt;/p&gt;

&lt;p&gt;client&amp;lt;------------------------------server[sends response]&lt;/p&gt;

&lt;p&gt;client[waiting.....] --------------------&amp;gt; server&lt;/p&gt;

&lt;p&gt;client&amp;lt;------------------------------server[sends response]&lt;/p&gt;

&lt;p&gt;if update or after sometimes again client sends the request to the server and server response&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Long term polling :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;when a client sends a request to the server and the server doesnt immediatley response to the client it waits until the data is available or until the wait time is reached. The connection remains open until response is received&lt;/p&gt;

&lt;p&gt;client-------------------&amp;gt;server[waiting...]&lt;/p&gt;

&lt;p&gt;client&amp;lt;------------------sends response(when data is available or it reache the wait time )&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;server send events:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;the server side doesnt sends the entire response directly as it kills user experience so it sends the data batch by batch and reduces the wait time and improve user experience&lt;br&gt;
example: chat gpt&lt;/p&gt;

&lt;p&gt;whenever a request is send to gpt it doesnt sends the entire data instead it sends the data patch by patch so it improves user expereince&lt;/p&gt;

&lt;p&gt;client--------------&amp;gt;server&lt;/p&gt;

&lt;p&gt;client&amp;lt;---------------- data chunk1&lt;/p&gt;

&lt;p&gt;client&amp;lt;----------------data chunk2&lt;/p&gt;

&lt;p&gt;client&amp;lt;----------------data chunk3&lt;/p&gt;

</description>
      <category>backend</category>
      <category>beginners</category>
      <category>systemdesign</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
