Creating a Queue

Create a queue.

    1. Open the navigation menu and click Developer Services. Under Application Integration, click Queues.
    2. On the left side of the screen, click Queues.
    3. Click Create queue.
    4. Enter a name for the queue in the Name text box.

      Avoid entering confidential information.

    5. Select a compartment from the Compartment list.
    6. Select a queue configuration method:
      • Default configuration: Accept the service default settings for the queue.
      • Custom configuration: Specify the queue settings yourself.
    7. Verify or change the queue settings:
      • Visibility timeout: How long a message in the queue is invisible to other consumers after being delivered to one.
      • Maximum retention period: How long a message remains in the queue before it's deleted by the service if it isn't deleted by a consumer.

        The queue's retention period can't be changed after creation.
      • Maximum channel consumption: The maximum amount of the queue's storage and throughput capacity that a single channel can use at any time. Specified as a percentage. The default value is 100, which means that a single channel can use the entirety of the queue's bandwidth. For more information, see Channels.
    8. Verify or change the dead letter queue settings:
      • Maximum delivery attempts: The number of times a message is delivered before it's moved to the dead letter queue.
    9. (Optional) Add tags to the queue by clicking Show tagging options.

      If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask your administrator. You can apply tags later.

    10. Click Create queue.
  • Use the oci queue queue-admin queue create command and required parameters to create a queue:

    oci queue queue-admin queue create --compartment-id <compartment_id> --display-name <display_name>

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Use the CreateQueue operation to create a queue.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.