Skip to content

feat(backend): : improve backend reliability, observability, and even…#1284

Merged
martinvibes merged 2 commits into
Web3Novalabs:mainfrom
OSEH-svg:feat/backend-reliability-improvements
Jun 27, 2026
Merged

feat(backend): : improve backend reliability, observability, and even…#1284
martinvibes merged 2 commits into
Web3Novalabs:mainfrom
OSEH-svg:feat/backend-reliability-improvements

Conversation

@OSEH-svg

Copy link
Copy Markdown
Contributor

Closes #1161
Closes #1167
Closes #1170
Closes #1171

feat(backend): improve backend reliability, observability, and event processing

Summary

This PR introduces several backend improvements focused on application reliability, monitoring, and event processing. The changes improve server lifecycle management, expose runtime health information, prevent duplicate event processing, and add transaction fee statistics logging from Stellar Horizon.

Changes

Graceful shutdown handling

  • Implement graceful shutdown signal handling in main.rs.
  • Ensure the Axum server exits cleanly on termination signals.
  • Gracefully stop background workers and release application resources.
  • Prevent abrupt shutdowns that could interrupt in-flight requests or background tasks.

Health dashboard API

  • Add a health dashboard endpoint for backend monitoring.
  • Expose service health and runtime status.
  • Follow existing Axum routing conventions under routes/v1.rs.
  • Provide a structured response suitable for dashboards and monitoring tools.

Duplicate event protection

  • Prevent duplicate processing within the event listener.
  • Add safeguards to ensure the same event is processed only once.
  • Improve event synchronization reliability and overall system consistency.

Stellar Horizon fee statistics

  • Log transaction fee statistics retrieved from Stellar Horizon.
  • Improve backend observability with additional runtime metrics.
  • Make fee information available for operational monitoring and debugging.

Testing

Verified by running the backend test suite:

cd backend
cargo test

Impact

  • Improved application shutdown reliability.
  • Better operational visibility through health monitoring.
  • More resilient event processing by eliminating duplicate handling.
  • Enhanced logging and observability for Stellar network transaction fees.

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@OSEH-svg is attempting to deploy a commit to the shola's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@OSEH-svg Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@martinvibes

Copy link
Copy Markdown
Collaborator

Nice implemention
keep it up

@martinvibes martinvibes merged commit e7d0086 into Web3Novalabs:main Jun 27, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants