This is a multipart series on Interapplication Messaging with .NET and AWS Simple Queue Service (SQS). Checkout all tutorials in the series.
Warning: some AWS services may have fees associated with them.
Simple Interapplication Messaging with .NET and AWS Simple Queue Service
Create an AWS SQS Queue from the Console
Creating a Simple .NET AWS SQS Message Producer Application
Create a Simple .NET Application to Consume an AWS SQS Queue
Creating an SQS queue through the AWS console is straightforward. In a future tutorial we will expand on these concepts and create an SQS queue from the the CLI.
The first thing we need to do is head on over to the AWS console, login and then search for SQS in the list of services. Once we are in the Amazon SQS portion of the console we need to click the, “Create queue” button. To create our queue, we need to:
- Select Standard or FIFO. (For our purposes we will select Standard)
- Give the queue a name
- Configure the queue (Defaults should do. See the configuration options below.)
- Select encryption options (leave as default)
- Select dead-letter queue options (leave as default)
- Select/create Tags (leave as default)
- Define access policy (leave as basic)
- Click “Create queue”
SQS Queue Configuration Options
Visibility Timeout: Specifies a time frame in which a client has time to process a message from the queue without another client being able to pick up the same message. The range is from 0 seconds to 12 hours.
Message Retention Period: Specifies an expiration for messages in the queue. If a message is older than the receive wait time, SQS will delete the message.
Delivery Delay: Allows you to set a time frame when the message is not available to any clients.
Maximum Message Size: Specifies the maximum size of a message. The range is from 1 byte to 256 kilobytes.
Receive Message Wait Time: Specifies the maximum interval time for message polling. The minimum value is zero seconds (short polling) and the maximum value is 20 seconds. Anything over 0 is long polling.
Continue on to the next tutorial in this series: Creating a Simple .NET AWS SQS Message Producer Application.