How galestv/orquestra-queue-system works
Orquestra is a NestJS appointment and asynchronous waitlist system. Clients create, update, confirm, or cancel appointments through the API; cancellation enqueues work, and a background processor promotes the next waiting customer, creates a confirmation-pending appointment, and schedules follow-up jobs. Prisma provides relational persistence, while BullMQ uses Redis for job queues. The README documents the promotion workflow; sampled source shows appointment and expiration processing. Notification processing is present, but its implementation details are not shown.
Main entry points: app.module.ts Application Composition · appointment.processor.ts Appointment Worker · appointments.controller.ts Appointment API · appointments.service.ts Appointment Service
Components 12
Application Runtime
- Nest Bootstrap
src/main.ts - Application Composition
src/app.module.ts
Appointment Management
- Appointment API
src/appointments/appointments.controller.ts - Appointment Service
src/appointments/appointments.service.ts - Appointment DTOs
src/appointments/dto
Queue Orchestration
- Appointment Worker
src/appointments/processors/appointment.processor.ts - Appointment Queue
Persistence
- Prisma Client
src/prisma/prisma.service.ts - PostgreSQL
Notifications
- Notification Queue
- Notification Worker
src/notifications/processors/notification.processor.ts
Other components
- API Client
Connections 16
- API Client → Appointment API: calls API
README.md - Nest Bootstrap → Application Composition: starts
src/main.ts - Application Composition → Appointment API: registers
- Application Composition → Appointment Service: registers
- Application Composition → Appointment Worker: registers
- Application Composition → Notification Worker: registers
- Appointment API → Appointment Service: delegates to
src/appointments/appointments.controller.ts - Appointment API → Appointment DTOs: accepts
src/appointments/appointments.controller.ts - Appointment Service → Prisma Client: reads and writes
src/appointments/appointments.service.ts - Appointment Service → Appointment Queue: enqueues cancellation
src/appointments/appointments.service.ts - Appointment Queue → Appointment Worker: dispatches jobs
src/appointments/processors/appointment.processor.ts - Appointment Worker → Prisma Client: reads and writes
src/appointments/processors/appointment.processor.ts - Appointment Worker → Notification Queue: enqueues alert
src/appointments/processors/appointment.processor.ts - Appointment Worker → Appointment Queue: schedules follow-up
src/appointments/processors/appointment.processor.ts - Notification Queue → Notification Worker: dispatches jobs
- Prisma Client → PostgreSQL: persists data
src/prisma/prisma.service.ts