Design Web Role for Multiple Instance to Scale out

I am designing an application which would be a web api providing some read only data to its consumers.

The data that web role work on , should come from Worker Roles. Since there could be multiple web roles that wud response to customer HTTP request. What is the best way to ensure that the data is in sync.

I thot of doing it in this way. The data is processed by worker roles and then merged and synced in redis cache.

Web Roles mearly read it. Do you suggest there could be better ways to do it.

Vineet

July 29th, 2015 8:25pm

Hi,

Can you try the suggestions from the below blog and check if it helps.

https://azure.microsoft.com/en-in/documentation/articles/cloud-services-how-to-scale/

Regards,

Asha

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 2:47am

Hi,

   Based on your scenario,  the recommended approach I would say is to use Redis Cache.
   Microsoft Azure Redis Cache is based on the popular open source Redis Cache. It gives you access to a secure, dedicated Redis cache, managed by Microsoft, providing the best of both worlds: the rich features and ecosystem of Redis, and reliable hosting and monitoring by Microsoft.
  
 You can learn more at the below site.
 https://msdn.microsoft.com/en-us/library/dn690523.aspx
 http://www.asp.net/aspnet/overview/developing-apps-with-windows-azure/building-real-world-cloud-apps-with-windows-azure/distributed-caching

Regards,
Nithin Rathnakar

July 30th, 2015 12:12pm

Hi,

   Based on your scenario,  the recommended approach I would say is to use Redis Cache.
   Microsoft Azure Redis Cache is based on the popular open source Redis Cache. It gives you access to a secure, dedicated Redis cache, managed by Microsoft, providing the best of both worlds: the rich features and ecosystem of Redis, and reliable hosting and monitoring by Microsoft.
  
 You can learn more at the below site.
 https://msdn.microsoft.com/en-us/library/dn690523.aspx
 http://www.asp.net/aspnet/overview/developing-apps-with-windows-azure/building-real-world-cloud-apps-with-windows-azure/distributed-caching

Regards,
Nithin Rathnakar

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 4:12pm

Hi,

   Based on your scenario,  the recommended approach I would say is to use Redis Cache.
   Microsoft Azure Redis Cache is based on the popular open source Redis Cache. It gives you access to a secure, dedicated Redis cache, managed by Microsoft, providing the best of both worlds: the rich features and ecosystem of Redis, and reliable hosting and monitoring by Microsoft.
  
 You can learn more at the below site.
 https://msdn.microsoft.com/en-us/library/dn690523.aspx
 http://www.asp.net/aspnet/overview/developing-apps-with-windows-azure/building-real-world-cloud-apps-with-windows-azure/distributed-caching

Regards,
Nithin Rathnakar

July 30th, 2015 4:12pm

Hi Vineet

Yes, you are correct. It doesn't matter how many web role are serving the request as long as they all are reading data from same source.

You can use Redis Cache or a cheaper version would be Azure Storage. Also, not sure what job your worker roles are doing but a Web Job is as good and cheaper.

Regards

Piyush

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 5:06pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics