Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Updated email analytics job to prioritize open events #20800

Merged
merged 7 commits into from
Aug 20, 2024

Conversation

9larsons
Copy link
Contributor

@9larsons 9larsons commented Aug 20, 2024

ref https://linear.app/tryghost/issue/ENG-1477

  • updated email analytics job to prioritize open events
  • put limits on non-open event fetching
  • updated job to now restart itself until processing is at a sufficiently low volume

Previously the EmailAnalytics job would process all event data equally. When there's sufficient recipients (>20k), we could see delays in the open rate data in Admin because of all the delivered events being processed. Open events are far more important to users, so we've now prioritized processing those events before any others.

Processing of events shouldn't be any faster or slower with this as this doesn't change throughput, just order.

NOTE: Use the mailgun-mock-server in TryGhost/Toolbox for testing.

… a newsletter

ref https://linear.app/tryghost/issue/ENG-1477
- updated email analytics job to prioritize open events
- put limits on non-open event fetching
- updated job to now restart itself until processing is at a sufficiently low volume

Previously the EmailAnalytics job would process all event data equally. When there's sufficient recipients (>20k), we could see delays in the open rate data in Admin because of all the delivered events being processed. Open events are far more important to users, so we've now prioritized processing those events before any others.

Processing of events shouldn't be any faster or slower with this as this doesn't change throughput, just order.

NOTE: Use the mailgun-mock-server in TryGhost/Toolbox for testing.
@9larsons 9larsons enabled auto-merge (squash) August 20, 2024 16:48
@9larsons 9larsons merged commit 4267ff9 into main Aug 20, 2024
21 checks passed
@9larsons 9larsons deleted the prioritize-open-events-analytics branch August 20, 2024 17:25
9larsons added a commit that referenced this pull request Aug 27, 2024
9larsons added a commit that referenced this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant