On Thursday, Nov 21, 2002, at 07:20 US/Pacific, [EMAIL PROTECTED] 
wrote:
> Personally, I do not see much use for Remoting as a webservice, at 
> least beyond fundamental operations.  By building a fascade a CFC is 
> forced to return control to the application developer, in my case, 
> revealing far more information and control than I would like, and 
> further increasing development time for both ColdFusion and Flash.

I've been puzzling over this assertion and I still don't really 
understand it. By building a facade for Flash Remoting, you *hide* 
information and you *retain* control - you provide a very specific 
interface to Flash and how you manage state information is entirely 
transparent (you can use session scope, a database, whatever).

> The intent was a black box: the user requests, the CFC figures out how 
> to handle it and returns, not vice-versa.

And that's exactly how it works. A request is made, the CFC (facade) 
figures out how to handle it and returns.

You are then free to design your server-side code however you like and 
modular design will probably lead you to create several stateless 
'service' CFCs, some stateful 'object' CFCs - and your facade - which 
can lead to much more reuse.

> The problem is, in my case, that an outside developer could 
> potentially unnecessarily burdening the server with requests to 
> rebuild a query because an overly agressive application and would ruin 
> overall performance for everyone.

So I think your main concern is that you don't want to expose 
everything as a Web Service? And of course, you don't need to - the 
facade is the only Web Service and it can use authentication to ensure 
that no "outside developer" could call it. The CFC that deals with the 
query is then kept outside the wwwroot and called as needed from the 
secure Web Service.

> That doesn't even go to the fact that code that could be handled in 
> one place is now pushed out to every application built around it... so 
> much for reuse.

Pushed out how? A facade *encapsulates* rather than exposes - it 
encourages reuse.

> In short, for Flash Remoting to be more than a 'toy', there needs to 
> be a mechanism that keeps the object resident at least for the term of 
> execution.

There is - shared scopes on the server.

Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.corfield.org/blog/

Introducing Macromedia Contribute. Web publishing for everyone.
Learn more at http://www.macromedia.com/contribute

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to