New Posts New Posts RSS Feed: Push Notification on Load Balanced servers
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Push Notification on Load Balanced servers

 Post Reply Post Reply
Author
JamesM View Drop Down
Newbie
Newbie


Joined: 28-Sep-2011
Posts: 11
Post Options Post Options   Quote JamesM Quote  Post ReplyReply Direct Link To This Post Topic: Push Notification on Load Balanced servers
    Posted: 27-Oct-2011 at 8:37am
We are using v6.0.6.0

I have a couple questions on how the BOS operates its Notification Service when the BOS resides on 2 or more servers in a load balanced configuration.

Does the BOSs share its notification subscribers automatically with other BOSs in a load balanced environment?  

Is there a way to force the BOSs to share notification subscribers if its not automatic?

For extra information: I am using a push notification that is fired from a EntityServerSaveInterceptor when a specific field on an Entity is changed when saving. 

Thank you,
James 


Edited by JamesM - 27-Oct-2011 at 8:37am
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 27-Oct-2011 at 3:36pm
Hi James,

Unfortunately, in a load balanced environment BOSes do not share notification subscribers. 

DevForce's Push feature uses WCF duplex communication support where the server maintains session information for each client. This does not scale to a load balanced environment.
Our Push notification also maintains its own “server affinity” in keeping a list of subscribed clients.

We have a feature request to address this issue. 
In the meantime you could implement your custom pub-sub service using Azure Service Bus (http://msdn.microsoft.com/en-us/library/dd628757.aspx) and/or the Publish-Subscribe Framework from IDesign (http://idesign.net/idesign/DesktopDefault.aspx?tabindex=5&tabid=11).

Regards,
   Silvio.


Back to Top
GeorgeB View Drop Down
Groupie
Groupie


Joined: 03-May-2010
Posts: 66
Post Options Post Options   Quote GeorgeB Quote  Post ReplyReply Direct Link To This Post Posted: 04-Nov-2011 at 4:22am
Hi Silvio
 
Currently we can't use the DevForce push notification in Azure (unless we stick to one server instance).
 
This feature request has been outstanding for a quite a while. Will we see it in the near future?
 
We bought a new DF load balancing license but without the push notification it was a waste.
 
Kr
George
 
 
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 07-Nov-2011 at 1:08pm
Hi George,

Correct, because we can't control server affinity in Azure, push notification won't work with a multi-instance Azure deployment. (However, it should be fine with other providers/deployments where you can turn on session-aware load balancing.) For this to work in Azure, we'll have to redesign push to use another mechanism, so this won't be available in the near or mid-term. Sorry for the bad news. We can credit your account if you want to remove the Data Center feature from your license.

Ting


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down