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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:59:46+00:00 2026-06-01T03:59:46+00:00

The question is pretty much in the title, but I will elaborate. I have

  • 0

The question is pretty much in the title, but I will elaborate.

I have a Silverlight application that acts as a slightly extended user interface.

The main part of my program will run on a server to keep the shared database coherent.

This is where my question comes in: Will two clients calling a WCF service each get a thread inside that service OR will they get a full AppDomain each?

The difference is that if the first is the case they can share the DB easily, but in the second scenario they cannot – as I understand it.

EDIT: This is because the DB makes use of the Identity Map pattern [Fowler] where objects used are saved in physical memory (static singleton variable) – multiple AppDomains would mess that up.

(I asked my university teacher and searched quite a bit before asking this, seemingly, simple question)

  • 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-01T03:59:47+00:00Added an answer on June 1, 2026 at 3:59 am

    The threading model for WCF services is determined by the ConcurrencyMode you configure for your service: http://msdn.microsoft.com/en-us/library/system.servicemodel.concurrencymode.aspx.

    Regarding AppDomains – that depends entirely on how you’re hosting your service. If you’re running a ServiceHost of your own, manually, there will always be exactly 1 AppDomain on the server side, unless you decide to start managing and spinning up your own.

    If you’re hosting inside IIS…it’s up to IIS how it handles requests. It may reuse 1 AppDomain, it may spin up multiple AppDomains (unless you override the setting in the web.config to permit only 1 AppDomain per worker process), or it may spin up multiple physical worker processes (which inherently implies multiple AppDomains) if you have web garden mode enabled.

    All this said, I’m not sure exactly why this would affect your data access strategy. Multiple threads or AppDomains should have no problem sharing a DB.

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

Sidebar

Related Questions

That's pretty much the whole question in the title. I have a WPF C#
Question in title pretty much sums it up. I have some resource object defined
The question is pretty much the title. I have a 3d volume loaded as
The question is pretty much what is asked in the title. I have a
So the question is pretty much in the title. Let's say I have some
The title pretty much precisely asks the question, but I shall repeat; When I
The title pretty much states my question. I have a view (say, Action1 )
The title pretty much sums up my question, but here are more details: I'm
My question is pretty much what the title says: Is it possible to have
The question is pretty much in the title. But i'm trying to make a

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.