Skip to content
This repository was archived by the owner on Sep 19, 2019. It is now read-only.

The getting started sample demonstrates how to perform common tasks using the Azure Queue Service in node.js including inserting, peeking, getting and deleting queue messages, as well as creating and deleting queues.

License

Notifications You must be signed in to change notification settings

Azure-Samples/storage-queue-node-getting-started

services platforms author
storage
nodejs
yaxia

Getting Started with Azure Queue Service in Node.js

The getting started sample demonstrates how to perform common tasks using the Azure Queue Service in Node.js. The Queue service provides reliable, persistent messaging within and between services. The API for the Queue service exposes two resources: queues and messages. Queues support user-defined metadata in the form of name-value pairs specified as headers on a request operation.

If you don't have a Microsoft Azure subscription you can get a FREE trial account here

Running this sample

This sample can be run using either the Azure Storage Emulator - or by updating the app.config file with your account name and key.

To run the sample using the Storage Emulator (default option, on Windows only):

  1. Download and Install the Azure Storage Emulator here.
  2. Start the Azure Storage Emulator (once only) by pressing the Start button or the Windows key and searching for it by typing "Azure Storage Emulator". Select it from the list of applications to start it.
  3. Open the app.config file and set the configuration for the emulator ("useDevelopmentStorage":true).
  4. Run the sample by: node ./queueSample.js

To run the sample using the Storage Service

  1. Open the app.config file and set the connection string for the emulator ("useDevelopmentStorage":false) and set the connection string for the storage service ("connectionString":"...")
  2. Create a Storage Account through the Azure Portal
  3. Provide your connection string for the storage service ("connectionString":"...") in the app.config file.
  4. Run the sample by: node ./queueSample.js

More information

About

The getting started sample demonstrates how to perform common tasks using the Azure Queue Service in node.js including inserting, peeking, getting and deleting queue messages, as well as creating and deleting queues.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •