NavigationContentFooter
Jump toSuggest an edit
Was this page helpful?

Queues - Quickstart

Reviewed on 01 April 2025Published on 01 April 2025

Scaleway Queues is a managed message broker service that allows you to transfer messages between different microservices and platforms via queues. This enables decoupled applications to “talk” to each other effectively even if they are not otherwise compatible. Scaleway Queues enables and simplifies microservices application development and allows you to build highly scalable, reliable, distributed applications.

Before you startLink to this anchor

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization

How to create credentials for QueuesLink to this anchor

Credentials for Queues are granular: you can define the level of access that they should give. Credentials give the specified level of access to all queues that you create in the region they are scoped to.

  1. Click Queues in the Serverless section of the Scaleway console side menu. A list of your queues displays.

  2. Click the Credentials tab.

  3. Click Generate credentials. A pop-up displays:

  4. Choose a region that these credentials should be scoped to.

  5. Enter a name for these credentials.

  6. Select the required permissions for the credentials. You must choose at least one of Write, Read and Manage. You are free to select any combination of these permissions.

  7. Click Generate credentials.

    The credentials are created. The access key and secret key are displayed, and you are invited to copy them.

    Important

    This is your only chance to view and save the secret key. Make sure that you copy it and save it somewhere securely.

  8. Copy and save the credentials, before closing the window.

    You are returned to the Credentials tab. The name of your newly-generated credentials, along with the access key and access level are displayed.

How to create queuesLink to this anchor

  1. Click Queues in the Serverless section of the Scaleway console side menu.

  2. Click Create queue. The queue creation wizard displays.

  3. Select the region in which you want to create the queue.

  4. Enter a name for your queue. The name must be no more than 80 characters, and consist only of alphanumeric characters, hyphens, and underscores. Alternatively, you can go with the auto-generated name suggested for you.

  5. Choose your Queue type, from one of the following:

    • Standard: Standard Queues ensure at-least-once delivery. The exact order of messages in the queue is not preserved.
    • FIFO: FIFO Queues (First In First Out) preserves the exact ordering of messages.
  6. Configure your queue’s parameters. The following parameters can be defined:

    • Visibility timeout: The length of time (in seconds) during which, after a message is received, it is hidden and cannot be received again by the same or other consumers. This is useful as the queue itself does not automatically delete messages once they are received, and so prevents consumers from receiving the same message many times before they have finished processing it. Therefore, the value set here should be informed by the expected length of time it will take consumers to process messages. The default value is 30 seconds. The value must be between 1 second and 43 200 seconds (12 hours).
    • Message retention period: The length of time (in seconds) that messages are kept in the queue before being deleted. Setting a longer message retention period allows for a longer interval between a message being sent and it being received. The default value is 60 seconds. The value must be between 60 seconds and 1 209 600 seconds (14 days).
    • Maximum message size: The maximum size (in kilobytes) of a message that can be sent to the queue. Messages greater than the defined size will be rejected. The default value is 256 KB. The value must be between 1 KB and 256 KB.
    • Content Based Deduplication: This setting is only available for FIFO queues. Enable content-based deduplication if the message body is guaranteed to be unique for each message. A unique hash value is generated from the body of each message, which is used as its deduplication ID. This avoids the need to set a deduplication ID when sending messages.
    • Dead-letter queue: Designate another queue to receive undelivered messages from this queue. If you select this option, you are prompted to select an existing queue as dead-letter queue. This queue must be of the same type, in the same Project and in the same region as the queue you are creating. You must also enter a value for the maximum receive count (how many times a message can be received from the source queue before being moved to the dead-letter queue).
  7. Click Create queue to finish.

You are returned to the Queues tab, where your newly-created queue now displays. The queue’s URL is also displayed here, for use in your API/CLI operations.

How to send and receive messagesLink to this anchor

All further actions related to sending messages to queues can be done via a supported CLI or SDK. See our documentation on the SQS CLI and SDKs for more information. You can also check out our tutorial on creating a serverless scraping architecture with Scaleway Queues.

How to delete a queueLink to this anchor

When you no longer want a queue, you can delete it. This action is irreversible and deletes the queue along with any queued messages.

  1. Click Queues in the Serverless section of the Scaleway console side menu.

  2. Use the drop-down menu to select the region of the queue you want to configure.

  3. Either:

    • Click the queue you wish to delete. The queue’s Settings page displays. Click the Delete queue button in the bottom right corner.
    • Click the «See more Icon» icon next to the queue you wish to delete, then select Delete from the menu that displays.

    A pop-up asks you to confirm that you understand this action will delete the queue and all your queued messages.

  4. Type DELETE and click Delete queue.

Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway