<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Context on The Smoking Duck Blog</title><link>https://blog.aabouzied.com/categories/context/</link><description>Recent content in Context on The Smoking Duck Blog</description><generator>Hugo</generator><language>en-US</language><copyright>Copyright © 2021, Ahmed Abouzied.</copyright><lastBuildDate>Fri, 22 Jan 2021 01:12:12 +0200</lastBuildDate><atom:link href="https://blog.aabouzied.com/categories/context/index.xml" rel="self" type="application/rss+xml"/><item><title>On Cancel Propagation in Web Servers</title><link>https://blog.aabouzied.com/on-cancel-propagation-in-web-servers/</link><pubDate>Fri, 24 May 2019 09:33:35 +0200</pubDate><guid>https://blog.aabouzied.com/on-cancel-propagation-in-web-servers/</guid><description>&lt;h2 id="on-cancellation"&gt;On Cancellation&lt;/h2&gt;&#10;&lt;p&gt;Consider the common situation of a web server making a call to the database then returning the data to the client .&lt;/p&gt;&#10;&lt;p&gt;What would happen if the client cancelled the request in the middle ?This could be due to that it lost connection or just simply if the user cancels the request from the browser while it&amp;rsquo;s still loading by closing the browser or simply clicking &lt;code&gt;x&lt;/code&gt;. The &lt;code&gt;Server&lt;/code&gt; and &lt;code&gt;Database&lt;/code&gt; layers would still process the request and take resources and all this effort would render no profit since the data would not be sent to the client.&lt;/p&gt;</description></item></channel></rss>