Architecture · freehire
The shape of the system
How a job posting moves through freehire, from crawl to client
Sources feed run-once ingest workers that write Postgres and, in the same transaction, an outbox; queue drains and a full reindex worker push into Meilisearch; the API server reads Postgres and Meilisearch to serve clients.
SAME TXN
EXT
Sources
~167 feeds
CRON
Ingest → Runner
fetch · dedup · upsert
DB
PostgreSQL
system of record
TBL
Outbox tables
4 outbox queues
CRON
Queue drains
4 cron workers
CRON
cmd/reindex
rebuild + swap
SVC
Meilisearch
keyword + facets
API
cmd/server
Fiber · /api/v1/*
EXT
Clients
SPA · ext · bots
LEGEND
system of record
run-once worker
outbox table
external service
same transaction