header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Manpreet patil
Points:0
Posts:0

7/19/2011 7:59:32 PM

Title: How we can transfer matadata and events across the users that are connected into same show using FMS


I'm using the FMS 4.I have written a main.asc file that will help me to pass event and data across the user that are connect with the same instance(session).If i used the CDN then i have

send the stream into one rtmp URl and recieve the stream from another rtmp url and every user got stream from different server in the network according to their

geographical area.

My question is then how we can pass the main.asc file shared object data and event across the CDN network server. If we implement the load balancing and we have more

the one orignal server and in this case orginal server will be selected rendomly according to load. In this case if one user of the same show connect with the orignal

server A and another user of the same show connect with the orignal server B. then how will transfer the shared object data and event across the same show because

they will be connect with different server main.asc file.
I'm not much friendly with CDN's please give me a right direction
Thanks in advance
Manpreet Patil



1
Mark
Points: 380
Posts:0
7/20/2011 1:33:41 AM



If you are just streaming video then you can use a CDN server. You can direct the users to the server according to there location. But in case you are using FMS for live streaming and realtime data exchange using Remote shared Objects then it is not possible to use CDN for that. The shared Object data cannot be available at all other servers in realtime for a single session.

You may install FMS on multiple server locations and connect the users of that particular location to that server. But each server will have its own data and applications , nothing shared.

The other solution is using Origin server and edge server from Adobe for FMS.



2
Warrior
Points: 420
Posts:0
7/20/2011 7:51:50 AM



check the following article regarding clustering FMS server and load balancing

http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f2925d1a-7ffc.html



3
Manpreet Patil
Points: 0
Posts:0
7/20/2011 10:50:27 AM



Thanks Mark and Warrior I'm agree with your answer.But still if we use our original and edge server and implement the clustering and loading then i think still i have face this issue

how we can pass the main.asc file Remote shared object data and event across the original and edge servers. If we implement the load balancing and we have more then one orignal server and in this case orginal server will be selected rendomly according to load.
In this case if one user of the same show connect with the original server A and another user of the same show connect with the orignal server B. then how will transfer the Remote shared object data and event across the same show because they will be connect with different server main.asc file.

Please make me correct if I'm wrong in anywhere. and guide me in the right direction.



4
Inder
Points: 2980
Posts:0
7/20/2011 8:39:47 PM



you can connect through edge servers to your origin server application. For that you first need to connect your application from edge to origin server like this on server side.



var newConn = new NetConnection();
newConn.connect("rtmp://myoriginserver/myAppOnOriginServer")

// Inside onStatus handler, on success of connection connect to shared Object.
var so = SharedObject.get("mySharedobject", false, newConn);

using above code your "mySharedobject" will be same on all the servers and you can get change events on all the edge servers.

5
bob_senior
Points: 1320
Posts:0
7/20/2011 8:48:38 PM



Origin Edge server working is poorly documented by Adobe.

Whenever you connect to a application through edge server, the edge server communicates in background to the application on the Origin server. So you are actually getting connected to the same application on Origin server but loadbalancing is achieved due to users connected to edge servers.

To deploy Origin Edge servers see this document

http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f2925d1a-7ffd.html

6
Manpreet Patil
Points: 0
Posts:0
7/24/2011 10:39:26 AM



Thanks Inder and bob_senior

Inder i want to conform one thing that for transfer shared object data across all server user need to create connection on all server. According to my knowledge one FMS server can handle limited number of connection because of this we normally add the edge servers for manage the load.

when we create the connection on any server then we increase the load on server then how can we manage the load and then what is the benefit for adding edge server because for transfer shared object data every user connection will be created on every server(edge+ original).

I know may be I'm wrong somewhere please make me correct ..

Thanks
Manpreet Patil

7
Inder
Points: 2980
Posts:0
7/24/2011 11:35:38 AM



1) Not all the server just edge server.

2) this is really a good question.
There are 2 cases one is sharedObjects and other is Streams.

In case of streams the edge servers can cache the recent requested flv files on local disk and on request can deliver them to user without fetching from origin server.

In case of live streams or sharedObjects, say we have 10 users connected to the edge server connected to same application. In this case the edge server will get the sharedobjects and live stream updates once from server and deliver to all the connected users for that particular application. So for Origin server only one user is connected.


Another thing that I must clarify is that in most of the cases we require edge servers for streaming purpose only. The shared Objects does not put that much load on the server. I have tested FMS with normal configuration to handle around 150000 shared objects. Without getting performance degradation.

8
Patil
Points: 30
Posts:0
7/24/2011 12:37:13 PM



Thanks Inder,

According to my understanding
1)userA send the stream to edge server A
2)edge server A send the stream across the connected user of the same application inside the edge severA and will send one stream to the original server.
3) userB connected with the edge server B
4) edge server B send stream to the original server
In this way edge server A user can got the stream of edge server B user from original server and vice verse. And original server will play a role of bridge between the edge servers that will connect all the edge servers by creating a minimum connection.




Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions