R – How to prevent RemoteObject from batching AMF messages together

apache-flexbatchingmessagingremoteobject

I am using Google AppEngine, in conjunction with PyAMF to provide RemoteObject support. In my Flex code I make several RemoteObject method calls at once which tends to batch the AMF Messages into a single HTTP request.

Most of the time this is fine but AppEngine applies some strict per request limits (in this case I am hitting a DeadlineExceededError – max 30 seconds). A number of service methods are expected to take upwards of 10 seconds and if these are batched by the RemoteObject into 1 HTTP .. you see where this is going.

Now you could say refactor your service calls and that is also going on but not really the question being asked here. Is there a way to prevent Flex RemoteObject from batching AMF requests for situations like this?

I have done a fair amount of Googling on the subject and come up with bupkis. It seems to me that I would need to implement a custom version of mx.messaging.channels.AMFChannel or something of that nature, which seems waay too hardcore for a feature like this ..

Anyone have any pointers/insight?

Best Answer

Check out the concurrency property on RemoteObject.

Related Topic