Posts

Showing posts from January, 2013

Which Azure Caching Strategy to use?

I have been working on Azure for quite sometime now. I thought I would share my thoughts on how a developer can build something without spending a huge amount of money. Even if you are a company, it always helps to be as cost effective as you can. Caching is important to scale any application. And Azure offers several different ways of caching. I have experimented with all types. All of them work quite well, but not all of them are cost effective as the others. It can hurt because you pay the costs monthly - every month. The Azure Caching Service which you can configure in different amounts from 128MB to several GB works very well and is quite resilient, but it is not as fast as the Role based Caching. It is quite expensive to use it, because not only do you pay for it, but your own role memory may not be used that much. However, using role based caching has its own cons. The first being that it does not support high availability atleast as per the current documentation. Also, it...

Why using a static variable is a bad idea to prevent multiple threads from entering a method at the same time

Often people do this, where we check a boolean value, if it is true, either sleep or return expecting that it will never happen that multiple threads will enter beyond this "gate". Not true. This is coded under the mistaken impression that every line of higher language code is executed as one statement and hence, it will never go beyond those lines if the next line sets the variable to true. Because usually one line of higher language code even an i++ maps to multiple CPU instructions, given an adequately busy environment, this code will no longer "protect" the method. The only way to protect it is to use the lock statement.

Just posted my first app to the iOS app store..

I am totally new to iOS development, but I am happy to see this time, it is very easy to submit the app to the app store. Follow this URL: http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/YourFirstAppStoreSubmission/SubmitYourApp/SubmitYourApp.html#//apple_ref/doc/uid/TP40011375-CH7-SW1 I had a few issues because my app was migrated from an older version of iOS: 1. To make the app increase its size automatically for all iOS device configurations, open the view controller XIB file, go to full screen view, on the top right corner, select the option to show the toolbar somewhere, and within this, select Project SDK in Deployment and Use Autolayout checkbox. 2. To compile for all iOS devices, select the project node on the top left corner when you open xcode, select the target > technews > select the device as "Universal", Deployment target as latest iOS version.

What is new in parallelism .NET 4.5

http://blogs.msdn.com/b/pfxteam/archive/2011/09/17/10212961.aspx

.NET Garbage Collection in detail

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

All about app domains in the .net framework

http://msdn.microsoft.com/en-us/library/43wc4hhs.aspx http://msdn.microsoft.com/en-us/library/a60kkx8k.aspx http://msdn.microsoft.com/en-us/library/yk22e11a.aspx http://msdn.microsoft.com/en-us/library/dd380850.aspx http://msdn.microsoft.com/en-us/library/a51xd4ze.aspx