The application we are building sends out different kind of emails regularly. I stored the email templates in an Azure blob storage and the methods responsible for sending emails pull the appropriate email templates from there. I want the templates to be outside of the hosted service in case I want to update it, I can do that simply by uploading new templates to the blob.
The problem I'm having, from performance and cost perspective, is that the email templates rarely change within a 24hr period. So caching the method in a way akin to [OutputCache(Duration = duration, VaryByParam = "id")]
in ASP.NET MVC will be an ideal solution in order to increase the worker role performance. How to do this is now a problem. I learnt of PostSharp but our budget didn't take PostSharp's licencing fee into consideration from the beginning!
Any other free alternatives? Thanks for helping out.