Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 455439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:22:15+00:00 2026-05-12T22:22:15+00:00

I have been reading articles about state management in ASP.NET for few days for

  • 0

I have been reading articles about state management in ASP.NET for few days for my web application.
In this application, one user can create/save/execute queries, and I need to keep each parameter of a query before the user can save the query.
These parameters are string values, but the global size for one user may exceed few megabytes.
We plan to have our website running w/ ~100 users simultaneously.

In these conditions, I believe that it will not be good to store these values in session w/ in-proc mode.

We already implemented a ProfileProvider:SqlProfileProvider, using a caching mechanism and with AutoSave=true.

What is the best solution: storing these values in profile or in session but in an SQL database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:22:16+00:00Added an answer on May 12, 2026 at 10:22 pm

    The best solution depends on whether you plan to grow beyond a single server. In a load balanced configuration, InProc session state won’t work correctly (without using sticky sessions, which presents other problems). Out of proc session state, such as State Server or SQL Server, requires that your state information be serialized and deserialized for each page access. With multiple MB per user, that could be very slow.

    Cache is another option, as suggested by Dave. One issue there might be whether the cache needs to be kept in sync from one web server to another.

    The usual approach to this kind of problem is to store the data in the DB and in Cache, and to only retrieve it for those pages where it’s really needed (unlike Session, which is read for every page). Then use SqlDependency or SqlCacheDependency to cache the data in a way that it can be updated on multiple servers if the DB changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading different articles on memory management in preparing for how I
I have been reading countless articles about how to architect a new MVC 3
Recently I have been reading up articles about DLL injection and I understand them
Lately I have been quite concerned about memory issues in ASP.NET. I have been
I have been reading articles about asynchronous messaging between clients using MVC3 and the
I have been reading a couple of articles on stack overflow about aggreation and
I have been reading articles about clipping now for hours now but I dont
I have been reading a lot of articles lately about programming practice, design and
I had been reading a few articles on some sites about Formatted and Unformatted
I've been reading about the Gawker incident and several articles have cropped up regarding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.