You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: await processEvent before acking RabbitMQ message to restore backpressure
Unawaited func() caused channel.ack() to fire synchronously before any
HTTP requests were made, making AMQP_PREFETCH_MESSAGES completely
ineffective and creating unbounded concurrent connections under load.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -291,7 +291,7 @@ All configuration is done through environment variables. See `.env.sample` for a
291
291
|`HTTP_TIMEOUT`| No |`1000`| Webhook HTTP client timeout in milliseconds |
292
292
|`HTTP_MAX_REDIRECTS`| No |`0`| Max redirects followed when dispatching webhooks |
293
293
|`DB_HEALTH_CHECK_TIMEOUT`| No |`5000`| Database health check timeout in milliseconds |
294
-
|`AMQP_PREFETCH_MESSAGES`| No |`10`| RabbitMQ prefetch message count |
294
+
|`AMQP_PREFETCH_MESSAGES`| No |`100`| RabbitMQ prefetch message count |
295
295
|`WEBHOOK_AUTO_DISABLE`| No |`false`| Auto-disable webhooks that exceed the failure threshold |
296
296
|`WEBHOOK_FAILURE_THRESHOLD`| No |`90`| Failure rate percentage (0–100) above which a webhook is auto-disabled |
297
297
|`WEBHOOK_HEALTH_MINUTES_WINDOW`| No |`60`| Rolling window in minutes used to compute per-webhook failure rates |
@@ -316,4 +316,4 @@ This repository contains code developed under two different ownership and licens
316
316
317
317
Users who require a purely MIT-licensed codebase should base their work on the `sef-mit-final` tag. The historical MIT-licensed code remains MIT and is not retroactively relicensed.
0 commit comments