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

Add exponential backoff with jitter for the In-App Notification Center to re-establish WebSocket connections #5321

Conversation

djabarovgeorge
Copy link
Contributor

What change does this PR introduce?

During our most recent incident we observed that the In-app notification center was constantly tring to reconnect to the websocket service and creating a thundering herd on our websocket system.

export function addJitter(time, variance = 0.1): number {

Why was this change needed?

This will prevent our system from being overloaded if a network failure or a upgrade happens.

Other information (Screenshots)

Copy link

netlify bot commented Mar 20, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit e8477dc
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/65faf599249c5f0008c51ad0
😎 Deploy Preview https://deploy-preview-5321--dev-web-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@djabarovgeorge djabarovgeorge merged commit a7e0145 into next Mar 21, 2024
27 checks passed
@djabarovgeorge djabarovgeorge deleted the nv-3207-add-exponential-backoff-with-jitter-for-the-in-app-notification-center branch March 21, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants