node-worker

node-worker An architecture diagram generated by Archify. instrumentation.ts · preloaded · Architecture component instrumentation.ts preloaded src/index.ts · start · stop · Architecture component src/index.ts start · stop BullMQ workers · src/workers · Architecture component BullMQ workers src/workers Temporal worker · src/temporal · Architecture component Temporal worker src/temporal Redis · the API's queues · Architecture component Redis the API's queues PostgreSQL · via Prisma · Architecture component PostgreSQL via Prisma Temporal · task queue main · Architecture component Temporal task queue main OpenObserve · OTLP · Architecture component OpenObserve OTLP jobs spans Legend Backend Database Security Message bus External

Startup

  • • Telemetry is preloaded with node --import
  • • Workers start only once wiring is done
  • • Temporal bundles its workflows at start

Shutdown

  • • SIGTERM closes every BullMQ worker
  • • Active jobs finish before exit
  • • Temporal drains its tasks first

Shared with the API

  • • Its Redis and queue names
  • • Its database and Prisma schema
  • • Its Temporal namespace and task queue