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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:22:39+00:00 2026-05-15T11:22:39+00:00

I am tasked with building a process which will compensate for replication delays on

  • 0

I am tasked with building a process which will compensate for replication delays on our LDAP system. Currently, there is one write server and 4 read servers. After writing an entry to the write server there can be up to a 4 second delay on the system before the entry is replicated to the read servers. Therefore, if I call service “A” which updates a record and then hit service “B” immediately afterwards which is supposed to read that record, the data will be stale.

To resolve this issue I was planning on building a caching web services so that no applications interface directly with the database, but rather through the caching service. The service would store all creates, updates, and deletes in a cache (presumably a List<ModelObject>). The CRUD – R entries would need to remain in the cache for a minimum of four seconds. Then when service “B” attempts to read, the caching service would check the cache prior to performing the read operation on the database.

So, my question is two part. 1) Is this a feasible solution and if not, what problems do you see? 2) How would I do maintenance against the cache within a WCF service. In other words is there a way to initiate a background worker thread that clears entries from the cache that are 4 seconds old?

  • 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-15T11:22:39+00:00Added an answer on May 15, 2026 at 11:22 am

    To resolve this issue I was planning on building a caching web services so that no applications interface directly with the database, but rather through the caching service.

    Sounds like the right solution to me.

    .NET includes several caching libraries to make that easy for you. Here are my favorites:

    http://www.infoq.com/news/2010/05/Runtime.Caching
    http://msdn.microsoft.com/en-us/library/system.web.caching.cache.aspx

    In other words is there a way to initiate a background worker thread that clears entries from the cache that are 4 seconds old?

    You don’t need to. Just set the expirationTime to (Now+4 seconds) when you add the item to the cache.

    But really you shouldn’t need a expiration time. If this is the only way to change the values, then it should never expire.

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

Sidebar

Ask A Question

Stats

  • Questions 489k
  • Answers 489k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Unfortunately, no. Attributes are "fused" to the type at compile-time,… May 16, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer It depends on the service which are you using to… May 16, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer You need to attach a source jar (e.g. commons-lang-2.4-sources.jar) to… May 16, 2026 at 8:58 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have been tasked with building a new workflow system to handle our service
I'm currently in the process of converting some small personal web sites from WebForms
I've been tasked with building a site for a client. They want it to
I have been tasked with building a new web project from scratch, with the
I've been tasked with building an XSD to validate a given xml, my issue
I've just been tasked with building a web application using ASP (.net) and am
We have an ASP.Net Web Application that is running in an IIS Web-Garden--which is
I have a MSBuild script that I am executing through TeamCity. One of the
Update: I'm not looking for someone to come up with a schema for me.

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.