Aller au contenu
Français

DegradedPayload

Ce contenu n’est pas encore disponible dans votre langue.

DegradedPayload = object

Defined in: src/deadletters/DeadLetterEntry.ts:33

A payload that could not be written to the durable store.

The tagged-JSON encoder refuses functions, symbols, Promise, weak collections and cycles rather than degrading them silently, so a persistent queue has to choose between losing the letter and losing the payload. It loses the payload: that a message to this recipient died, and when, is the part an operator acts on, and a queue that silently skips its hardest cases is worse than one that says which ones it could not keep. Such an entry is not replayable — there is nothing to redeliver — and replay refuses it rather than sending a placeholder.

readonly className: string

Defined in: src/deadletters/DeadLetterEntry.ts:36

Constructor name of the message, or typeof for a primitive.


readonly kind: "degraded"

Defined in: src/deadletters/DeadLetterEntry.ts:34


readonly reason: string

Defined in: src/deadletters/DeadLetterEntry.ts:38

Why the encoder refused it — the SerializationError’s message.