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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:48:16+00:00 2026-06-10T02:48:16+00:00

I have both ASP.NET app and Worker Role set up and now I wonder

  • 0

I have both ASP.NET app and Worker Role set up and now I wonder how do I communicate between them? I think that the idea is that the solution will be distributed across different geographic locations. So how do I link the distributed Worker and Web Roles in a simple and efficient way?
I have started to look into WCF, but it looks to me to be an overkill and overcomplicated. Another thought I had is to use SignalR client inside the Worker roles to talk with the server in the Web roles.

EDIT:

The exact context:

1)User uploads file to the server

2)Server sends file to Azure Storage and adds the file name to CloudQueue

3)Worker gets the file name from CloudQueue

4)Worker starts a new Thread that gets the file from Azure Storage and starts processing it

5)Worker/Thread reports back to the application at every step of the file processing

6)The application receives the reports and uses SignalR to forward the processing steps to the client’s browser in real time.

What I am missing is at steps 2 > 3, How to immediately notify the Worker that a new file has arrived? I don’t want to poll the CloudQueue because it will create delays.
Also at steps 5 > 6, Worker needs to notify the application about the steps and this should be without delay, but again I don’t see how a polling solution can be used in such case.

  • 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-10T02:48:18+00:00Added an answer on June 10, 2026 at 2:48 am

    AS stated above, a little bit more context is needed. You basically have two main options, Windows Azure Queues and Windows Azure Service Bus Queues/Topics. My personal advice would be to use Azure Queues if the Web and Worker Roles are colocated in the same region and Service Bus Queues if they are not. I would have to ask why are you not colocating your Web and Worker Roles together, if you have a geographic deployment of you app then look at deploying all your Web Roles and Work Roles in each Region e.g. US, Europe & Asia and then use Traffic Manager to route user to the optimal region.

    There is a good blog post on when to use which queue ‘Windows Azure Queues and Windows Azure Service Bus Queues – Compared and Contrasted’: http://msdn.microsoft.com/en-us/library/windowsazure/hh767287.aspx

    HTH

    EDIT

    A good approach for Web and Worker Role communication is below (I stole this from a recent thread which @smarx answered)

    1 Web role writes a message to the queue that includes a job ID.

    2 Worker role does the work and writes the result to a table with partition key .

    3 Web role is polling that row of the table. Once it exists, the answer comes back.

    In your case you could have the Worker Role update the Table Storage with the status updates and then have your Web Role pick them up and display them to the user. e.g. 20%, 50%, Complete etc…

    I don’t really see delays in this type of communication, as long as you are polling sufficiently from the Web Role (*note transactions costs)

    I presume some sort of Inter Role communication could be done here for status updates but it might be overkill IMO:

    http://msdn.microsoft.com/en-us/library/windowsazure/hh180158.aspx

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

Sidebar

Related Questions

I have an ASP.NET page that contains two div's. Both have search fields and
I have a web site that runs both classic ASP and ASP.NET Webforms. The
I have a ASP.NET MVC application that runs in both IIS 6 and 7.
I have an ASP.NET web service running that accepts both HTTP POST and SOAP
I have an asp.net MVC app that i am working on and I wrote
I have an ASP.NET app that works fine on my windows XP dev machine
I have an asp .net webforms app that uses forms authentication. For a small
I have an ASP.NET MVC 3 app. It is working fine in both IE8
I have an ASP.NET MVC 3 app that lets users to create their own
I've got an old WebForms-based ASP.NET app that I have upgraded to ASP.NET 4.0

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.