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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:09:09+00:00 2026-06-17T05:09:09+00:00

How does ServiceStack handle concurrent calls? I’m looking for equivalent of ConcurrencyMode.Multiple in WCF.

  • 0

How does ServiceStack handle concurrent calls? I’m looking for equivalent of ConcurrencyMode.Multiple in WCF.

My WCF services have this attribute set:

   [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple, UseSynchronizationContext = false)]

Do I need to enable anything in ServiceStack to get it to use multiple threads for each call?

  • 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-17T05:09:10+00:00Added an answer on June 17, 2026 at 5:09 am

    ServiceStack doesn’t have a configurable concurrency model per AppHost, it is dependent upon the AppHost you choose to host your ServiceStack services with:

    ASP.NET Host (AppHostBase)

    For ASP.NET web hosts, ServiceStack doesn’t create any new threads itself, the requests are simply handled on the same IIS/Nginx/etc ASP.NET HTTP WebWorker that handles the request.

    HttpListener Self-Host (AppHostHttpListenerBase)

    ServiceStack only creates a new thread on Startup when you call new AppHost().Start(url). There are no new threads created at run-time, i.e. the request is handled on the HttpListener async callback thread.

    HttpListener Long Running Self-Host (AppHostHttpListenerLongRunningBase)

    This is another Self-Host HttpListener option for ServiceStack that uses its own managed ThreadPool to execute the request on (free-ing up the HttpListener async callback thread). The default poolSize of the ThreadPool is 500 threads, though this is configurable in the AppHostHttpListenerLongRunningBase(poolSize) constructor.

    RedisMQ Host (RedisMqServer)

    A good option for managing long-running tasks is to delegate requests to a Redis MQ Host which is a light-weight MQ Server allowing you to defer and process requests in managed background threads. By default the RedisMqServer spawns a single background thread for each Message type (i.e. Request), though this is configurable on start-up, e.g: in the example below 2 background threads are used to handle PostTwitter requests, whilst only 1 background thread each is used to process CallFacebook and EmailMessage requests:

    mq.RegisterHandler<PostTwitter>(ServiceController.ExecuteMessage, noOfThreads:2);
    mq.RegisterHandler<CallFacebook>(ServiceController.ExecuteMessage);
    mq.RegisterHandler<EmailMessage>(ServiceController.ExecuteMessage);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example Service Stack does this to with the Northwind database: http://www.servicestack.net/ServiceStack.Northwind/customers/ALFKI?format=html Is there
I have a console application with ServiceStack which host Razor files and JSON services
Does COUNT(*) have any significant impact for MySQL performance if query already has GROUP
Does anyone have a translate function for x/y positions after rotation in javascript? for
Does anyone know why UsernameExists wont return True. I must have my syntax messed
Does anybody know why this function, when passed an invalid date (e.g. timestamp) to
As a followup to Does ServiceStack support binary responses? , I'm wondering whether there
Just discovered ServiceStack last months and i really enjoy working with this great framework.
Does anybody have an idea why Google App Engine permits only a single thread
I used the nuget command to get the ServiceStack dll's. The 3.9.28 I have

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.