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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:47:58+00:00 2026-05-11T13:47:58+00:00

That is my first question around here, my name is Anna! My problem: My

  • 0

That is my first question around here, my name is Anna!

My problem: My client has several personal devices (blackbox with gps) to locate people/car… There are about 12000 people/car using that device… It sends their location to specified IP/Port… I can´t do anything on that side…

My job? Devolope a listener to catch all data sended by devices and load that in database using .NET…

My idea: A Window Service using threads (maybe ThreadPool?). So the service will catch all incoming messages, create a thread and put into DB…

Is that the best solution for the problem? I was reading here about Message Queue (MSMQ)… Do you think should I use that?

Anna

  • 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. 2026-05-11T13:47:59+00:00Added an answer on May 11, 2026 at 1:47 pm

    The number of locations / time, as well as the way the location information is transmitted (is it TCP, UDP, etc) will help determine the optimal approach.

    Some questions:

    • How frequently do the 12000 devices send a message?
    • How are the locations transmitted? UDP? TCP?
    • What reliability requirements do you have?

    From the sounds of it, having a service that can capture the requests and just maintain a queue internally of things to save to the database should work fine. I don’t believe MSMQ will be of use to you unless you can change the transmission side, and even then, it may or may not be necessary.


    EDIT: Given the comments below, I would suggest something where you have a TCP listener pass requests off to the threadpool to handle.

    I would take a look at this tutorial about setting up a TCP listening server using the thread pool. The biggest potential problem I see is the number of requests – from what you’re saying, you’re going to have roughly 400 requests / second. This is going to be a bit of a challenge to handle without a pretty good system in place. The threadpool will probably perform better than trying to do your own threading, since you’ll want to avoid the overhead of having to create new threads constantly. You’ll definitely want to have very little delay in the main processing loop (like Sleep(0), or no sleep at all), since you’ll have one request per 2.5 ms on average. A single Sleep tends to time slice at 14-15 ms minimum, so you probably won’t want any sleep in the loop.

    I would say, though, that you may find this doesn’t work too well, since the raw amount of connections may be problematic. If there is any way you could convert to UDP packets being sent, it may get you better throughput (at the expense of some reliability).

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

Sidebar

Related Questions

my first question here! I have a problem with a piece of code that
First question here: it is a very short yet fundamental thing in Java that
this is my first question here :) I know that I should not check
Ok, first question so here goes, A function that runs on activation of a
I have looked around here to see if somebody has asked this question before
Been around here for a while but this is my first question @ so.
That's my first question :) I'm storing the configuration of my program in a
First question from me; I'm currently fixing a graphing service that uses XSLFO to
This is my first question on Stack Overflow, so I hope that I'm clear
It's my first question on SO. I know that there were many topics on

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.