Sticky session router implementation on Windows Azure

The following roles are deployed to Windows Azure Cloud Services.

The application needs session stickiness, so we have deployed Web Farm Framework and ARR.

Also the application needs .NET 4.5 to run. Because of this I have to deploy to Windows 2012.

But...Web Farm Framework is not available for Windows 2012 / IIS 8.

Question:

Are there any other ways to implement a "sticky session router" on Windows Azure?

Or any workaround or other ideas?

T

January 8th, 2014 6:45pm

hello, 

Please see this blog http://coderead.wordpress.com/2011/09/12/sticky-sessions-and-windows-azure/ 

Free Windows Admin Tool Kit Click here and download it now
January 9th, 2014 9:58am

Hi

I think the best solution is to use Azure cache.

Create a cache service (or in-role) and assign your site configuration session to store information over the cache.

more information can be found here :

http://www.windowsazure.com/en-us/services/cache/

http://msdn.microsoft.com/en-us/library/windowsazure/gg278346.aspx

Thanks,

Shahar

January 9th, 2014 10:18am

In our case the session state is not serializable so we cannot use a caching mechanism.

Moving to a stateless application is also not an option because we use 3rd party components that are state aware and cannot be changed.

The solution that we are using is this one:

http://coderead.wordpress.com/2011/11/11/using-azurearr-sticky-sessions-in-azure/

But unfortunately this does not work on Windows 2012 / IIS8 so we are looking for another similar solution.

Free Windows Admin Tool Kit Click here and download it now
January 9th, 2014 10:32am

I think the cache is in-memory (need to check) if your session state is not serializable, how do you store it if you have only one server ? are you using ASP.NET Session ? - Shahar
January 9th, 2014 10:52am

Unfortunately we cannot use caching.

For more information see https://www.devexpress.com/Support/Center/Question/Details/Q438683.

Free Windows Admin Tool Kit Click here and download it now
January 9th, 2014 11:09am

Thank you for your suggestions..

XAF still does not support this and will not support this in the future. We had a look at the source code but it was too complex (for us) to make any changes that would make this possible.

When we try to deploy to Windows 2008 we get the following error message:

The feature named NetFx45 that is required by the uploaded package is not
available in the OS * chosen for the deployment.

I assumed this was checked before the OS was prepared but maybe I am mistaken. I will try to install .NET 4.5 using a startup task.

I will have a look at the link that you provided. Thank you for your input.

Free Windows Admin Tool Kit Click here and download it now
January 13th, 2014 3:53am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics