we have a windows service , and now need to change to worker role application, but this service need to get some file from web application every time, as i know, web role and worker role are running in different instance, so my question is: how to let worker role application to access the file from web role instance.
How to let worker role app to access files from web role instance
265 Views Asked by Dragon At
1
There are 1 best solutions below
Related Questions in .NET
- Does compiler optimize operation on const variable and literal const number?
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- .net rest service with JSON string and consumed with java client
- What is best way to check if any of the property of object is null or empty?
- Telerik's WPF RadColorPicker NoColorText property not working
- Possible consequences of duplicate ProgId for different classes
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Optimizing C++ call from C#
- Make a per-web-application object available to Web API and SignalR controllers
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- LINQ Except/Distinct based on few columns only, to not add duplicates
- Not displaying content by its URL string - absolute urls
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in WEBROLE
- Azure webrole won't start, getting 500 Error, cannot read configuration file: applicationHost.config
- Howto enable WindowsAzure remote desktop with Eclipse
- Hosting azure web role with virtual application sends entire project and doesn't process configuration transforms
- TCP Worker Role to Web Role Communication
- Azure : Java webrole
- Generate Web.Debug.config which could be debugged
- How to force open webrole on port 80 in azure dev fabric(azure sdk 1.5)
- How to enable powershell on azure web role?
- Make AJAX requests between an ASP.NET Azure hosted Web Site and Web Role?
- How do I enable cs-host IIS logging in Azure?
- How to deploy an Orchard CMS web project to a Windows Azure Cloud Service?
- Azure: security between web roles
- How do I remote in to a Windows Azure web role over 443 when behind a corporate firewall?
- After upgrade from Azure 2.0 to 2.2, CloudConfigurationManager.GetSettings("...") always returns empty
- Change document root on azure php webrole
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could make use of either
blob storageorazure file servicefor that purpose.Since you're migrating an existing application, I would recommend going with azure file service. Basically what you will do is create a share and map that share as a network drive on both web role and worker role when the role starts. Web role will then write a file to this share using standard file API. To notify the worker role that a file is there to be processed, web role could write a message to a queue which is being polled by worker role. Upon receipt of the message, worker role will read the file and process that file.
You may find this blog post useful regarding azure file service: http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx.