<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Operating in Parallel with RemoteObject Post by Peter Ent</title>
	<link>http://spbarber.com/blog/2005/02/17/operating-in-parallel-with-remoteobject-post-by-peter-ent/</link>
	<description></description>
	<pubDate>Thu, 04 Dec 2008 04:16:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Frank Krul</title>
		<link>http://spbarber.com/blog/2005/02/17/operating-in-parallel-with-remoteobject-post-by-peter-ent/#comment-533</link>
		<author>Frank Krul</author>
		<pubDate>Thu, 02 Feb 2006 15:42:03 +0000</pubDate>
		<guid>http://spbarber.com/blog/2005/02/17/operating-in-parallel-with-remoteobject-post-by-peter-ent/#comment-533</guid>
					<description>Hi, I read with interest Peter Ent's post on the RemoteObject behavior with the AMF gateway in FLEX.

His solution for avoiding the latency in the perceived serialization of the requests was to set endpoint URIs that changed slightly by using fake parameters.  This is a interesting way to solve the issue.  Macromedia provides method parameters to handle this more elegantly, but with coding penalty.

When declaring your RemoteObject tag, the concurrency parameter can be set on a child method to enable three operating behaviors:

1:  mutliple - (default) this is what Peter experienced; existing requests are done in serial and the developer is responsible for ensuring the consistency of the returned data by managing the events that occur.  What Peter could of done:
"function myHandler(event)
      {
         var call = event.call
         if (call.marker == "option1") {
         //do option 1
         }
         else 
         ...
      }"
... and this would handle the result stream appropriately.

2:  last - any subsequent requests will interrupt and supersede the prior ones (not very useful in practice, but good if someone repeatedly clicks an "add to shopping cart" button).

3:  single – this is another one that can be used, only a single request is made, and the subsequent requests will generate a fault.  Of course, we would have provided a fault handler for the RemoteObject, and parsing the returned string allows us to resend the request after a self-imposed timeout.  Peter would have received his first response back in two seconds instead of 30 seconds though!

I think the endpoint was originally conceived if load-balancing was to be used.  If your services will not operate, programmers can specify another URI to handle the call to override the default gateway endpoint in the  tag of the  tag specified in the flex-config.xml file.

Well nice blog, keep on Flexing!</description>
		<content:encoded><![CDATA[<p>Hi, I read with interest Peter Ent&#8217;s post on the RemoteObject behavior with the AMF gateway in FLEX.</p>
<p>His solution for avoiding the latency in the perceived serialization of the requests was to set endpoint URIs that changed slightly by using fake parameters.  This is a interesting way to solve the issue.  Macromedia provides method parameters to handle this more elegantly, but with coding penalty.</p>
<p>When declaring your RemoteObject tag, the concurrency parameter can be set on a child method to enable three operating behaviors:</p>
<p>1:  mutliple - (default) this is what Peter experienced; existing requests are done in serial and the developer is responsible for ensuring the consistency of the returned data by managing the events that occur.  What Peter could of done:<br />
&#8220;function myHandler(event)<br />
      {<br />
         var call = event.call<br />
         if (call.marker == &#8220;option1&#8243;) {<br />
         //do option 1<br />
         }<br />
         else<br />
         &#8230;<br />
      }&#8221;<br />
&#8230; and this would handle the result stream appropriately.</p>
<p>2:  last - any subsequent requests will interrupt and supersede the prior ones (not very useful in practice, but good if someone repeatedly clicks an &#8220;add to shopping cart&#8221; button).</p>
<p>3:  single – this is another one that can be used, only a single request is made, and the subsequent requests will generate a fault.  Of course, we would have provided a fault handler for the RemoteObject, and parsing the returned string allows us to resend the request after a self-imposed timeout.  Peter would have received his first response back in two seconds instead of 30 seconds though!</p>
<p>I think the endpoint was originally conceived if load-balancing was to be used.  If your services will not operate, programmers can specify another URI to handle the call to override the default gateway endpoint in the  tag of the  tag specified in the flex-config.xml file.</p>
<p>Well nice blog, keep on Flexing!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Makaio</title>
		<link>http://spbarber.com/blog/2005/02/17/operating-in-parallel-with-remoteobject-post-by-peter-ent/#comment-3328</link>
		<author>Makaio</author>
		<pubDate>Tue, 15 Aug 2006 23:08:11 +0000</pubDate>
		<guid>http://spbarber.com/blog/2005/02/17/operating-in-parallel-with-remoteobject-post-by-peter-ent/#comment-3328</guid>
					<description>best ad campaign &lt;a href="http://ad-campaigns.web-site-advertising.us/best-ad-campaign" rel="nofollow"&gt;best ad campaign&lt;/a&gt; best ad campaign
cost of advertising &lt;a href="http://advertise.web-site-advertising.us/cost-of-advertising" rel="nofollow"&gt;cost of advertising&lt;/a&gt; cost of advertising
subway advertising &lt;a href="http://advertise.web-site-advertising.us/subway-advertising" rel="nofollow"&gt;subway advertising&lt;/a&gt; subway advertising
it advertising &lt;a href="http://advertise.web-site-advertising.us/it-advertising" rel="nofollow"&gt;it advertising&lt;/a&gt; it advertising
beer advertisements &lt;a href="http://advertisement.web-site-advertising.us/beer-advertisements" rel="nofollow"&gt;beer advertisements&lt;/a&gt; beer advertisements
famous advertisements &lt;a href="http://advertisement.web-site-advertising.us/famous-advertisements" rel="nofollow"&gt;famous advertisements&lt;/a&gt; famous advertisements
advertisement techniques &lt;a href="http://advertisement.web-site-advertising.us/advertisement-techniques" rel="nofollow"&gt;advertisement techniques&lt;/a&gt; advertisement techniques</description>
		<content:encoded><![CDATA[<p>best ad campaign <a href="http://ad-campaigns.web-site-advertising.us/best-ad-campaign" rel="nofollow">best ad campaign</a> best ad campaign<br />
cost of advertising <a href="http://advertise.web-site-advertising.us/cost-of-advertising" rel="nofollow">cost of advertising</a> cost of advertising<br />
subway advertising <a href="http://advertise.web-site-advertising.us/subway-advertising" rel="nofollow">subway advertising</a> subway advertising<br />
it advertising <a href="http://advertise.web-site-advertising.us/it-advertising" rel="nofollow">it advertising</a> it advertising<br />
beer advertisements <a href="http://advertisement.web-site-advertising.us/beer-advertisements" rel="nofollow">beer advertisements</a> beer advertisements<br />
famous advertisements <a href="http://advertisement.web-site-advertising.us/famous-advertisements" rel="nofollow">famous advertisements</a> famous advertisements<br />
advertisement techniques <a href="http://advertisement.web-site-advertising.us/advertisement-techniques" rel="nofollow">advertisement techniques</a> advertisement techniques</p>
]]></content:encoded>
				</item>
</channel>
</rss>
