azurestatesession-stateapplication-state

Server side state management in Windows Azure


I'm working on a distributed application that runs on Windows Azure, but I'm new of this kind of environment. I have a question about server-side state management. Where should I store global almost static data?

Because it is a distributed environment if a user makes a request to the application, there is no guarantee that subsequent requests will be routed to the same server and so I think that I should use Sql Azure or Table Storage Session Provider (but I've read that can be performance issues) to store the data.

I can also use Windows Azure AppFabric Caching that enables session maintenance.

What is the better solution to store global information that don't need to be secured? Is there something similar to "Application" (like Application["key"] = value)?

Thanks


Solution

  • Please see my responses on the following thread:

    Microsoft Azure .NET 4.5 WebForms App : Session TimeOut / InProc / Single Instance

    Specifics are below:

    If you want to maintain session state you have to use one of the following options

    • SQL Session State Provider using Azure SQL
    • Azure Table Session State
    • Session State with Azure Redis Cache

    You can find details on how to do this at the following links:

    The easiest way in my opinion is using Azure Redis Cache as noted in the link above.

    Let me know if this helps!