DCSIMG
Azure - Manu Cohen-Yashar's Blog

Manu Cohen-Yashar's Blog

Browse by Tags

All Tags » Azure (RSS)
New Major Release for Windows Azure
Today 7.6.2012 Microsoft released a major new release for windows azure. This release includes the following new capabilities: IAAS (Infrastructure as service): Mount a new virtual machine from a variety of templates (windows, linux, sql etc) or from your vhd file. Web Site: Create a web site on a shared infrastructure. This web site can run .Net, php, node.js, java, python or cms frameworks such as web matrix, joomla, drupal etc. Cloud services: new release for the current model of web and worker...
How to Improve Storage Emulator Performance
As we all know storage emulator does not excel in its performance. One step I found helpful was to switch the default SQL Express database to SQL server. How to do that: 1. Click Start, point to All Programs, and then click Windows Azure SDK. 2. Right-click Windows Azure SDK Command Prompt, and then click Run as administrator. 3. In the Windows Azure SDK Command Prompt window, type the following command: DSInit /sqlInstance:<SQLServerInstance>   Where <SQLServerInstance> is the name...
Does a Blob Exist?
One of the most common task relating to blobs is a simple check to verify if it exist. Unfortunately there is no method or property for CloudBlob that provides an answer. I wrote a simple extension method to do that: public static bool Exists( this CloudBlob blob) { try { blob.FetchAttributes(); return true ; } catch ( StorageClientException e) { if (e.ErrorCode == StorageErrorCode .ResourceNotFound) { return false ; } throw ; } } but when I run the method I got sometimes an InvalidOperationException...
Role Deployment Location on Azure
It is important to know where exactly will your role be deployed on the production machine in Azure data center. It is also important to know where windows is installed so you can reference its tools when writing startup tasks. Well on windows Azure windows is deployed on drive D: !!! Your role will be deployed to drive E: (E:\sitesroot\  for web role and a mirror in e:\AppsRoot for all roles) you can learn about the location of your web role by simply open IIS Manager and explore to the web...
Blob Parallel Upload and Download
To gain the best performance from azure blob storage it is required to upload and download data in parallel. For very small files it is OK to use the simple blob API (UploadFile, UploadFromStream etc.) but for large chucks of data parallel upload is required. To do parallel upload we'll use a block blob when working with streaming data (such as images or movies) and use the producer consumer design pattern. One thread read the stream, create blocks and put them into a queue. A collection of other...
Hosting Classic ASP on Azure
Is it possible to run a classic Asp site on Windows Azure? Of Course it is, Anything that runs on IIs can be hosted in Azure. So How do we do it? Create a simple asp page in notepad (e.g. using http://support.microsoft.com/kb/301097 ) Create startup.cmd to install ASP engine start /w pkgmgr /iu:IIS-AS Create a ASP .Net Web role and modify csdef to include a startup task: <Startup> <Task commandLine="startup.cmd" executionContext="elevated" taskType="simple"...
Scale Data Applications with Sql Azure
When designing a data application, traditionally the bottleneck lies within the database. A traditional on-premises database does not scale very well. It is difficult to split a database between a cluster of machines so usually the database runs on the most powerful machine available which tend to be expensive. To solve the problem some data processing is moved form its natural environment (i.e. DB) to the business tier which scale much better. The business tier is easy to replicate so it can help...
כלכלת ענן
Hi this post will be written in Hebrew (sorry for all English speakers) כולנו שומעים על ענן מכל כיוון אפשרי. נשאלת השאלה למה? מה עושה את הענן הזה לשם החם הבא? מה הסוד מאחורי המושג הזה? הכול מתחיל ונגמר בכסף. הסיפור הוא כלכלי. מחוק מור למדנו שכל שנתיים מערכות מכפילות את יכולתן הטכנולוגית השאלה שנשאלת מה קורה למחיר? בסביבה הטכנולוגית כיום הלקוח התרגל לא רק לקבל מערכות טובות יותר ככל שהזמן עובר, אלא גם לשלם פחות. זה מוזר מבחינה כלכלית – לקבל יותר אך לשלם פחות . הכול טוב ויפה מצדו של הצרכן אבל נותן השירות...
Azure ServiceBus Topic using REST API – Part 4
In the three last post's we learned how to use Azure ServiceBus REST API to send and receive messages using Topics. The difference between Queues and Topics is the fact that with topics different customers can receive different messages according message filtering which is deployed as filtering rules on the subscription. MSDN describe the following about topics and rules: Topics extend the messaging features provided by Queues with the addition of Publish-Subscribe capabilities. Each Subscription...
Azure ServiceBus Topic using REST API – Part 3
In the last two posts we showed how to use the Azure ServiceBus service bus REST API to send a message to a topic. In this post we will see how to listen on a topic and receive a message. There are two options: 1. Receive a message and delete it from the topic. Receive and Delete public static T ReceiveAndDeleteMessage<T>( string serviceNamespace, string topicName, string subscriptionName, string token) where T : class { var address = string .Format( "https://{0}.{1}/{2}/subscriptions...
Azure ServiceBus Topic using REST API – Part 2
In the last post I described why to use REST API when working with Azure service bus and demonstrated how to create a topic and subscription. In this post we will actually send a message to the topic. When sending a http request with a message to a topic we have to provide two special headers 1. Authorization header with the token we received from ACS 2. BrokerProperties with Json serialization of metadata of metadata about our message. To do that let us create a special class that will help us represent...
Azure ServiceBus Topic using REST API – Part 1
To use Service Bus, we must ensure that our firewall allows outgoing TCP communication on TCP ports 9350 to 9354. This is not a very strong request yet some customers cannot touch their firewall policy and so their firewall blocks all interaction with the service bus. In such scenarios (any many others) AppFabric REST API is the only alternative to work with the service bus. When working with the REST API we have to construct Http request to the service bus resource we want to work with. Unfortunately...
Windows Azure Benchmarks - Part 17: Compare Storage types performance
One of the most common questions customers ask is how does windows azure perform. Well Microsoft published a series of benchmarks in an excellent web site called azurescope . The thing is azurescope is going down on January 15th 2012 so I decided to publish these benchmarks here and make sure they will be available to the public. Let us discuss storage types and compare their performance. Charts on this page compare the maximum throughput achieved for the various storage types irrespective of the...
Windows Azure Benchmarks - Part 16: Sql Azure write latency
One of the most common questions customers ask is how does windows azure perform. Well Microsoft published a series of benchmarks in an excellent web site called azurescope . The thing is azurescope is going down on January 15th 2012 so I decided to publish these benchmarks here and make sure they will be available to the public. Let us discuss Sql Azure write latency. This test measures the write latency observed from a Windows Azure worker role instance while accessing SQL Azure . Key Analysis...
Windows Azure Benchmarks - Part 15: Sql Azure read latency
One of the most common questions customers ask is how does windows azure perform. Well Microsoft published a series of benchmarks in an excellent web site called azurescope . The thing is azurescope is going down on January 15th 2012 so I decided to publish these benchmarks here and make sure they will be available to the public. Let us discuss Sql Azure read latency. This test measures the read latency observed from a Windows Azure worker role instance while accessing SQL Azure . Key Analysis The...
More Posts « Previous page - Next page »