Simple Message Queue (formerly MNS)
Distributed messaging service whose queues deliver each message to one consumer at least once, with a publish-subscribe topic model alongside.
- Provider
- alibabacloud
- Kind
- Queue
- Category
- Messaging
- Official docs
- https://www.alibabacloud.com/help/en/mns/
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| backoff | enum | none | fixed | exponential | exponential-jitter | no | — | inherited |
| deadLetterQueue | boolean | — | no | false | inherited |
| delivery | enum | at-most-once | at-least-once | exactly-once | yes | — | ▸ at-least-once |
| instances | integer | — | no | — | inherited |
| managed | boolean | — | no | false | ▸ true |
| maxAttempts | integer | — | no | — | inherited |
| messagingModel | enum | queue | topic | no | queue | inherited |
| networkAccess | enum | internet | vpc | no | — | inherited |
| ordering | enum | none | per-key | global | no | none | inherited |
| persistence | boolean | — | no | true | inherited |
| replay | boolean | — | no | false | inherited |
| retentionDays | integer | — | no | — | inherited |
| role | enum | work | dlq | retry | offline-mailbox | frontier | no | work | ▸ work |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
A queue that receives asynchronous traffic and has no dead-letter queue either drops poison messages or retries them forever. Neither outcome leaves anything for a human to investigate.
- — all of these hold:
- — the node's `deadLetterQueue` is false
- — the node has at least one asynchronous incoming edge
A retry queue is where poison messages end up. With no dead-letter queue they are retried forever or dropped in silence, and nobody ever looks at the failed payment.
- — all of these hold:
- — the node's `role` is "retry"
- — the node's `deadLetterQueue` is false
Retrying a transient failure at full speed turns one slow dependency into a retry storm. A retry queue backs off, preferably exponentially and with jitter.
- — all of these hold:
- — the node's `role` is "retry"
- — any of these hold:
- — the node's `backoff` has no value
- — the node's `backoff` is "none"
nodes:
- { id: "mns", component: "alibaba-mns" }# yaml-language-server: $schema=../../schema/component.schema.json # Simple Message Queue (formerly MNS): a distributed messaging service for moving data and notifications # between components of an application ("What is Simple Message Queue (formerly MNS)?"). That page states the # queue-based model has each message consumed by only one client and that every message in a queue is # delivered at least once during its validity period; a retrieved message then enters a configurable # invisibility period. The same page describes a topic-based publish-subscribe model and Internet or VPC # access. No retention or dead-letter default is documented, so neither is set. schemaVersion: "1" type: "component" id: "alibaba-mns" kind: "queue" provider: "alibabacloud" docs: "https://www.alibabacloud.com/help/en/mns/" defaults: managed: true delivery: "at-least-once" role: "work" properties: messagingModel: type: "enum" values: ["queue", "topic"] default: "queue" networkAccess: type: "enum" values: ["internet", "vpc"]