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

Auto-update in real time using github webhooks #1

Open
xyloflake opened this issue Sep 22, 2024 · 1 comment
Open

Auto-update in real time using github webhooks #1

xyloflake opened this issue Sep 22, 2024 · 1 comment
Assignees

Comments

@xyloflake
Copy link
Contributor

No description provided.

@xyloflake
Copy link
Contributor Author

xyloflake commented Sep 23, 2024

@gamersi

Problem with Real-time Webhook Integrated Autoupdate:

This implementation would rely solely on real-time webhooks, which may miss updates if mufbot is offline. If a release occurs during downtime, the webhook notification is lost, and the application will not receive it when restarted.

Proposed Solution

Implement a hybrid autoupdate mechanism combining:

  1. Initial Startup Version Check
  2. Real-time Webhook Notifications

Key Benefits

  • Ensures updates are not missed during application downtime
  • Provides seamless integration with real-time webhooks
  • Guarantees the application stays up-to-date upon restart
  • Enhances overall update reliability and accuracy
  • Minimizes potential errors and conflicts

Implementation Details

  • Initial Version Check on Startup:
    Upon startup, the application will check the current version against the latest available version from github releases.

  • Real-time Webhook Connection:
    Establish a real-time connection to receive webhook notifications for updates as they occur.

Important

  • Store Update History:
    Maintain a log of update history for reference, allowing the application to track what updates were missed during downtime.
  • Handle Edge Cases:
    Implement logic to manage scenarios where multiple updates occur during downtime, ensuring the application can apply all relevant updates in the correct order.

By adopting this hybrid approach, we can ensure our application stays current and functional, even when offline.

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

No branches or pull requests

2 participants