Results 1 to 3 of 3

Thread: How to transfer data between two servers?

  1. #1
    Join Date
    Feb 2011
    Posts
    20

    Default How to transfer data between two servers?

    We have two servers that need to communicate with each other.
    Something like this:

    server1
    Code:
    public int getSomedataBoth() {
         return this.someData + Server2.getSomeData();
    }
    public int getSomeData() {
         return this.someData;
    }
    server2
    Code:
    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?
    Last edited by lokki7; 04-24-2012 at 02:45 PM.

  2. #2

    Default

    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....

  3. #3
    Join Date
    Feb 2011
    Posts
    20

    Default

    Quote Originally Posted by randall View Post
    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!

Similar Threads

  1. Live. SMIL playlist. Data transfer from server to off-site destination
    By glorin in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 05-18-2013, 01:42 PM
  2. Interpreting Data Transfer from logs.
    By hdezela in forum General Forum
    Replies: 5
    Last Post: 01-27-2013, 05:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •