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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:37:48+00:00 2026-06-01T11:37:48+00:00

I like to write a process in Worker role, to download (sync) batch of

  • 0

I like to write a process in Worker role, to download (sync) batch of files under a folder(directory) to local mirrored folder(directory)

Is there a timestamp(or a way to get) on the time of last folder(directory) updated?

Since folder(directory) structure unsure, but simply put is download whatever there to local, as soon as it changes. Except recursion and setup a timer to check it repeatedly, whats another smart idea do you have?

(edit) p.s. I found many solutions on sync files from local to Azure storage, but the same principle on local files cannot apply on Azure blob, I am still looking for a way that most easily to download(sync) files to local as soon as they are changed.

  • 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-06-01T11:37:49+00:00Added an answer on June 1, 2026 at 11:37 am

    Eric, I believe the concept you’re trying to implement isn’t really that effective for your core requirement, if I understand it correctly.

    Consider the following scenario:

    1. Keep your views in the blob storage.
    2. Implement Azure (AppFabric) Cache.
    3. Store any view file to the cache, if it’s not yet there on a web request with unlimited(or a very long) expiration time.
    4. Enable local cache on your web role instances with a short expiration time (e.g. 5 minutes)
    5. Create a (single, separated) worker role, outside your web roles, which scans your blobs’ ETags for changes in interval. Reset the view’s cache key for any blob changed
    6. Get rid of those ugly “workers” inside of your web roles 🙂

    There’re a few things to think about in this scenario:

    • Your updated views will get to the web role instances within “local cache expiration time + worker scan interval”. The lower the values, the more distributed cache requests and blob storage transactions.
    • The Azure AppFabric Cache is the only Azure service preventing the whole platform to be truly scalable. You have to choose the best cache plan based on the overall size (in MB) of your views, the number of your instances and the number of simultaneous cache requests required per instance.
    • consider caching of the compiled views inside your instances (not in the AppFabric cache). Reset this local cache based on the dedicated AppFabric cache key/keys. This will raise the performance greatly for you, as rendering the output html will be as easy as injecting the model to the pre-compiled views.
    • of course, the cache-retrieval code in your web roles must be able to retrieve the view from the primary source (storage), if it is unable to retrieve it from the cache for whatever reason.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to write a batch file that checks to see if a process
I'd like to write log to 2 different log files from the same process.
I'd like to write an archiving function that takes all files in a folder
I'd like to write a script/batch that will bunch up my daily IIS logs
I'm trying to create a worker process for Azure and I'd like to test
I'd like to write a game for the Nintendo Wii. How do I go
I would like to write a small program in C# which goes through my
I would like to write some data to a file in Ruby. What is
I would like to write a plug-in that will allow a custom written CRM
I would like to write my own OS, and would like to temporarily jump

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.