Ghost/ghost/mailgun-client
Steve Larson a1c4e64994
Added queueing middleware to handle high request volume (#19887)
ref https://linear.app/tryghost/issue/CFR-4/
- added request queueing middleware (express-queue) to handle high
request volume
- added new config option `optimization.requestQueue`
- added new config option `optimization.requestConcurrency`
- added logging of request queue depth - `req.queueDepth`

We've done a fair amount of investigation around improving Ghost's
resiliency to high request volume. While we believe this to be partly
due to database connection contention, it also seems Ghost gets
overwhelmed by the requests themselves. Implementing a simple queueing
system allows us a simple lever to change the volume of requests Ghost
is actually ingesting at any given time and gives us options besides
simply increasing database connection pool size.

---------

Co-authored-by: Michael Barrett <mike@ghost.org>
2024-03-21 09:25:07 -05:00
..
lib Fixed mailto unsubscribe header to only unsubscribe current tags (#18995) 2023-11-15 12:57:24 +00:00
test Added bulkEmail.batchSize option to configure batch size 2023-06-26 12:57:44 +02:00
.eslintrc.js Extracted Mailgun client to separate package 2022-08-10 17:12:37 +02:00
index.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
package.json Added queueing middleware to handle high request volume (#19887) 2024-03-21 09:25:07 -05:00
README.md Extracted Mailgun client to separate package 2022-08-10 17:12:37 +02:00

Mailgun Client

Mailgun client for Ghost

Usage

Test

  • yarn lint run just eslint
  • yarn test run lint and tests