Flex - Remoting vs HTTPService - when to use what?

mmattax picture mmattax · Oct 30, 2008 · Viewed 8.1k times · Source

I have been using Flex for a while and have not used remoting as of yet. Currently my apps use a webservice that generates xml that I use for databinding.

What would be the benefit to using remoting over an xml webservice in this use case? Is there a general guideline when I should choose remoting over webservices?

Why would I want to use remoting?

I have downloaded http://www.fluorinefx.com/, but have yet to do any real tinkering...

Thanks.

Answer

Simon picture Simon · Oct 30, 2008

Speaking personally I use remoting because I prefer AMF to SOAP/XML for the simple reason of speed and packet size.

Ted has a good discussion in the relative merits of XML vs. AMF here

Something to consider is what you have already in place on the server and where you think the future of your clients lies. Do you anticipate replacing or extending your clients? If yes then Web Services are a good architectural choice. If you are committing to Flex in the short/medium term then you may be able to squeeze better performance out of remoting with AMF3 vs. your web services.

P.S. I once had a link to a very good site which had measurements of the relative performance of AMF and SOAP - I'll see if I can find it and post a link.

P.P.S. here it is, but it seems not to be working at the moment.