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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:26:53+00:00 2026-06-12T17:26:53+00:00

I have a nice fast task scheduling component (windows service as it happens but

  • 0

I have a nice fast task scheduling component (windows service as it happens but this is irrelevant), it subscribes to an in memory queue of things to do.

The queue is populated really fast … and when I say fast I mean fast … so fast that I’m experiencing problems with some particular part.

Each item in the queue gets a “category” attached to it and then is passed to a WCf endpoint to be processed then saved in a remote db.

This is presenting a bit of a problem.

The “queue” can be processed in the millions of items per minute whereas the WCF endpoint will only realistically handle about 1000 to 1200 items per second and many of those are “stacked” in order to wait for a slot to dump them to the db.

My WCF client is configured so that the call is fire and forget (deliberate) my problem is that when the call is made occasionally a timeout occurs and thats when the headaches begin.

The thread just seems to stop after timeout no dropping in to my catch block nothing … just sits there, whats even more confusing is that this is an intermittent thing, this only happens when the queue is dealing with extreme loads and the WCF endpoint is over taxed, and even in that scenario it’s only about once a fortnight this happens.

This code is constantly running on the server, round the clock 24/7.

So … my question …
How can I identify the edge case that is causing my problem so that I can resolve it?

Some extra info:

The client calling the WCF endpoint seems to automatically “throttle itself” by the fact that i’m limiting the number of threads making calls, and the code hangs about until a call is considered complete (i’m thinking this is a http level thing as im not asking the service for a result of my method call).

The db is talked to with EF which seems to never open more than a fixed number of connections to the db (quite a low number too which is cool) and the WCF endpoint from the call reception back seems super reliable.

The problem seems to be coming off the queue processor to the WCf endpoint.

The queue processor has a single instance of my WCF endpoint client which it reuses for all calls … (is it good practice to rebuild this endpoint per call? – bear in mind number of calls here).

Final note:

It’s a peculiar “module” of functionality, under heavy load for hours at a time it’s stable, but for some reason this odd thing happens resulting in the whole lot just stopping and not recovering. The call is wrapped in a try catch, but seemingly even if the catch is hit (which isn’t guaranteed) the code doesn’t recover / drop out as expected … it just hangs.

Any ideas?

Please let me know if there’s anything else I can add to help resolve this.

Edit 1:

binding – basicHttpBinding

error handling – no code written other than wrapping the WCF call in a try catch.

  • 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-12T17:26:54+00:00Added an answer on June 12, 2026 at 5:26 pm

    Seemingly my solution appears to be to increase the timeout settings on the client config to allow the server more time to respond.

    The net result being that whilst the database is busy saving data (effectively the slowest part of this process) the calling client sits and waits (on all threads but seemingly not as long as i would have liked).

    This issue seems to be the net result of a lot of multithreaded calls to the WCF and not giving it enough time to respond.

    The high load is not conintuous, the service usage seems to spike then tail off, adding to the expected response time allows spikes to be filtered through as they happen.

    A key note:
    Way too many calls will result in the server / service treating them as a dos type attack and as such may simply terminate the connection.
    This isn’t what I’m getting, but some fine tuning and time may result in this …

    Time for some bigger servers !!!

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

Sidebar

Related Questions

I have a nice dataset loop working, but I need to run another loop
I have this nice little MSBuild-based daily build setup that I use on my
I have started using data.table. Indeed it is very fast and quite nice syntax.
I want to replace some headers by images, so I would have nice font.For
have a nice day. I got problem when trying to create an image from
Have a nice day everyone, I have something to ask your hel, to better
I have a nice question about the loop-expression of a for-loop in C#. I
I have a nice clean domain layer in my app that was developed in
I have a nice DataGridView showing what is basically some kind of log data
I have a nice page that does everything I need. However one of the

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.