Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Message Queue
    • Overview
    • Message queues
    • Messages
    • Deduplication
    • Visibility timeout
    • Long Polling
    • What is Dead Letter Queue (DLQ)?
    • Delay queues
    • Quotas and limits
    • Queue labels
    • Comparison with Yandex Data Streams
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Public materials
  • FAQ

In this article:

  • Delaying messages in queues
  • Delivery delay on individual messages
  1. Concepts
  2. Delay queues

Delay queues

Written by
Yandex Cloud
Updated at October 30, 2023
  • Delaying messages in queues
  • Delivery delay on individual messages

You can hide messages when they're sent to a queue. This lets you postpone their delivery for a defined period time. You can configure the delay for an entire queue or an individual message.

Delaying messages in queues

To configure hiding messages from a queue when sending them, set the Delivery delay parameter when creating a new queue or change it for an existing one. The maximum delay period for message delivery is 15 minutes.

Changing the delay setting for standard queues does not affect the delay of messages that are already in the queue. For FIFO queues, changing the delay setting affects the delay of messages already in the queue.

Delay queues are similar to visibility timeouts. The difference between the two features is that, for delay queues, a message is hidden immediately after it is added to a queue, while for visibility timeouts a message is hidden only after it is consumed from the queue.

Delivery delay on individual messages

Individual messages can be hidden immediately after they are added to a queue. This is set using the DelaySeconds parameter of the SendMessage method. A hidden message cannot be consumed from the queue during the specified time. The maximum time a message can be hidden is 15 minutes. FIFO queues do not support per-message delays.

The per-message delay has a higher priority than the delay set on an entire queue. For example, if a message with a 10-minute delivery delay is added to a queue that has a 5-minute delay set, this message is hidden for 10 minutes.

Was the article helpful?

Previous
What is Dead Letter Queue (DLQ)?
Next
Quotas and limits
Yandex project
© 2025 Yandex.Cloud LLC