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

  • Home
  • SEARCH
  • 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 8177031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:24:21+00:00 2026-06-06T23:24:21+00:00

I would need some help to point me in the right direction. We want

  • 0

I would need some help to point me in the right direction.

We want to expose service functionality (which consists of reading + updating a SQL Server database) via WebHTTP end points as per-call services to users.
We don’t want to use SOAP if avoidable, as we have trouble to make this interoperate on other platforms.
This must be scalable to 1000+ users, which, in this scenario, are unlikely to submit many concurrent requests. It is estimated that at any given time there should be max 25 concurrent requests.

(That’s why per-session services were ruled out, since that would meant to keep 1000+ sessions open while only 25 actions are performed.)

By experience with a test service, we find however, that using pure Per-Call WCF services over HTTP perform poorly, with the largest time lapse being the initialization of the SQL server connection.

It’s sort of a similar scenario to what a web server normally would encounter.
Therefore it appeared sensible to use a similar approach as web servers do – for performance reasons they keep a pool of HTTP engines active, and incoming requests are being assigned one of the engines in the pool.

So we want to keep a pool of 25-30 “Business Logic Objects” (i.e. classes with the actual service logic decoupled from mere service interfaces) open which should be instantiated when the service host starts.

Seems that WCF does not have a scenario built in which supports this out of the box.
How would I go about it?

When I am self hosting, I can derive a custom class from ServiceHost and add a Dictionary with the Business objects. This would incur threading issues I guess, which I would have to handle with manual synchronization, correct?

If we decide to host in IIS, how would I do it then, since IIS automatically takes care of creating an instance of the ServiceHost class, and thus I have not much of a chance to throw my own custom host in-between, do I?

Or is this a bad approach altogether. Any other ideas appreciated.

  • 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-06T23:24:22+00:00Added an answer on June 6, 2026 at 11:24 pm

    Is there actually a bottleneck with the stateless, session-free approach?

    The pool of “business logic objects” doesn’t look like a good idea to me. You’ll face hard-to-debug concurrency issues.

    Have you actually tested the following pattern?

    • one business logic object per request, shortest lifetime as possible
    • one SQL connection per business logic object
    • stateless services

    By experience with a test service, we find however, that using pure
    Per-Call WCF services over HTTP perform poorly, with the largest time
    lapse being the initialization of the SQL server connection.

    Really, the SQL server connection shouldn’t be a bottleneck because of SQL Server connection pooling.

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

Sidebar

Related Questions

I would need some help in python. I'm new in python. I used to
Im a javascript newbie and would need some help with this simple thing... I
I need some help. I am looking for a regex that would match the
I need some help figuring out how I should do this. I would like
I am working with an array and need some help. I would like to
I need some library which would be able to keep my urls Indexed and
I'm at a loss, I need some help. The string looks like: Hello World
I need some asp.net pagination code samples. I would like suggestions on open source
I need to write some code that would loop though all rows of a
I need to concatenate some relatively large text files, and would prefer to do

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.