Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is AMF only for Flash?

Tags:

amf

I am new to AMF and I learned that AMF is supposedly very fast.

I was wondering if I should use it for all my web services. Is it still fast without flash VM?

like image 781
Alex L Avatar asked Jan 28 '26 14:01

Alex L


1 Answers

This question could have two answers. One answer is about AMF as a protocol, the other answer is about implementations.

As a protocol, AMF produces small output that has much of the redundancy stripped out. As compared with a similar SOAP implementation, AMF will use fewer bytes of network traffic. In some applications this could be thought of as "faster".

AMF can also be fast if the implementation which encodes the AMF is fast. The Actionscript VM can encode it pretty quickly. However, you state you will not be using the Flash VM. In that case, you might be thinking of using Python. For Python, there are two open source choices: PyAmf and AmFast. AmFast is reportedly eighteen (18) times faster than PyAmf for encoding purposes.

So the ultimate answer is this: determine what kind of "fast" you desire, compare the capabilities of the encoders you can choose from.

like image 154
Heath Hunnicutt Avatar answered Feb 03 '26 00:02

Heath Hunnicutt