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

Feature: Panic recovery in NATS event subscription. #4395

Closed
2 tasks done
Ash-exp opened this issue Dec 13, 2023 · 0 comments · Fixed by devtron-labs/common-lib#30 or #4399
Closed
2 tasks done

Feature: Panic recovery in NATS event subscription. #4395

Ash-exp opened this issue Dec 13, 2023 · 0 comments · Fixed by devtron-labs/common-lib#30 or #4399
Assignees
Labels
enhancement New feature or request

Comments

@Ash-exp
Copy link
Contributor

Ash-exp commented Dec 13, 2023

🔖 Feature description

In case of pub sub client if the callback process throws panic, the consumer micro service gets killed abruptly. Also the faulty event doesn't get acknowledged and marked for redelivery in the message queue. This causes an issue where our micro service gets multiple restarts as we process the faulty event in an infinite loop.

To tackle this issue we can recover panic gracefully and publish an event with the required informations and logs for quick support/ fix. Also graceful recovery will ensure no downtime for the consumer service.

🎤 Pitch / Usecases

This will be helpful to address the runtime issues (inside the callback function) or fault events.

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

AB#7459

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants