Windows Azure - access webrole local storage from separate workerrole -
i'm running application on windows azure, mvc views need dynamic, started storing them records in database, quite keen move them physical location.
my concept create physical file via code... worked great , speeds page load dramatically. of course before realised files available duration of role
next looked @ start task create files when role started - realised separate instances weren't going sync unless monitored database changes.
so moved start task function in run method of role checks database every 10 minutes see if changes have occurred. problem seems choke application (at least in warm stage).
ideally move run function it's own worker role can sit there , push files out web role instances, i'm unsure on how go accessing web roles local storage worker role. can tell me whether possible? , point me in right direction achieve this?
just clarify i'm trying achieve
-view created in user interface running on web role , stored in database -separate web role (front end) has clientside application virtualpath provider pointing views requests local storage (localresource) -separate worker role create view structure , load clientside web role local storage
i believe have exact same possibilities if working separate windows server 2008 r2 instances.
my best guess create web service or standard application can called external location creates actual files on local disk (from paramters passed it) , call web service worker role periodically.
of course there many other workarounds, don't think there standardized way access local storage separate role in azure.
Comments
Post a Comment