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

The Archive Base Latest Questions

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

I’m playing around with Durable WCF services. i.e. WCF services that persist their state

  • 0

I’m playing around with Durable WCF services. i.e. WCF services that persist their state (in my case to a sql server database) between method calls.

I would like to be able to use durable components like this in either Workflow operations or with Asp.Net applications or both.

I understand how to set these components up, have them persist their data, and how to get them to remove their persistence. Where I’m hung up on, though, is how can I ensure that they always properly remove their persistence information from the Sql Server database.

For example, let’s say that I connect to a Durable WCF component from an Asp.Net application. I can put its context into session and then reconstitute it from anywhere within my app. I can catch Session_End in the Global.asax file and tell the component its no longer needed.

Except – what about when Session_End doesn’t fire properly (for whatever reason)?

Say I want to use the same Durable component for other stuff outside of Asp.Net where there’s not a session and where the state may need to stick around for days or weeks at a time between calls.

Is there already a standard way of clearing out persistence information when it’s no longer needed? How can you tell for sure if it’s no longer needed? What would you suggest?

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

    Not sure I have a “glorious” answer, but how about just having a “last accessed” date in your table, and if that’s older than a threshold, e.g. 3 months, toss out those “skeletons” of messages from your table?

    Whenever your WCF service does something to its persisted state, make sure that date/time field gets updated. If it’s been lying around appearing dead for a given time, toss it out. If it looks dead, smells dead, and doesn’t respond – it’s a zombie. 🙂

    The trick is going to be to find the “right” threshold, e.g. one that doesn’t kill out too many “undead” messages, but also doesn’t let zombies clutter up your database. Tricky business! That really comes down to your own knowledge of the system at hand – no golden rules, I’m afraid.

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

Sidebar

Related Questions

No related questions found

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.