diff --git a/AGENTS.md b/AGENTS.md index 057dda9..6fb0d29 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -62,7 +62,7 @@ CONFIG_PATH=configs/config.compose-local.yaml go run ./cmd/worker # Worker ### Dual Binary Split - `backend/cmd/main.go` — Gin HTTP API server (port 8080, pprof on :6060) -- `backend/cmd/worker/main.go` — RabbitMQ consumer process (pprof on :6061). Runs the Social, Like, Comment, and Popularity workers in independent goroutines; each gets its own AMQP channel from the shared connection manager and reconnects automatically. (Notification workers, the Outbox poller, and the timeline consumer currently live in the API process — see `router.go`.) +- `backend/cmd/worker/main.go` — RabbitMQ consumer process (pprof on :6061). Runs the Social, Like, and Comment workers in independent goroutines; each gets its own AMQP channel from the shared connection manager and reconnects automatically. Interaction counts are written by the business transaction (`ApplyLike`/`ApplyUnlike`/`CreateIdempotentWithPopularity`/`DeleteWithPopularity`); the hot ranking is a derived 60-minute sliding window (`video.ApplyHotDelta`, best-effort after commit, rebuildable with `cmd/reconcile -rebuild-hot`). (Notification workers, the Outbox poller, and the timeline consumer currently live in the API process — see `router.go`.) ### Domain Layer Pattern