• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Developer Dojo /
  • Wowza Streaming Server Java API /
avatar image
Question by Паша Рюмин · Apr 24, 2012 at 12:38 PM · wowza streaming server java api

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?
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Randall Auriemma · Apr 24, 2012 at 01:20 PM

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

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Паша Рюмин · Apr 24, 2012 at 09:11 PM 0
Share
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!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Module to disconnect idle client connections after timeout period 1 Answer

Stream class stream controller 22 Answers

StreamNameAlias doesn't honor querystring 1 Answer

Getting absolute timecode 1 Answer

Automated LiveStreaM Record using Linux CLI,PHP and CRON 1 Answer

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges