How davidcr08/talentflow works
TalentFlow is an onboarding/offboarding microservices system. The main HTTP workflow enters through the API Gateway, which routes employee and department requests to their services; employee operations validate departments, persist employee state, and publish domain events. A RabbitMQ event flow supports profiles, notifications, and vacation employee replicas, while vacation requests validate and persist periods and publish scheduled-vacation events. Internal service wiring is shown where source excerpts or the README establish it; several event-consumer internals are unsampled, so those links follow documented event topology.
Main entry points: index.js API Gateway · empleados.service.js Employee service · servicio.py Vacation service · index.php Department API
Components 21
HTTP entry
- API Gateway
microservicios/api-gateway/index.js
People services
- Employee API
microservicios/gestion-empleados/src/app.js - Employee routes
microservicios/gestion-empleados/src/routes/empleados.routes.js - Employee service
microservicios/gestion-empleados/src/services/empleados.service.js - Employee repository
microservicios/gestion-empleados/src/repository/empleados.repository.postgres.js - Employee PostgreSQL
- Department API
microservicios/gestion-departamentos/public/index.php - Department repository
microservicios/gestion-departamentos/src/DepartamentoRepository.php - Department MySQL
- Department client
microservicios/gestion-empleados/src/clients/departamentos.client.js
Event services
- Event publisher
microservicios/gestion-empleados/src/events/publicador-eventos.js - RabbitMQ
- Profiles service
microservicios/perfiles-service/internal - Notifications service
microservicios/notificaciones-service/src/main/java/com/talentflow/notificaciones - Notification repository
microservicios/notificaciones-service/src/main/java/com/talentflow/notificaciones/repositorio/NotificacionRepository.java
Vacation management
- Vacation API
microservicios/vacaciones-service/app/main.py - Vacation service
microservicios/vacaciones-service/app/servicio.py - Vacation repository
microservicios/vacaciones-service/app/repository.py - Vacation PostgreSQL
- Employee event consumer
microservicios/vacaciones-service/app/consumidores.py
Other components
- HTTP client
Connections 25
- HTTP client → API Gateway: sends requests
README.md - API Gateway → Employee API: proxies employees
README.md - API Gateway → Department API: proxies departments
README.md - API Gateway → Vacation API: proxies vacations
README.md - API Gateway → Profiles service: proxies profiles
README.md - API Gateway → Notifications service: proxies notifications
README.md - Employee API → Employee routes: mounts routes
microservicios/gestion-empleados/src/app.js - Employee routes → Employee service: calls operations
microservicios/gestion-empleados/src/routes/empleados.routes.js - Employee service → Employee repository: reads and writes
microservicios/gestion-empleados/src/services/empleados.service.js - Employee repository → Employee PostgreSQL: queries
microservicios/gestion-empleados/src/repository/empleados.repository.postgres.js - Employee service → Department client: validates department
microservicios/gestion-empleados/src/services/empleados.service.js - Department client → Department API: calls over HTTP
README.md - Department API → Department repository: uses repository
microservicios/gestion-departamentos/public/index.php - Department repository → Department MySQL: queries
microservicios/gestion-departamentos/src/DepartamentoRepository.php - Employee service → Event publisher: publishes events
microservicios/gestion-empleados/src/services/empleados.service.js - Event publisher → RabbitMQ: publishes events
README.md - RabbitMQ → Profiles service: dispatches events
README.md - RabbitMQ → Notifications service: dispatches events
README.md - RabbitMQ → Employee event consumer: dispatches employee events
README.md - Notifications service → Notification repository: stores notifications
microservicios/notificaciones-service/src/main/java/com/talentflow/notificaciones/web/NotificacionController.java - Vacation API → Vacation service: handles requests
microservicios/vacaciones-service/app/main.py - Vacation service → Vacation repository: reads and writes
microservicios/vacaciones-service/app/servicio.py - Vacation repository → Vacation PostgreSQL: queries
microservicios/vacaciones-service/app/repository.py - Vacation service → RabbitMQ: publishes scheduled event
README.md - Employee event consumer → Vacation repository: updates employee replica
microservicios/vacaciones-service/app/consumidores.py