# Edge origin issue with server side modules

**URL:** <https://community.wowza.com/t/edge-origin-issue-with-server-side-modules/39283>\
**Category:** Wowza Streaming Engine\
**Created:** [March 17, 2014, 10:55pm UTC](https://community.wowza.com/t/edge-origin-issue-with-server-side-modules/39283 "2014-03-17T22:55:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sutharshan\_Balachand](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Sutharshan\_Balachand](https://community.wowza.com/u/Sutharshan_Balachand)\
**Post date:** [March 17, 2014, 10:55pm UTC](https://community.wowza.com/t/edge-origin-issue-with-server-side-modules/39283/1 "2014-03-17T22:55:59Z")

</div>

I have a problem with my server side module when I use the edge origin setup. I want to know how to resolve the issue on this. My problem is explained below.

**I have developed a server side module which works as live video chatting system. In this system, when a person starts streaming I store their information in a ArrayList and let the viewers to see all the online cams list from the Array List. And the users can select one online stream from there and view that by passing an authentication token which will be associated with their account. It works perfectly with single server, because the Array List is accessible to all the incoming and outgoing connections.**

Now my problem is that when I setup the edge, origin server setup and add this application on each of those servers, the Array List is not shared. Also other connection variables and lists are not been shared which is within the server side module. I understand its not possible to access the memory variable from one server in another in normal situations. However I’m not sure whether are there any options in Wowza where we can share the memory variables in edge and origin servers?

If its not possible, how can I overcome this issue with the edge origin setup?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 18, 2014, 11:32am UTC](https://community.wowza.com/t/edge-origin-issue-with-server-side-modules/39283/2 "2014-03-18T11:32:21Z")

</div>

The easiest solution is to use one server for presence info and make two NetConnections in the client: one to the edge and one to this server. Or you might use an application server instead of Wowza for that part. If you have non-RTMP clients, you could use an HTTPProvider to get presence info.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 19, 2014, 1:54pm UTC](https://community.wowza.com/t/edge-origin-issue-with-server-side-modules/39283/3 "2014-03-19T13:54:00Z")

</div>

Sutha,

There is not anything built-in to do that. You could probably work out some way of replicating SharedObjects among servers, but it would take some work and might be prone to inconsistency. The usual solution in this case is to have one server handle SharedObjects and use a 2nd NetConection in the RTMP clients when necessary.

Richard

---

<div class="post-metadata">

**Author:** ![Sutharshan\_Balachand](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Sutharshan\_Balachand](https://community.wowza.com/u/Sutharshan_Balachand)\
**Post date:** [March 19, 2014, 1:30am UTC](https://community.wowza.com/t/edge-origin-issue-with-server-side-modules/39283/4 "2014-03-19T01:30:56Z")

</div>

Hi,

I’m only using RTMP clients at the moment and not using other protocols. Is there anyways to pass the token and online people information using shared objects among edge and origin servers?

Sutha
