Implement service layer #3

Merged
krendelhoff merged 5 commits from phase-3-service-layer into master 2025-08-22 16:40:01 +03:00
Showing only changes of commit 639a9e5216 - Show all commits

View file

@ -46,21 +46,25 @@
- [X] Implement quote fetching with HTTP client
- [X] Add basic error handling
## Phase 3: Basic Server Architecture
- [ ] Set up dependency injection framework (wire/dig)
- [ ] Create core interfaces and contracts
## Phase 3: Service Layer Implementation
**Goal**: Complete service layer with DI for handling requests (untied from TCP presentation)
- [X] Create service layer interfaces and contracts
- [X] Implement quote request service workflow
- [X] Integrate PoW challenge generation and verification
- [X] Set up simple dependency wiring
- [X] Implement full request-response cycle
- [X] Add comprehensive service layer tests
- [X] Add error handling and validation
- [X] Create public concrete WisdomService type
- [X] Add workflow tests with real PoW implementations
- [X] Add unsuccessful flow tests for invalid solutions
## Phase 4: Basic Server Architecture
- [ ] Set up structured logging (zerolog/logrus)
- [ ] Set up metrics collection (prometheus)
- [ ] Create configuration management
- [ ] Integrate PoW and quote packages into server architecture
## Phase 4: Quote Management System
- [ ] Define quote storage interface
- [ ] Implement in-memory quote repository (fake)
- [ ] Create quote selection service (random)
- [ ] Load initial quote collection from file/config
- [ ] Add quote validation and sanitization
- [ ] Write unit tests for quote management
- [ ] Integrate all components into server architecture
## Phase 5: TCP Protocol Implementation
- [ ] Implement binary message protocol codec