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 a Data Persistence Worker #12

Open
4 of 5 tasks
proXDhiya opened this issue Aug 24, 2024 · 0 comments
Open
4 of 5 tasks

Implement a Data Persistence Worker #12

proXDhiya opened this issue Aug 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request RDB Redis Database Worker Worker update

Comments

@proXDhiya
Copy link
Owner

proXDhiya commented Aug 24, 2024

We need to implement a worker will handle data persistence within our application. This worker should listen for a save signal, take a snapshot of the current application data, and save it to a file named dump.rdb by default in the same file path as the application.

Requirements:

  • The worker should be able to:
    • Listen for a save signal within the application.
    • Capture a copy of the current application data.
    • Serialize the data according to the RDB (Redis Data Persistence) file format.
    • Save the serialized data to dump.rdb in the same file path as the application by default.

Acceptance Criteria:

  • The worker listens for and correctly responds to the save signal.
  • Data is accurately captured and serialized according to the RDB format.
  • The serialized data is saved to a file named dump.rdb in the appropriate file path.
  • The implementation is tested to ensure that the dump.rdb file can be used for data restoration.
  • The file name should follow the arguments if set or uses dump.rdb

Additional Notes:

  • Ensure the implementation follows best practices for worker design in BunJS.
  • Consider edge cases where the save signal may be triggered multiple times in quick succession.
@proXDhiya proXDhiya self-assigned this Aug 24, 2024
@proXDhiya proXDhiya added enhancement New feature or request Worker Worker update RDB Redis Database labels Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request RDB Redis Database Worker Worker update
Projects
None yet
Development

No branches or pull requests

1 participant