<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Asynchronous Callback R Us</title>
	<atom:link href="http://www.udidahan.com/2006/07/01/asynchronous-callback-r-us/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.udidahan.com/2006/07/01/asynchronous-callback-r-us/</link>
	<description>Enterprise Development Expert &#38; SOA Specialist</description>
	<lastBuildDate>Sat, 11 Feb 2012 15:16:10 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ralf</title>
		<link>http://www.udidahan.com/2006/07/01/asynchronous-callback-r-us/comment-page-1/#comment-337</link>
		<dc:creator>Ralf</dc:creator>
		<pubDate>Sun, 02 Jul 2006 14:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://wp_630.weblogs.us/archives/294#comment-337</guid>
		<description>This looks nice - but if you look closely, you´ll see, the code you´re suggesting contains an uncertainity:

SubmitOrder() needs to return before the callback can be assigned. So there exists a slight chance for the asycn operation to finish before SubmitOrder() returned. So what could happen is, the operation completes and there is no callback.

This might be highly improbable - but think of Murphy´s law ;-) If this happens just every 1,000 times in a production system under load, you´ll have a hard time to find this &quot;bug&quot;.

-Ralf
</description>
		<content:encoded><![CDATA[<p>This looks nice &#8211; but if you look closely, you´ll see, the code you´re suggesting contains an uncertainity:</p>
<p>SubmitOrder() needs to return before the callback can be assigned. So there exists a slight chance for the asycn operation to finish before SubmitOrder() returned. So what could happen is, the operation completes and there is no callback.</p>
<p>This might be highly improbable &#8211; but think of Murphy´s law <img src='http://www.udidahan.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  If this happens just every 1,000 times in a production system under load, you´ll have a hard time to find this &#8220;bug&#8221;.</p>
<p>-Ralf</p>
]]></content:encoded>
	</item>
</channel>
</rss>

