I find it hard to believe you are running a back end that's incapable
of sending AMF. I thought perl was problematic for AMF...but even it
has a solution that works...so what *are* you using on the backend?
You running a VAX machine or something? :-)
JSON isn't binary but is more compact than XML. OTOH, parsing it may
not be as quick as XML.
I wouldn't be manually zipping and unzipping data - a better idea
would be to enable GZIP on the web server and let the browser do the
work (not that that is trouble-free but still...).
Here:
http://www.jamesward.com/blog/2007/12/12/blazebench-why-you-want-amf-and-blazeds/
That should help you see what combinations are fast.
Guy
On 06/03/2009, at 8:31 AM, David Adams wrote:
On Fri, Mar 6, 2009 at 12:48 AM, valdhor
<[email protected]> wrote:
> What kind of server do you have?
>
> I was fairly sure there was an implementation of AMF for every
server out
> there.
Nope. I can bolt in zip/unzip and a JSON encoder/decoder - but not
AMF.
Speaing of which, I think I've asked my question badly enough that no
one thought to suggest JSON. I guess my most general question is:
"What techniques can I explore for reducing message sizes that work
efficiently in Flex?"
As I understand it:
-- AMF is native & fast.
-- JSON is not native & I'm not sure how fast it is.
-- XML is native and relatively fast...for XML.
-- Unzipping is native and fast...but not many methods are supported.
-- Custom binary protocols are fine as long as I draw the data down
into a general object or ByteArray and then parse it myself. Of
course, that means the parser is running in ActionScript - not code
compiled into the player.
Any other ideas?
Thanks, as always, for any suggestions.