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

Receiving a message from the queue

The receiving application can simply invoke the ReceiveMessageRequest constructor and pass the URL of the message queue. This creates a request object that can then be used to invoke the RecieveMessage() function. This function then in turn returns a response object that consists of the messages from the queue. This response object can then be iterated to read all the messages received from the queue.

The following code creates a request object to receive the messages and invokes the RecieveMessage() function. It then iterates over the response object and prints out all the messages received from the queue:

var receive_message_request = new ReceiveMessageRequest { QueueUrl = queue_url };var received_message_response ...
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