ArchitectureData Flow

Data Flow

A survey response flows from the respondent’s browser through a hivecfm-core API route into Postgres via PrismaPrismaThe TypeScript ORM HiveCFM uses to talk to Postgres. The schema lives at packages/database/schema.prisma., then fans out to the Go Hub worker by enqueueing a RiverRiverThe Go background-job queue Hub uses. Jobs are rows in Postgres, so there is no separate broker to run. job for downstream processing.

The receiving route lives at hivecfm-core/apps/web/app/api/v2/client/[environmentId]/responses/route.ts, and the Go-side workers that consume the enqueued jobs live under hivecfm-hub/internal/workers/.