How to transfer data between two servers?

We have two servers that need to communicate with each other.

Something like this:

server1

public int getSomedataBoth() {
     return this.someData + Server2.getSomeData();
}
public int getSomeData() {
     return this.someData;
}

server2

public int getSomedataBoth() {
     return this.someData + Server1.getSomeData();
}
public int getSomeData() {
     return this.someData;
}

Therefore, any client will receive the sum of someData regardless of which server it is connected.

How can I implement this communication?

There is nothing (for the most part) built into Wowza to communicate externally. You would do it the same way you would using any other two Java programs.

You could use:

  1. Java sockets

  2. HTTP Provider

  3. RPC

  4. You could have your flash client connect to a stream on each server and use Flash RPC. (but that’s a little weird)

Normally you would use a Shared object to let flash clients communicate with each other, for example for Chat. You could potentially use one of the above external methods two sync the shared objects on each server…

You could potentially use one of the above external methods two sync the shared objects on each server…

Yes, that’s exactly what I need. I will try to use sockets, tnx!