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

sds: Implement periodic maintenance tasks for message synchronization #2231

Open
adklempner opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@adklempner
Copy link
Member

  1. Create dependency resolution system:

    • Scan incoming buffer for messages with missing dependencies
    • Track age of pending messages
    • Request missing messages from peers
    • Prioritize older pending messages
    • Handle timeout/failure cases for unresolvable dependencies
  2. Implement unacknowledged message management:

    • Track age of unacknowledged outgoing messages
    • Implement priority-based rebroadcast strategy
    • Handle messages that exceed retry limits
    • Manage buffer size through pruning old messages
    • Track successful redelivery attempts
  3. Add sync message system:

    • Track time since last message on each channel
    • Generate empty sync messages when channel is idle
    • Include current Bloom filter state in sync messages
    • Maintain minimum interval between sync messages
    • Handle sync message priority vs regular messages
  4. Create maintenance scheduler:

    • Implement configurable maintenance intervals
    • Coordinate different maintenance tasks
    • Handle task failures gracefully
    • Provide monitoring/metrics for maintenance operations
    • Support manual trigger of maintenance tasks
@chair28980 chair28980 added this to Waku Jan 28, 2025
@adklempner adklempner changed the title sds: Implement periodic maintenance tasks for message synchronization. sds: Implement periodic maintenance tasks for message synchronization Jan 28, 2025
@weboko weboko moved this to To Do in Waku Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

No branches or pull requests

1 participant