I know that ZendAMF serialization is much slower than AMFPHP, but I suppose that doesn't explain why your repeat calls are fast, other than perhaps you're being returned cached data?
Hmm, i just did some more tests, but the results do update so it doesn't look like it's a cached result.
I'm not entirely sure but it looks like when multiple AMF methods are called too close to each other they are combined into one HTTP POST request to the AMF gateway. When this happens the response is extremely slow, whereas when I have make the second call after the first one has finished completely the response is ok (around 200 milliseconds).
You wouldn't happen to know how RemoteObject handles multiple calls to an AMF backend, right?
No, I've always actionscripted my own RemoteObject's so that each call creates a separate RemoteObject to handle the transaction.
Have you tried playing with the concurrency param?
Yeah I did, but the only way I could get rid of the delays was to call the second AMF method when the first one was done.
I'm now also noticing several intermittend errors that I hadn't noticed before.
Starting to suspect ZendAMF so I'll check for an update of that first.
Thaks for the suggestion though.