View Full Version : AMFPHP vs WebORB
djrogi
02-26-2008, 05:05 AM
Does any one have experience with either AMF implementation from AMFPHP or WebOrb?
AMFPHP seems more native to PHP, but less support.
WebOrb seems more supported, but is ported from .NET :eek:
I have a larger project that requires lots of messaging between the client and server, and am worried that the overhead of XML will kill the response times.
CyanBlue
02-26-2008, 01:27 PM
Howdy and Welcome... :)
What do you mean by the 'overhead of XML'??? I don't know where you are getting that XML part out of the Flash Remoting... I've got to admit that it's been a long time since I have not touch much on the Remoting, but the XML bit is new to me...
FYI, WebOrb has different flavors and PHP is one of them...
Oh, I am moving this thread to Flash Remoting forum...
djrogi
02-26-2008, 05:03 PM
making a simple query MySQL querry through PHP then pushing that response to a data grid using XML output takes a ~283ms doing the same task using AMF takes ~60ms. Now multiply that by 3,000 users and you can see my reason for asking. Maybe it's just my development server, but it seems much faster to use AMF instead of text or XML.
This is my first Flex project so I'm as familiar as I would like to be. If there is a better way I'm all ears.
As for WebOrb, per the docs, they develop the platform in .NET then port to all the other languages java,ruby, and php. While this may be perfectly fine it introduces quireks and bad docs in my experience.
CyanBlue
02-26-2008, 06:23 PM
Is there any reason why you are generating an XML data out of the search queary and feed it back to Flex??? Can you somehow remove the XML portion, and have PHP generate an array out of the query and then feed it back to Flex to populate the data grid???
Obviously I have not used Flex enough to answer anything after that, but that could reduce some overhead...
That sure is a possiblility with the product, but any product can have potential wormhall... We just need to find a way to patch the problem if it occurs... ;)
djrogi
02-26-2008, 07:05 PM
I can make php spit out about anything, I'm just not too sure how Flex would handle it. The methods I have read so far are AMF, JSON, XML, and text strings. AMF or JSON, from what I read should be faster and more efficient due to it being serialized data, as opposed to actually formating in HTML or XML and processing it on each end.
on the server side I simply return an array or md-array. rather than iterating over the array to format it and enclose it in tags.
It's my understanding that FLEX will handle it the same either way once it's added to an arrayCollection.
of course I'm only a week into it so it's quite possible I could be off in left field.
btw.. thanks for the replies
CyanBlue
02-26-2008, 07:12 PM
That sounds about right and that's exactly what I did when I was doing the AMFPHP project some time ago... The XML is not really necessary and somewhat goes against the reason why you are using the Remoting... That's what I think... ;)
djrogi
02-27-2008, 08:29 PM
so I get the feeling that AMF either isn't the best solution, or that it's not really all that necessary.
What is the typical way to push/pull information between the server and the application?
acolyte
03-05-2008, 03:19 PM
so I get the feeling that AMF either isn't the best solution, or that it's not really all that necessary.
What is the typical way to push/pull information between the server and the application?
just my 2 cents ,
i got very fine results when i was using amf and amfPhp infact it is a very good solution for your problem .
there are alot solutions out there nowadays using amf
http://pyamf.org/
http://amfPhp.org/
http://rubyamf.org/
https://trac.cakefoundation.org/amf
http://swxformat.org/
just to name a few
i dont know something faster
When using Remoting on the server the querys are getting cached in the servers ram so no need for serialisation again .
The XML part isn't neccessary. You can return a mysql result directly to Flash using AMF.
return mysql_query("SELECT * FROM sometable");
Flex will convert this automatically to an ArrayCollection, if using in Flash you have to parse the info yourself, just make a helper class for that.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.