How upc-pre-202610-1asi0657-9206-nimbuspath/rutasegura-backend works
RutaSegura is a backend for school-transport operations: IAM and Administration manage organizations, fleets and routes; families register students and enroll them; Trip-Tracking runs journeys; Notification consumes trip events and provides a durable inbox and push channels. The documented end-to-end flow crosses these bounded contexts through HTTP and messaging, with a gateway as the app entry point. Edges are limited to relationships explicit in the README or sampled source; some service internals and wiring are unsampled, so their connections are omitted rather than inferred.
Main entry points: Program.cs Monolith host · Route.cs Route operations · ProxyPipeline.cs API gateway · TripsController.cs Trip HTTP API
Components 22
Entry and identity
- API gateway
src/ApiGateway/Proxy/ProxyPipeline.cs - IAM accounts
src/Monolith/Iam/Domain/Model/Aggregates/User.cs
Monolith operations
- Route operations
src/Monolith/Administration/Domain/Model/Aggregates/Route.cs - Driver roster
src/Monolith/Administration/Domain/Model/Aggregates/Driver.cs - Family and enrollment
src/Monolith/Stakeholder/Domain/Model/Aggregates/Student.cs - Plans and quotas
src/Monolith/Subscription/Domain/Model/Aggregates/Plan.cs - Monolith host
src/Monolith/Program.cs
Trip tracking
- Trip HTTP API
src/Services/Trip-Tracking/src/RutaSegura.TripTracking.Api/Controllers/TripsController.cs - Trip lifecycle
src/Services/Trip-Tracking/src/RutaSegura.TripTracking.Domain/Trips/Trip.cs - Trip persistence
src/Services/Trip-Tracking/src/RutaSegura.TripTracking.Infrastructure/Persistence/Repositories/Repositories.cs - Trip scheduling
src/Services/Trip-Tracking/src/RutaSegura.TripTracking.Infrastructure/Scheduling/TripSchedulingWorker.cs - Location tracking
src/Services/Trip-Tracking/src/RutaSegura.TripTracking.Api/Controllers/MeController.cs - Trip event exchange
src/Monolith/Administration/Infrastructure/Messaging/Inbound/TripTrackingEventsConsumer.cs
Notifications
- Notification HTTP API
src/Services/Notification/src/RutaSegura.Notification.Interfaces/Rest/Controllers/NotificationsController.cs - Notification inbox
src/Services/Notification/src/RutaSegura.Notification.Domain/Model/Aggregates/Notification.cs - Trip event handler
src/Services/Notification/src/RutaSegura.Notification.Application/Internal/CommandServices/Handlers/ReceiveTripEventHandler.cs - Delivery channels
src/Services/Notification/src/RutaSegura.Notification.Infrastructure/Channels/NotificationChannelWorker.cs - Push subscriptions
src/Services/Notification/src/RutaSegura.Notification.Interfaces/Rest/Controllers/PushSubscriptionsController.cs
Other components
- Mobile and web apps
- RabbitMQ
- Firebase Cloud Messaging
- MySQL stores
Connections 26
- Mobile and web apps → API gateway: sends requests
- API gateway → Monolith host: proxies routes
- API gateway → Trip HTTP API: proxies routes
src/ApiGateway/Proxy/ProxyPipeline.cs - API gateway → Notification HTTP API: proxies routes
- Mobile and web apps → Monolith host: uses IAM
- Monolith host → IAM accounts: hosts accounts
- Monolith host → Route operations: hosts operations
- Monolith host → Family and enrollment: hosts enrollment
- Monolith host → Plans and quotas: hosts plans
- Driver roster → Route operations: assigns drivers
src/Monolith/Administration/Domain/Model/Aggregates/Route.cs - Plans and quotas → Route operations: supplies quota
src/Monolith/Administration/Domain/Model/Aggregates/Route.cs - Family and enrollment → Route operations: requests route planning
src/Monolith/Stakeholder/Application/Internal/QueryServices/StakeholderQueryService.cs - Trip HTTP API → Trip lifecycle: handles trips
- Trip HTTP API → Trip persistence: persists trips
- Trip scheduling → Trip persistence: stores schedules
- Trip event exchange → Route operations: updates alerts and records
- Trip event exchange → RabbitMQ: consumes events
- Trip HTTP API → RabbitMQ: publishes events
- Trip event handler → Notification inbox: creates inbox entries
- RabbitMQ → Trip event handler: delivers trip events
- Notification HTTP API → Notification inbox: reads inbox
src/Services/Notification/src/RutaSegura.Notification.Interfaces/Rest/Controllers/NotificationsController.cs - Push subscriptions → Delivery channels: manages subscriptions
- Delivery channels → Firebase Cloud Messaging: delivers push
- Notification inbox → MySQL stores: persists inbox
- Trip persistence → MySQL stores: persists journeys
- Location tracking → Trip lifecycle: records journey data