Windows Azure Storage Queue Storage.

Slides:



Advertisements
Similar presentations
ASP.NET Best Practices Dawit Wubshet Park University.
Advertisements

Cascading Style Sheets Understanding styles. The term cascading describe the capability of a local style to override a general style. CSS applies style.
Arrays and Other Data Structures 4 Introduction to Arrays 4 Bounds and Subscripts 4 Character Arrays 4 Integer Arrays 4 Floating Point Number Arrays 4.
Page 1 Queue Storage Jeff Chu | Page 2 Agenda Queue Storage Overview Programming Queue Storage Queue Storage tips Lab Time.
Overview Of Microsoft New Technology ENTER. Processing....
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 – Data Structures Outline 12.1Introduction.
Blob Storage. What is Blob Storage Windows Azure Blob storage is a service for storing large amounts of unstructured data that can be accessed from anywhere.
Role based Security in.NET By By Aasia Riasat Aasia RiasatCS-795.
Cloud Computing Systems Lin Gu Hong Kong University of Science and Technology Sept. 21, 2011 Windows Azure—Overview.
dcDB Stored Procedures: An Overview
Data Parallel Application Development and Performance with Windows Azure Advisor : Professor Gagan Agrawal Present by : Yu Zhang.
Building Connected Windows 8 Apps with Windows Azure Web Sites Name Title Organization.
Ruby on Rails & Windows sriramkrishnan.com.
Larisa kocsis priya ragupathy
Austin code camp 2010 asp.net apps with azure table storage PRESENTED BY CHANDER SHEKHAR DHALL
Bring your own machines, connectivity, software, etc. Complete control Complete responsibility Static capabilities Upfront capital costs for the infrastructure.
Azure in a Day Training Azure Queues Module 1: Azure Queues Overview Module 2: Enqueuing a Message – DEMO: Creating Queues – DEMO: Enqueuing a Message.
Session 08: Architecture Controllers or Managers Graphical User Interface (GUI) FEN AK - IT Softwarekonstruktion.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Storage Manager Overview L3 Review of SM Software, 28 Oct Storage Manager Functions Event data Filter Farm StorageManager DQM data Event data DQM.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
Tracing 1www.tech.findforinfo.com. Contents Why Tracing Why Tracing Tracing in ASP.NET Tracing in ASP.NET Page Level tracing Page Level tracing Application.
Table Storage. Access Table storage Add the following namespace declarations to the top of any C# file in which you wish to programmatically access Windows.
 Sriram Krishnan Program Manager Microsoft Corporation ES03.
Advanced Windows 8 Apps Using JavaScript Jump Start Exam Prep M5: Data, Files, and Encryption Michael Palermo Microsoft Technical Evangelist Jeremy.
Effective Security in ASP.Net Applications Jatin Sharma: Summer 2005.
Sample Application Multi Layered Architecture (n-tier): –Graphical User Interface (GUI): Forms, components, controls The Visual Designer in Visual Studio.
WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Developers Interested in HTML5 Games Interested in Windows Azure Interested in Game Development.
Pradeep S Pushpendra Singh Consultants, Neudesic Technologies, Hyderabad, India.
Lab 7 Queue ADT. OVERVIEW The queue is one example of a constrained linear data structure. The elements in a queue are ordered from least recently added.
Building Applications with Windows Azure Storage Brad Calder Director/Architect Microsoft Corporation.
Building Mobile Phone Applications With Windows Azure Nick HarrisWindows Azure Technical Evangelist Microsoft Blog:
Building Connected Windows 8 Apps with Windows Azure Web Sites Name Title Organization.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
Queues Chapter 5 Queue Definition A queue is an ordered collection of data items such that: –Items can be removed only at one end (the front of the queue)
Service bus Secure messaging and relay capabilities Easily build hybrid apps Enable loosely coupled solutions.
Windows Azure Fundamentals Services Storage. Table of contents Overview Cloud service basics Managing cloud services Cloud storage basics Table storage.
Architecture Multi Layered Architecture (n-tier): Application: Model Controllers Database Access Graphical User Interface (GUI): Forms, components, controls.
Prof. amr Goneid, AUC1 CSCE 110 PROGRAMMING FUNDAMENTALS WITH C++ Prof. Amr Goneid AUC Part 15. Dictionaries (1): A Key Table Class.
(re)-Architecting cloud applications on the windows Azure platform CLAEYS Kurt Technology Solution Professional Microsoft EMEA.
AZURE: THE GOOD PARTS WEBAPPS Presented By RICHARD TASKER blog: richardtasker.co.uk.
Building web applications with the Windows Azure Platform Ido Flatow | Senior Architect | Sela | This session.
5 Worker Role Your Code public class WorkerRole : RoleEntryPoint { public override void Run() { while (true) { Thread.Sleep(1000); //Do something.
Windows form programming. namespace MyNamespace { public class MyForm : System.Windows.Forms.Form { public MyForm() { this.Text = "Hello Form"; }
Term Project #2 Data Management on a Cloud (Azure)
Firewalls Definition: Device that interconnects two or more networks and manages the network traffic between those interfaces. Maybe used to: Protect a.
Introduction Every program takes some data as input and generate processed data as out put . It is important to know how to provide the input data and.
Review of Last Year’s Midterm
Computing with C# and the .NET Framework
Test 2 Review Outline.
INF230 Basics in C# Programming
Chapter 12 – Data Structures
Azure Primed Randy Pagels Sr. Developer Technology Specialist
5.13 Recursion Recursive functions Functions that call themselves
Ensuring data storage security in cloud computing
Windows Azure Storage Basics
Programming Language Concepts (CIS 635)
Service-Oriented Computing -- Service Provider and Application Builder
Hello Farmington! 4:30-5:30, then dinner.
IoT Programming the Particle Photon.
Lecture 8b: Strings BJ Furman 15OCT2012.
Bob Tabor | Microsoft Azure Fundamentals: Data Understanding Microsoft Azure Storage Queues Bob Tabor |
Introduction to Building Applications with Windows Azure
Web Service.
Based on slides by Alyssa Harding & Marty Stepp
CS222/CS122C: Principles of Data Management Lecture #2 Storing Data: Disks and Files Instructor: Chen Li.
02 – Cloud Services Bret Stateham | Senior Technical Evangelist​
Storing and Processing Sensor Networks Data in Public Clouds
Caching.
INFO 344 Web Tools And Development
Presentation transcript:

Windows Azure Storage Queue Storage

What is Queue Storage Windows Azure Queue storage is a service for storing large numbers of messages that can be accessed from anywhere in the world via authenticated calls using HTTP or HTTPS. A single queue message can be up to 64KB in size, a queue can contain millions of messages, up to the 100TB total capacity limit of a storage account.

Queue Common uses of Queue storage include: Creating a backlog of work to process asynchronously Passing messages from a Windows Azure Web role to a Windows Azure Worker role

Queue

Access Queue storage Add the following namespace declarations to the top of any C# file in which you wish to programmatically access Windows Azure Storage: using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Auth; using Microsoft.WindowsAzure.Storage.Queue; Microsoft.WindowsAzure.Storage.dll assembly is to be added.

Access Queue storage Retrieving your connection string use the CloudConfigurationManager type to retrieve your storage connection string and storage account information from the Windows Azure service configuration: CloudStorageAccount storageAccount = CloudStorageAccount.Parse( CloudConfigurationManager.GetSetting("StorageConnectionString"));

Access Queue storage A CloudQueueClient type allows you to retrieve objects that represent Queues stored within the Queue Storage Service. The following code creates a CloudQueueClient object using the storage account object we retrieved above: CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient();

Access Queue storage Create a Queue use a CloudQueueClient object to get a reference to the Queue you want to use. You can create the Queue if it doesn't exist:

Access Queue storage Create a Queue... // Retrieve a reference to a Queue. CloudQueue queue=queueClient.GetTableReference(“messages"); // Create the table if it doesn‘t alreadyexist. queue.CreateIfNotExists();

Access Queue storage To insert a message into an existing queue, first create a new CloudQueueMessage. Next, call the AddMessage method. A CloudQueueMessage can be created from either a string (in UTF-8 format) or a byte array

Access Queue storage The following code creates an encrypted message and inserts into the Queue. protected void Button1_Click(object sender, EventArgs e) { char[] msg = TextBox3.Text.ToCharArray(); for (int i = 0; i < msg.Length; i++) { int ch = (msg[i] + 3); char ch1 = (char)ch; msg[i] = ch1; }

Access Queue storage string cm = new string(msg); cm = cm + "\n"; TextBox1.Text += cm; // Create a message and add it to the queue. CloudQueueMessage message = new CloudQueueMessage(cm); queue.AddMessage(message); }

Access Queue storage To Dequeue Messages from Worker Role first we need to obtain a reference to the queue using the same code used in WebRole1 project, and then dequeue a message using the queue service proxy. public override void Run() { //Code to obtain a reference to the queue //… while (true) CloudQueueMessage m = queue.GetMessage();

Access Queue storage if (m != null){ queue.DeleteMessage(m); char[] msg = m.AsString.ToCharArray(); for (int i = 0; i < msg.Length; i++){ int ch = (msg[i] - 3); char ch1 = (char)ch; msg[i] = ch1; } string cm = new string(msg); CloudQueueMessage message = new CloudQueueMessage(cm); queue.AddMessage(message); Thread.Sleep(10000);

Output