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

Implement Storage Synchronizer #78

Closed
eneshoxha opened this issue May 23, 2022 · 0 comments · Fixed by #79
Closed

Implement Storage Synchronizer #78

eneshoxha opened this issue May 23, 2022 · 0 comments · Fixed by #79
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@eneshoxha
Copy link
Contributor

Storage Synchronizer is a standalone process that will consumer .bin files written from the Producer Node and will store into topics.

The storage will be done into Ledgers, each ledger will have around 5000 messages stored.

The payload of the message will be stored as binary.

Discussion: Should we make Ledgers created every one hour or should we have it done by the numbers of messages written into the Ledger.

  • For each Ledger Storage Synchronizer will store the status into ledger_logs and will do snapshots.
  • Should ledger_logs be stored as .json configuration file or should me use SQLite to store the configuration.
    • Recommandation is using SQLite db.

ledger_logs should provide table
ledgers for topic
| ledger_id | ledger_location | entries| createdDate | status

ledger_id ledger_location entries createdDate status size
10001 root/data/topic/msg_10001_date.andx 5000 2022-05-23 Closed 100MB
10002 root/data/topic/msg_10002_date.andx 6500 2022-05-23 Closed 100MB
10003 root/data/topic/msg_10003_date.andx 75 2022-05-23 Opened 100MB
@eneshoxha eneshoxha added the enhancement New feature or request label May 23, 2022
@eneshoxha eneshoxha self-assigned this May 23, 2022
@eneshoxha eneshoxha added this to the v3.0 milestone May 23, 2022
@eneshoxha eneshoxha linked a pull request May 26, 2022 that will close this issue
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
Development

Successfully merging a pull request may close this issue.

2 participants