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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:34:45+00:00 2026-05-20T22:34:45+00:00

I have a question how to best architecture my solution using Entity Framework in

  • 0

I have a question how to best architecture my solution using Entity Framework in a windows service.

I want to provide an online (web-)service which allows users to execute possibly long running tasks, watch the progress of the tasks, cancel them, etc.

So far I am using a windows service to actually execute the tasks which exposes WCF endpoints to queue new work and manage existing tasks.

I am using Entity Framework to store a history of all jobs. However I am not completely sure how I should model the interaction between the background process of executing the jobs (with current progress inforation) and the wcf services exposing this status.

Should I completely seperate both parts, letting the background process periodically write the current state to the database and the WCF services poll the information from there?

Or does it make sense that the WCF service directly gets the information from the background process accessing a static member or something similar? Should they share a DataContext?

I would like to have the information current and it seems a bit strange having both the background processing and the WCF service running in the same process, but then communicating via the database, but on the other hand it seems to be a nicer architecture…

Thanks a lot!

  • 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-20T22:34:46+00:00Added an answer on May 20, 2026 at 10:34 pm

    I would recommend separating both the parts. And save the state in database, where in future you can also extend your architecture to multiple machines easily. Your database and web client access can stay at one server and long running tasks can stay at multiple servers.

    Crashing one will not affect other. You will be able to log information correctly. Review the information and also prepare reports on time of execution and prediction etc can be generated if states are saved correctly in database.

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

Sidebar

Related Questions

I have a question about best practices regarding how one should approach storing complex
I have a question on best pactices. When is the best time to dispatch
I have a question on the best way of exposing an asynchronous remote interface.
I have a two part question Best-Practice I have an algorithm that performs some
I have a question about using streams in .NET to load files from disk.
We have a huge ASP.NET web application which needs to be deployed to LIVE
I have a clunky-architecture question :) I have 1 php script. The script performs
This question is more towards Design and Architecture and I want to know SO
We have a typical multi-tier/layer architecture. Application + WCF Service + Repository/EF4/Database. We are
We have a quiz application ( which is capable of rendering a question bank

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.