Hi Felix, These are good well thought out questions. I will try to answer as many as I can. See below.
On 3/7/07, Felix Effenberger <[EMAIL PROTECTED]> wrote:
Hi, I'm currently building a portal site based on Flash and since I'm relatively new to the "Flash remoting world" I have some questions which I couldn't find answers to yet while browsing the Wiki or the mailing list archives. It would be great if someone could point me in the right direction! I use Red5 as Flash Media Server replacement. Before that I experimented a some time with AMFPHP but it didn't seem to provide any method of pushing data from Server to Client (only polling of the clients through the gateway), so I switched to Red5. Now my questions: - Are Flash Media Server and Flash Remoting either or technologies (i.e. Flash Media Server can do everything that Remonting can, plus more) or do they extend each other? Sorry for my ignorance, I couldn't find an answer to this yet.
RTMP is actually a socket connection over TCP that uses AMF (binary) packets sent over it. Flash has the ability to read these packets which is built into the player. Remoting refers to AMF packets being sent over HTTP in a call-response type fashion. Red5 actually supports both of these. For the most part the same data can be passed over using either method. SharedObjects obviously need the constant connection with the server in order to work. RTMP is also used for video and audio streaming, which won't work with remoting. Now, there's also a few other ways too to pass data between Flash and a server. Nicholas pointed out one way using the Socket (AS3) and XMLSocket (AS2) classes respectively. Red5 and FMS both support RTMPT, tunneling RTMP connections over a polling HTTP connection. There of course are other ways as well. - Is it feasible to transfer bigger chunks of data via the
NetConnection object? Or should I still use AMFPHP for this? In particular: if I want to provide an image upload, which technique would be feasible?
Image uploading will need to be done differently; RTMP, Remoting and XML Socket connections won't work for this. You would need to use the FileReference class to do this. - When sending data over a NetConnection I can't get information on
how much of the data has been received/sent yet, right? (at least the same as this is possible for loadVars) - Does anyone know how well Red5 scales (with regard to user load) in comparison to AMFPHP?
Red5 is still in Beta, thus we don't have too much information about the scalability of the server. Please sign up for the Red5 mailing list and ask the other guys there how it's working for them. Also review the archives, as many people have already sent in reports of performance with their own applications.
- Has anyone experience in using other server side techniques such as haXe or OpenAMF? How good is the performance/scalability in these cases?
Nicholas already covered haXe pretty well. As for OpenAMF, I don't see an advantage in using it over Red5 concsidering it hasn't been actively developed in quite some time, and Red5 does so much more. You may also want to look at Flex Data Services as another option. Thanks a lot for your help! No Problem. -Chris
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
