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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:12:31+00:00 2026-05-22T01:12:31+00:00

Here’s the background, I have a webservice from a vendor/partner that returns a large

  • 0

Here’s the background, I have a webservice from a vendor/partner that returns a large XML document that I use to display data. Simple enough. The problem is that the service takes several minutes to execute. The vendor is returning an entire normalized database as an XML document in one method call and it’s slow. Stupid vendor but I can’t control that.

I have two questions:

  1. Where do I cache it? Disk, database, memory (I’m leaning to putting it on disk. It’s too big and not accessed enough to store in memory. Putting it in a DB is probably right but I don’t want to write ETL and have a job running somewhere.)

  2. How do I cache it? I can’t just let it expire and have the next request refresh the cache because it takes so long. I need to serve stale data while the cache is rebuilding. I can think of a couple of ways of doing it but nothing that seems simple or very elegant. I’m looking to do something simple; I’m not looking for the best engineered solution ever.

Here’s my plan…please tell me that I’m an idiot and suggest something easier that I’m overlooking.

      Write the XML to disk
      At the same time write the filename and some type of expiry bomb into cache (obviously the filename would not expire for a very long time)
      In my worker thread, try to read my bomb from cache
      If the cache is expired (my bomb went off) then spawn a thread to get and save the XML
      meanwhile, take the filename from cache and read in the old XML while the new one builds
      when the new one is finished, expire the old filename from cache and write the filename to cache

This sounds pretty much ridiculous to me and there has to be a better way.

I’m using .Net and IIS6 and I can stick the XML in SQL Server if needed.

  • 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-22T01:12:31+00:00Added an answer on May 22, 2026 at 1:12 am

    You could create a new database and a scheduled job to periodically fetch those data and store them into the database. Then you can serve the data that are actually needed directly from your database instead of web service.

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

Sidebar

Related Questions

Here is the issue I am having: I have a large query that needs
Here is the problem that I am trying to solve. I have two folders
Here's a query that works fine: SELECT rowid as msg_rowid, a, b, c FROM
Here is my code (Say we have a single button on the page that
Here's my scenario - I have an SSIS job that depends on another prior
Here is a complete example. I want to forbid using A::set from objects casted
Here's the deal: I'm in the process of planning a mid-sized business application that
Here's the basic setup: I have a thin bar at the top of a
Here is my persistence.xml : <?xml version=1.0 encoding=UTF-8?> <persistence xmlns=http://java.sun.com/xml/ns/persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd version=1.0>
Here is my problem : I have a post controller with the action create.

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.