Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Creating an SQS queue

AWS provides the C# libraries for using the SQS service. You must start by including the AWS.SQS  library into your application program. Next, you must create an SQS client object and then form a request object to create a queue. This is done by invoking the constructor of the CreateQueueRequest  class and passing the name of the queue to it.

You can then invoke the CreateQueue() function of the SQS client object and fetch the response. The response object will have the URL of the queue that can then be used to send and receive messages to the queue.

The following C# code demonstrates how to create a new SQS queue and fetch its URL:

using System;using Amazon;using Amazon.SQS;using Amazon.SQS.Model;namespace packtpubSQS ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content