Asynchronous technique becomes important when dealing with cloud resources or accessing object in long distance network route.
Latency could blocking the application UI for sometimes if there are any big resources processed synchronously.
Microsoft Windows Azure Storage is one of best options to store Blob, File, Queue, Document Table and also SQL databases.
Other well known and could considered as best cloud storage options are Amazon S3, Google but this post will be focused on Azure since the source code is built for Azure storage.
The source code in this post is available for download at below url:
The demonstration application is a Visual Basic .Net WinForm. This app upload and download image file from/to Azure Blob storage asynchronously.
It also has Cancel to Async thread and List of uploaded files. Below is the Form’s design
Posted in ASP .Net, Cloud, Visual Basic .Net
Tagged Azure, Azure Blob Storage, Azure Storage Emulator, CreateIfNotExistsAsync, DownloadToStreamAsync, Task Async Await, Upload Download List Files Asynchronously, UploadFromFileAsync, VB .Net, VB. Net Cancel Async, Visual Basic
Micrososft WindowsAzure is a rock solid Cloud platform that enables you automatically scales in/out your web application.
Not only scaling capabilites but also storing your files whether they are big or small in Azure Cloud Storage makes your mind free from conserning your own reliable storage on premise.
I give you basic example how to upload a file to Azure Cloud Storage via Web App using Asp.Net C#. Also to provide a link for user to download that uploaded file.
Create Storage Account or Use Local Development Storage
If you are still under development and run the web app under local PC/Laptop then you can use Development Storage.
Install necessary Azure SDK using Visual Studio 2013 or 2015 or Microsoft Web Platform Installer. After the installation done you should have Compute Emulator and Storage Emulator.
The storage emulator must be started properly before hand in order to run your Storage application in your local environment.
To access your storage you must supply Storage Connection String. Since we are using local environment then the Storage Connection String is
Please pay attention of it is a case sensitive.
After you finish your development and want to publish it on the cloud then you must register for Storage Account withing Azure portal and change your Storage Connection String properly in your code or configuration file.
Posted in ASP .Net, Cloud
Tagged Asp.Net, Azure, Azure Cloud Storage, Azure Storage, Blob Container, C#, Cloud Blob, Upload Blob, Upload File, WindowsAzure
We already introduced to Cloud Technology that leverage Virtualization to minimize physical Servers cost.
Technically, there are some schemes in Cloud which are Public Cloud, Private and Hybrid. Private Cloud has its own Data center, virtualization & infrastructure on premise whereas Public cloud are over the Internet.
On the other hand, Hybrid Cloud is in between your on premise and public cloud. Hybrid used to integrate existing On premise With public cloud features.
This blog focus on Public cloud pros and cons.
Public cloud itself devided into three categories which are Infrastructure as a Service (IaaS), Platform as a Service (Paas) and Software as a Service (SaaS).
Example of IaaS are Virtual Machine as a Server, Virtual Network, Cloud Storage etc. PaaS are Scalable Web App Hosting, Database as a Service etc.
SaaS are GMail, GDrive, Office 365, One Drive, Amazon Document Sharing, Drop box etc.
There are three major companies provide Public Cloud services: Microsoft Azure, Amazon Web Service and Google Cloud.
Below are pros and cons using Public cloud for your organization.
- Up time guarantee. Your application, data, servers, virtual networks are inside Data Centers and its Infrastructure provided by those great companies.
Your account include SLA that guaranteed the system will be online 24/7 for a whole year. Ensuring reliability and availability is important and the most important thing is to make us having Peace of Mind
- Your Application and Servers are Available over the Internet with secure access Control.
You can access your system anywhere but if you want to limit by specific IP range surely you can.