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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:38:14+00:00 2026-05-26T05:38:14+00:00

I have a Windows service that monitors several mailboxes for new mail. Once new

  • 0

I have a Windows service that monitors several mailboxes for new mail. Once new mail arrives the service is responsible for determining what to do with it. It can either parse it and enter it into a database, ignore it, or forward it to someone if it doesn’t recognize it.

I already have a working implementation if/when our email server goes down where the service will try and reconnect every n minutes until successful. The other problem is what happens if/when the database server goes down. Our service could very well still be running and parsing email but would stall if the database insertion fails.

How do I handle the database going down? Instead of having my service responsible for interacting to the database do I use a messaging framework like NServiceBus and send messages for each new item that needs to get added. Then this service would try and process it. If the processing fails for whatever reason (most likely the database is down) simply leave the item in the queue to process for later?

  • 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-26T05:38:14+00:00Added an answer on May 26, 2026 at 5:38 am

    One possibility:

    If the database is down, serialize the completed work to XML or binary format and store it on the file system if the database is down. Consider this the offline queue. When the database comes back up, have the process de-serialize the data back and then store it in the database.

    That way you can still consider the data processed and insert it at a later time. The queue (back up) is the file system.

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

Sidebar

Related Questions

I have an windows service that monitors a folder for new files being created.when
I have a Windows Service that monitors a COM port connected to a vendors
I have already created a windows service that monitors the network for some specific
I have a windows service that runs at 5 PM everyday. Once it starts
I have a Windows service written in C# that spawns several worker threads. Those
I have a windows service that can host one or more background threads. Each
I have a Windows service that writes messages to the Event Log. I also
I have a windows service that does some intensive work every one minute (actually
I have a Windows service that runs as a logged-in user (local admin). During
I have a Windows Service that takes the name of a bunch of files

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.