Assignment Dispatch Service
Component Detail
Service Layer
high complexity
backend
2
Dependencies
0
Dependents
3
Entities
0
Integrations
Description
Backend service that handles coordinator-initiated assignment creation. Fetches the target peer mentor's public key, encrypts the sensitive payload, persists ciphertext to the database, and triggers a push notification to the recipient device.
assignment-dispatch-service
Responsibilities
- Fetch recipient peer mentor's public key from user profile
- Encrypt assignment payload with recipient's public key via Encryption Service
- Persist encrypted assignment record to database
- Trigger push notification to peer mentor on dispatch
- Validate coordinator has required RBAC permissions for dispatch
Interfaces
dispatchAssignment(request: DispatchAssignmentRequest): Future<Assignment>
getRecipientPublicKey(userId: String): Future<Uint8List>
getOpenAssignments(coordinatorId: String): Future<Assignment[]>
Relationships
Dependencies (2)
Components this component depends on
Related Data Entities (3)
Data entities managed by this component