Between the steps: message queues, dead letters, backpressure and duplicates
How the software between payment steps passes messages safely: dead-letter queues, poison messages, backpressure, and why duplicates must be expected.
L1–L4 are part of the Pro pass
L0 Explain simply
Larkpay takes thousands of payment requests an hour and passes each one to several steps. One step checks the request, one screens it and one sends it to the bank. (SYNTHETIC / TRAINING ONLY. Larkpay, Bank Alfa and Maya Chen are invented.)
The steps do not talk to each other directly. Between them sits a queue. A queue is a waiting line for messages. A step puts a message in. The next step takes it out when it is ready.
A queue helps for three reasons. A slow step does not make the one before it wait. If a step crashes, the messages are still there. And the work can be shared between several copies of a step.
Sometimes one message cannot be handled, however many times it is tried. Perhaps it is damaged. If the system keeps trying, it blocks the line. So after a few tries the message is moved to a separate holding area for people to look at. That area is called a .
Another problem is speed. If one step sends faster than the next can cope, the line grows without limit. The slow step needs a way to say stop.
And the same message may arrive twice. That is normal. Each step must be built so that doing it twice does no harm.
PICTURE IT
A conveyor belt between kitchen stations
Picture a kitchen with stations in a row. The chopper puts trays on a conveyor belt. The cook takes trays off the belt when ready. A slow cook does not stop the chopper, until the belt is full.
A tray with a spoiled ingredient keeps coming round and blocks the belt. After three tries a worker lifts it off and puts it in a basket for the head chef to look at. A full belt tells the chopper to wait. And sometimes the same tray arrives twice, so the cook checks the order ticket and cooks the dish only once.
THE REAL JOB A queue, a holding area for failures, a limit on volume and a let payment steps pass work safely at different speeds.
- Step puts message on queue
- Next step takes it
- Failures are set aside
- A full line slows the sender
- Repeats are ignored
HOW THE PICTURE MAPS
| In the picture | In the payment |
|---|---|
| The conveyor belt | A message queue |
| A tray | A payment message |
| The basket for spoiled trays | A dead-letter queue |
| The spoiled tray that keeps returning | A poison message |
| A full belt telling the chopper to wait | Backpressure |
| The order ticket that stops a double cook | An idempotency keyWho: Larkpay |
WHERE THIS PICTURE STOPS
- A tray is food. A message is a customer's money instruction, so a lost one is serious.
- A kitchen has one belt. A platform has many queues with different settings.
- A head chef looks at the basket. A payment platform must give the dead-letter queue an owner and an alert.
- The picture cannot show ordering, which some payment flows need.
- A dead-letter item is unresolved work, not proof of an unpaid payment. Broker acceptance is not consumer completion; local outbox commit does not atomically include an external bank effect.
HOOK
Wait in line, set aside, slow down, once only.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
Queue, set aside, slow, dedupe.
| In the trick | What it stands for |
|---|---|
| queue | messages wait between steps |
| set aside | failing messages go to a dead-letter queue |
| slow | backpressure from a slow step |
| dedupe | an idempotent receiver ignores repeats |
The four words leave out ordering and ownership of the dead-letter queue.
TELL A FRIEND
Payment steps hand work to each other through queues that keep messages safe. Messages that keep failing are set aside, a slow step can push back on a fast one, and repeats must do no harm.
OFTEN MIXED UP WITH How a payment survives a timeout (retries, idempotency keys, status checks and webhooks). The retries topic is about one caller's retry and its . This topic is about the queues between steps and what they do with failures and volume.
CURRENT AS CHECKED
1 FIGURE
2025 SCT Inst Rulebook version 1.2
The 2025 Rulebook, in version 1.2 (published 30 September 2026 and still the edition in effect as checked 20 November 2026), sets a five-second target . It also sets a seven-second time-out for the confirmation to reach the CSM, and receipt of the confirmation by the originator PSP by the ninth second. Ten seconds is the outer deadline under the amended SEPA Regulation. If no confirmation has arrived at ten seconds, the originator PSP restores the payer account. A later positive or negative confirmation can still arrive and must be communicated.
The timeline was set in version 1.0 and carried through version 1.1. The European Payments Council says version 1.2 has no impact on other business or operational rules compared with version 1.1. The rulebook page and the version 1.2 PDF cover were re-checked on 20 November 2026. The next regular SCT Inst rulebook is now due for publication in the second quarter of 2027 and takes effect no earlier than the end of the third quarter of 2028.
CHECKED 2026-11-20RECHECK BY 2026-12-31
Sources & standards — 1 source
- Scheme-specific rule2025 version 1.2 (EPC004-16)
2025 SEPA Instant Credit Transfer rulebook version 1.2 (EPC004-16) ↗ — European Payments Council · 2025 v1.2 cover/effective 30 Sep 2026; sections 1.4 and 4.2.3 timing model; re-checked 20 November 2026: still in effect, no operational-rule change claimed vs 1.1; EPC SCT Inst page: next regular rulebook published Q2 2027, in effect end Q3 2028 at the earliest.
Version 1.2 formally replaced version 1.1 at its publication on 30 September 2026 (the European Payments Council's wording, seen as a search excerpt; the page was not opened). The change is limited to address-message elements and delays the previously planned end date for unstructured addresses. The EPC states that no other business or operational rules changed compared with version 1.1.
Selected primary follow-up7November2026: actual EPC004-16 2025v1.2 PDF, issued/effective30September2026, operative4.2.1–3A–D/fn14,4.3.1 and4.3.2.1–4 read. Successful checks require reservation; formal debit follows Originator PSP receipt of positive confirmation; beneficiary availability follows certainty of delivery to its CSM. Restoration lifts the reservation while settlement certainty continues until confirmation; late-positive notice is required and further action is outside the Scheme.
Recall and RFRO have distinct grounds and authorisation rules. Not all142pages, AnnexIII, licensed implementation guidelines, private CSM profiles or reproduction permission. Prior search-only release-history note remains historical.
Re-checked 12 November 2026: 2025 SCT Inst rulebook version 1.2 remains the edition in effect; published/effective 30 September 2026; unstructured-address end date removed with no replacement yet.
PRACTISE AND KEEP
Sources for this topic — 11 sources
- Market practice
Guaranteed Delivery (Enterprise Integration Patterns) ↗ — Gregor Hohpe and Bobby Woolf · Enterprise Integration Patterns, Guaranteed Delivery: make messages persistent so they are not lost if the messaging system crashes; channels write messages to disk; a send succeeds once the message is in the sender's local store, and a store removes its copy only after the next store has saved it (search excerpts, page not opened)
A book catalogue of patterns, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Dead Letter Channel (Enterprise Integration Patterns) ↗ — Gregor Hohpe and Bobby Woolf · Enterprise Integration Patterns, Dead Letter Channel and Invalid Message Channel: a messaging system may move a message it cannot or should not deliver to a dead letter channel; the invalid message channel holds messages a receiver cannot make sense of; the two are distinct (search excerpts, page not opened)
A book catalogue of patterns, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Idempotent Receiver (Enterprise Integration Patterns) ↗ — Gregor Hohpe and Bobby Woolf · Enterprise Integration Patterns, Idempotent Receiver: duplicates are expected even when the sender sends once, so design a receiver that can safely receive the same message more than once, by de-duplication or by message semantics that make repeats harmless (search excerpt, page not opened)
A book catalogue of patterns, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Using dead-letter queues in Amazon SQS ↗ — Amazon Web Services · Amazon SQS Developer Guide, dead-letter queues: a redrive policy sets, through maxReceiveCount, how many times a consumer may receive a message before it moves to a dead-letter queue; the guide gives a value of 1 as an example where one failure moves the message, and advises a value high enough for retries; the queue type of a dead-letter queue must match its source; messages can be redriven back to the source queue, and redriven messages are treated as new messages (search excerpts, page not opened)
One product's behaviour, used as an example. Defaults are not stated. Seen as WebSearch excerpts on the access date; the page was not opened.
8 November 2026: complete substantive primary DLQ guide read; configured redrive/access policies and receive counts; standard/FIFO retention differ. Numeric application failure counts do not establish queue movement.
- Market practice
Kafka Message Delivery Guarantees ↗ — Confluent · Confluent documentation of Kafka message delivery guarantees: many systems claim exactly-once delivery but the claims often ignore failures of a producer or consumer outside the system; the idempotent producer deduplicates retries by producer ID and sequence number, within one producer session; transactions write to several partitions atomically; consumer processing is at-least-once when a crash falls after processing and before the position is saved, and giving each message a primary key makes a repeat overwrite the same record (search excerpts, page not opened)
One vendor's description of one product, used as an example. The page may lag the current Kafka docs. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Consumer Acknowledgements and Publisher Confirms (RabbitMQ) ↗ — RabbitMQ · RabbitMQ documentation: with manual acknowledgements an unacknowledged delivery is requeued when its channel or connection closes, so consumers must be ready for redelivery; consumer prefetch caps unacknowledged deliveries on a channel and the broker stops delivering until one is acknowledged; publisher confirms tell a publisher which messages the broker has taken, and a publisher can cap how many it has unconfirmed (search excerpts, page not opened)
One product's behaviour, used as an example. Values are not stated. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Queue Length Limit (RabbitMQ) ↗ — RabbitMQ · RabbitMQ queue length limit: when a limit is reached the default overflow drops or dead-letters the oldest messages; reject-publish refuses the newest messages and, with publisher confirms, sends a negative acknowledgement (search excerpts, page not opened)
One product's behaviour, used as an example. Values are not stated. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Pattern: Idempotent Consumer ↗ — Chris Richardson (microservices.io) · microservices.io, Idempotent Consumer: brokers with at-least-once delivery can invoke a consumer more than once for the same message; record processed message IDs in the same transaction so a repeat is ignored; a consumer that updates a database and crashes before acknowledging is sent the message again (search excerpts, page not opened)
An individual author's pattern catalogue, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Larkpay, Bank Alfa and Maya Chen are invented. The kitchen belt is an illustration. Product behaviour is shown through one cloud queue, one streaming platform and one broker as examples, and other products differ. Every source was read as a search excerpt and no page was opened. These are market-practice sources, not payments standards. The design review questions at level 4 are this site's reasoning.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
Introduction to Integration Styles (Enterprise Integration Patterns) ↗ — Gregor Hohpe and Bobby Woolf · Enterprise Integration Patterns, Introduction to Integration Styles: File Transfer, Shared Database, Remote Procedure Invocation and Messaging; remote calls run in real time and can tie systems closely together (search excerpt, page not opened)
A book catalogue of patterns, not a standard. Search excerpt, page not opened: returned by WebSearch on 2026-10-18. WebFetch could not reach the publisher from the authoring environment. The Remote Procedure Invocation and Messaging pages of the same catalogue were also returned.
- Scheme-specific rule2025 version 1.2 (EPC004-16)
2025 SEPA Instant Credit Transfer rulebook version 1.2 (EPC004-16) ↗ — European Payments Council · Execution timeline and time limit, restoring the payer account when no confirmation has arrived, and belated confirmations (version 1.1 text read; version 1.2 change statement seen as a search excerpt)
Version 1.2 formally replaced version 1.1 at its publication on 30 September 2026 (the European Payments Council's wording, seen as a search excerpt; the page was not opened). The change is limited to address-message elements and delays the previously planned end date for unstructured addresses. The EPC states that no other business or operational rules changed compared with version 1.1.
Selected primary follow-up7November2026: actual EPC004-16 2025v1.2 PDF, issued/effective30September2026, operative4.2.1–3A–D/fn14,4.3.1 and4.3.2.1–4 read. Successful checks require reservation; formal debit follows Originator PSP receipt of positive confirmation; beneficiary availability follows certainty of delivery to its CSM. Restoration lifts the reservation while settlement certainty continues until confirmation; late-positive notice is required and further action is outside the Scheme.
Recall and RFRO have distinct grounds and authorisation rules. Not all142pages, AnnexIII, licensed implementation guidelines, private CSM profiles or reproduction permission. Prior search-only release-history note remains historical.
Re-checked 12 November 2026: 2025 SCT Inst rulebook version 1.2 remains the edition in effect; published/effective 30 September 2026; unstructured-address end date removed with no replacement yet.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.