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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:17:33+00:00 2026-05-26T09:17:33+00:00

I have an very quick/lightweight mvc action, that is requested very often and I

  • 0

I have an very quick/lightweight mvc action, that is requested very often and I need to maintain minimal response time under heavy load.

What i need to do, is from time to time depending on conditions to insert small amount of data to sql server (log unique id for statistics, for ~1-5% of queries).

I don’t need inserted data for response and if I loose some of it because application restart or smth, I’ll survive.

I imagine that I could queue somehow inserting and do it in background, may be even do some kind of buffering – like wait till queue collects 100 of inserts and then make them in one pass.

I’m pretty sure, that somebody must have done/seen such implementation before, there’s no need to reinvent wheel, so if somebody could point to right direction, I would be thankful.

  • 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-05-26T09:17:34+00:00Added an answer on May 26, 2026 at 9:17 am

    I agree with @Darin Dimitrov’s approach although I would add that you could simply use this task to write to the MSMQ on the machine. From there you could write a service that reads the queue and inserts the data into the database. That way you could throttle the service that reads data or even move the queue onto a different machine.

    If you wanted to take this one step further you could use something like nServiceBus and a pub/sub model to write the events into the database.

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

Sidebar

Related Questions

I need a very quick fix in a mod_rewrite expression for drupal we have
I have a question that I'm sure it's very quick to answer, but I
Whats it called when you have multiple task that are very quick to execute
Have a quick project I need to put together for windows that can have
quick and very basic newbie question. If i have list of dictionaries looking like
I have very long integer sequences that look like this (arbitrary length!): 0000000001110002220033333 Now
I have very small and quick question. Is it neceseary for all the developers
I need a very quick introduction to localization in a class library I am
I know that an ISR needs to be very quick and should handle an
I often find myself needing a quick ( in terms of code ), lightweight

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.