Ghost/ghost/email-service
Simon Backx 4b0ca9399d 🐛 Reduced concurrency when fetching Mailgun events (#16176)
refs https://github.com/TryGhost/Team/issues/2482

This change adds a small sleep in between dispatching events in the
worker thread that reads the events from Mailgun. That should reduce the
amount of queries we fire parallel to each other and could cause the
connection pool to run out of connections.

It also reduces the amount of concurrent sending to 2 from 10. Also to
make sure the connection pool doesn't run out of connections while
sending emails, and to reduce the chance of new connections falling back
on a (delayed) replicated database.
2023-01-25 13:07:01 +01:00
..
lib 🐛 Reduced concurrency when fetching Mailgun events (#16176) 2023-01-25 13:07:01 +01:00
test 🐛 Reduced concurrency when fetching Mailgun events (#16176) 2023-01-25 13:07:01 +01:00
.eslintrc.js Added email service package (#15849) 2022-11-21 10:29:53 +01:00
index.js Added mailgun provider for sending emails (#15896) 2022-11-30 16:21:58 +05:30
package.json Updated email sending to remove invalid recipient emails (#16171) 2023-01-24 16:13:10 +05:30
README.md Added email service package (#15849) 2022-11-21 10:29:53 +01:00

Email Service

Manages how posts are sent via email

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

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