Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BlazeDS VS REST +JSON

Can anyone tell me: What are the advantages/disadvantages of BlazeDS compared to using Java REST web services that return JSON data for a fairly data heavy flex application?

like image 567
user738497 Avatar asked May 19 '26 02:05

user738497


1 Answers

BlazeDS is going to use AMF for encoding data which is incredibly more compact than JSON. AMF is a binary format so all numeric and date values will be significantly smaller than with JSON. Also AMF uses string references to save a huge amount of space when sending repetitive text (class/property names). Additionally class definitions are also referenced only sent once per AMF message.

Besides the size, AMF is also significantly faster to process than JSON, definitely on the client side and most likely on the server side as well.

Basically, if you have a choice to use AMF over JSON, then do it. If you have to use an existing service that only supports JSON, then it's ok too, but even then if it's a large application or with significant usage, you're better off switching to AMF even for existing services.

like image 51
Samuel Neff Avatar answered May 22 '26 08:05

Samuel Neff