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
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
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:

  • Standard queues
  • FIFO queues
  • Message groups
  • Deduplication on enqueueing
  • Use cases
  1. Concepts
  2. Message queues

Message queues

Written by
Yandex Cloud
Updated at March 7, 2025
  • Standard queues
  • FIFO queues
    • Message groups
    • Deduplication on enqueueing
  • Use cases

Message queues enable messaging between components of distributed applications. Messages can be sent to queues using the API or any of the supported tools.

Enqueued messages are read by consumers, i.e., applications configured to receive messages from particular queues. Once a message is processed, the consumer deletes it from the queue.

Standard queuesStandard queues

Consumers read messages from a standard queue in random order. Standard queues guarantee that each message is delivered at least once. In rare cases, a message can be received from a standard queue twice.

Use standard queues when you need maximum throughput.

FIFO queuesFIFO queues

Messages are read from a FIFO queue in the order that they are received. FIFO queues guarantee exactly-once delivery.

Use FIFO queues if you need strictly ordered message delivery and exactly-once processing.

Message groupsMessage groups

With group IDs, you can send multiple ordered message groups to different consumers within a single FIFO queue. The group ID is specified via the MessageGroupId parameter when sending. Within a single group, all messages are enqueued and processed in the order that they are sent.

Deduplication on enqueueingDeduplication on enqueueing

FIFO queues deduplicate messages being enqueued by their deduplication ID or content. For more information, see Deduplication.

Note

Yandex Message Queue automatically deletes messages that are in a queue beyond the retention period. The standard message retention period is 4 days. It can be changed within the range of 60 seconds to 14 days. You can change it when creating a queue or by using the SetQueueAttributes method.

Use casesUse cases

  • Autoscaling an instance group to process messages from a queue in Message Queue
  • Converting a video to a GIF in Python
  • Creating an interactive serverless application using WebSocket
  • Creating triggers that invoke Cloud Functions functions to stop a VM and send Telegram notifications

Was the article helpful?

Previous
Overview
Next
Messages
© 2025 Direct Cursus Technology L.L.C.