Skip to content

Implement concurrent note generation with persistent JSON storage - #5

Merged
RD2W merged 4 commits into
devfrom
feature/rw-files-study
Nov 8, 2025
Merged

Implement concurrent note generation with persistent JSON storage#5
RD2W merged 4 commits into
devfrom
feature/rw-files-study

Conversation

@RD2W

@RD2W RD2W commented Nov 7, 2025

Copy link
Copy Markdown
Owner

This PR introduces a complete concurrent architecture for the notes application with persistent storage capabilities. The implementation uses goroutines and channels for efficient data processing while maintaining data persistence through JSON file storage.

Features Added

  • Persistent JSON Storage: Added JSON file-based repository that saves data to disk with automatic loading on startup
  • Repository Factory Pattern: Created a flexible factory system supporting multiple storage backends (RAM and JSON)

Technical Details

  • JSON repository automatically creates timestamped files for data persistence
  • Repository factory allows easy switching between storage types
  • Application loads existing data from JSON files on startup

RD2W added 4 commits November 7, 2025 21:45
- Implement JSON file-based repository with automatic data persistence
- Add repository factory pattern supporting both RAM and JSON storage types
- Create logging mechanism to monitor data changes in real-time
- Implement automatic data loading from JSON files on application startup
…es from file

- Add initialNotesCount field to JSONRepository to track notes loaded from file
- Modify GetNewNotes method to exclude loaded notes from 'new' count
- Update LoadFromStorage to set initial notes count after loading
- Keep only summary message about loaded notes count
@RD2W
RD2W merged commit ce10c29 into dev Nov 8, 2025
4 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

Development

Successfully merging this pull request may close these issues.

1 participant