nest-api

nest-api An architecture diagram generated by Archify. Front ends · cookie session · Architecture component Front ends cookie session HTTP pipeline · limit · auth · Zod · Architecture component HTTP pipeline limit · auth · Zod better-auth · /auth · roles · Architecture component better-auth /auth · roles Feature modules · users · media · … · Architecture component Feature modules users · media · … BullMQ · mail · media · Architecture component BullMQ mail · media PostgreSQL · Prisma · Architecture component PostgreSQL Prisma Redis · cache · limits · Architecture component Redis cache · limits SMTP · React Email · Architecture component SMTP React Email S3 · uploads · Architecture component S3 uploads OpenObserve · OTLP · Architecture component OpenObserve OTLP HTTPS sessions enqueue send telemetry Legend Frontend Backend Database Security Message bus External

Every request

  • • Rate limit, then session, then validation
  • • @AllowAnonymous() opts a route out
  • • Responses are shaped by their schemas

State

  • • Sessions and data in PostgreSQL
  • • Cache, rate limits and queues in Redis
  • • No migrations ship: create the first

Operator views

  • • /docs and /openapi behind basic auth
  • • /dashboard for the queues
  • • /health for orchestrators