Service Layer high complexity mobilebackend
3
Dependencies
1
Dependents
3
Entities
0
Integrations

Description

Handles batch submission of the same activity for multiple peer mentors. Runs duplicate detection for every participant, collects all conflicts for coordinator review, and submits the validated batch as an atomic database transaction.

Feature: Proxy & Bulk Activity Registration

bulk-registration-service

Responsibilities

  • Run per-participant duplicate detection before batch submission
  • Aggregate all conflicts into a reviewable summary for the coordinator
  • Execute batch insert of all approved registrations in a single transaction
  • Return a per-participant result map indicating success or skipped duplicates

Interfaces

submitBulkRegistration(BulkRegistrationRequest request)
previewDuplicates(BulkRegistrationRequest request)
confirmBatchWithConflicts(BulkRegistrationRequest request, List<String> skipMentorIds)
getBatchResult(String batchId)

Relationships

Dependencies (3)

Components this component depends on

Dependents (1)

Components that depend on this component

API Contract

View full contract →
REST /api/v1/bulk-registrations 5 endpoints
GET /api/v1/bulk-registrations List bulk registration jobs
GET /api/v1/bulk-registrations/:id Get bulk registration job details including per-mentor results
POST /api/v1/bulk-registrations Create bulk activity registration for multiple mentors (buildBatchPayload + executeBatchInsert internally)
PUT /api/v1/bulk-registrations/:id Retry failed records in a bulk registration job
DELETE /api/v1/bulk-registrations/:id Cancel or delete a bulk registration job