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 8962359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:06:34+00:00 2026-06-15T16:06:34+00:00

If for instance, 3 requests are made to the server, does that mean 3

  • 0

If for instance, 3 requests are made to the server, does that mean 3 instances of the web application are put into memory?

What if you used a locked singleton or cached a class so each time it checks to see if the object exists or not and creates the object if it doesn’t exist, does that mean that the object is cached for each request? or is it cached once and reused for each request?

If I locked a singleton, does that mean The object using the singleton is created once and each request uses the same object? or does it mean the object is created using the singleton for each request but is not created again by the same thread?

If I used System.Web.HttpRuntime.Cache["key"];
to cache a 1 mb object and 10 requests are made, am I using up 10 mb’s of memory on the server? if I created a new object using a singleton… what occurs in terms of threading and memory allocation?

  • 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-06-15T16:06:35+00:00Added an answer on June 15, 2026 at 4:06 pm

    In IIS an AppDomain is created for each Application and will share a process with other applications in the same AppPool.

    So 3 requests to the server within the same Web Application will share the same AppDomain.

    How that affects caching and singletons:

    From the docs on System.Web.Caching.Cache:

    One instance of this class is created per application domain, and it remains valid as long as the application domain remains active.

    When you lock an object (like a singleton) the lock’s scope is an AppDomain as well.

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

Sidebar

Related Questions

I have a server application that handles clients requests in different manner. I want
I have an ASP.NET Web API application running on my local instance of IIS.
I was trying telnet into a Web server and send a multiline request message.
I have the following use case for my Tornado web server: Upon POST requests
Fairly new to Node.js Made an app that runs a server process and serve
I have a web application made in asp.net mvc, and i am using Ninject
I am playing with GAE and made a very compact application that gets tiny
i have configured my apache instance to delegate requests to a application running on
On my ec2 instance, I am trying to do a pull requests of my
I have my views render to route requests like /controller/action (for instance, /Page/Create), so

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.