Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(ingress): reflow the re-queue paragraphs
Yudhi Armyndharis1795588b45ce
diff --git a/docs/25-integration-fabric.md b/docs/25-integration-fabric.mdindex b94612dd4..a5bcf6546 100644--- a/docs/25-integration-fabric.md+++ b/docs/25-integration-fabric.md@@ -155,12 +155,11 @@ Four tables live on the data connection, each created by a hand-authored dual-diThe row carries the **full request payload only while it is the sole durability handle** — from thepersist until the dispatch outcome is recorded. Once the dispatch tier owns the delivery (the BullMQjob data, or the DLQ row on failure), the payload is retired to `NULL` and the row slims to its- dedup marker plus- `payloadHash` (a sha256 of the raw body kept for operator correlation). This keeps steady-state- growth at a few hundred bytes per delivery instead of up to 2× `maxBodyBytes`; dedup rows are- pruned on their own short window (`INGRESS_DEDUP_RETENTION_DAYS`, default 7 — a dedup oracle is not- an audit log, and `<= 0` falls back to the default rather than disabling the prune into unbounded- growth).+ dedup marker plus `payloadHash` (a sha256 of the raw body kept for operator correlation). This keeps+ steady-state growth at a few hundred bytes per delivery instead of up to 2× `maxBodyBytes`; dedup+ rows are pruned on their own short window (`INGRESS_DEDUP_RETENTION_DAYS`, default 7 — a dedup+ oracle is not an audit log, and `<= 0` falls back to the default rather than disabling the prune+ into unbounded growth).- **`integration_delivery_failures`** — a dead-letter record of last resort for both directions, with aredrive path (added in P1).@@ -251,18 +250,17 @@ live path uses and with the original delivery id as job id, so a replay is idempthe crashed live path may have enqueued. The stored row is sufficient for re-dispatch — while`pending` it is the full verified request (headers/query/body/rawBody) plus the route and sessionprovenance; the conversation lane is re-derived from the current manifest. After-`INGRESS_RECONCILE_MAX_ATTEMPTS` (default 5) the row goes `failed` and a dead-letter row-is guaranteed to exist **before** the row's payload is retired, so recovery continues through the+`INGRESS_RECONCILE_MAX_ATTEMPTS` (default 5) the row goes `failed` and a dead-letter row is+guaranteed to exist **before** the row's payload is retired, so recovery continues through thebounded redrive path instead of an infinite replay loop; a successful replay likewise retires therow's payload with the `dispatched` mark and retires any live-path dead-letter row for the samedelivery so a later redrive never double-delivers. The replay looks the queue job up first: a jobstill in the queue or completed, or a live or completed re-queued copy of it, takes the `dispatched`mark without a second enqueue, and a job that failed with no such copy is not replayed: the row goes`failed` with a dead-letter row guaranteed as above, so none is written while a copy can still-deliver. A `pending` row found without a payload (only-possible for imported/corrupt history — payloads are retired only with a recorded outcome) is-excluded from the sweep and never replayed empty; nothing logs it, and it stays `pending` until-`INGRESS_DEDUP_RETENTION_DAYS` prunes it.+deliver. A `pending` row found without a payload (only possible for imported/corrupt history —+payloads are retired only with a recorded outcome) is excluded from the sweep and never replayed+empty; nothing logs it, and it stays `pending` until `INGRESS_DEDUP_RETENTION_DAYS` prunes it.Table growth is bounded by construction rather than by operator hygiene: the per-instance ingressthrottle caps the row-creation rate, dispatched rows slim to a marker + hash, and the two retention