Няма описание

Luis Rosales 02545cddcc M7(1d/3): add m7_smoke_runner.sh that stops archiverd before smoke преди 1 месец
cmd 9c41c779b1 M7(1/3): Timescale 7d + ClickHouse archive + archiverd (code, smoke unverified on remote) преди 1 месец
deploy 75554256e1 M4(2/3): M4 verification doc + smoke log + smoke script + EMQX env-var refactor + ACL deploy README преди 1 месец
internal 9c41c779b1 M7(1/3): Timescale 7d + ClickHouse archive + archiverd (code, smoke unverified on remote) преди 1 месец
loadgen 50d2d17442 M7(1c/3): declare --dedupe-key flag in loadgen-mqtt (mirror loadgen-http) преди 1 месец
migrations 29525a76ea M7(1b/3): move clickhouse_schema.sql out of seed's *.up.sql glob преди 1 месец
scripts 02545cddcc M7(1d/3): add m7_smoke_runner.sh that stops archiverd before smoke преди 1 месец
testfakes 223cb48e8c M6.5(2/3): M6.5 verification doc + smoke log + 5-step live smoke script преди 1 месец
.env.example 9c41c779b1 M7(1/3): Timescale 7d + ClickHouse archive + archiverd (code, smoke unverified on remote) преди 1 месец
.gitignore 264d284a4b M1(1-2/8): migrations + seed + cmd/seed runner преди 2 месеца
ARCHITECTURE.md 8ca86628a1 feat(spec): add gRPC bidi-streaming as fourth ingest protocol (M11) преди 2 месеца
Dockerfile 9c41c779b1 M7(1/3): Timescale 7d + ClickHouse archive + archiverd (code, smoke unverified on remote) преди 1 месец
M0_VERIFICATION.md d76aa0b08d chore: shift app HTTP ports 8080-8083 to 8800-8803 (project rule) преди 2 месеца
M1_SMOKE_LOG.md af90a2cb4d M1(verified): live smoke test all 9 steps green + 6 compose/Dockerfile fixes преди 2 месеца
M1_VERIFICATION.md d5a211622a M1(8/8): M1 verification doc + SPEC update + PROMPT log преди 2 месеца
M2_SMOKE_LOG.md 280e0489de M2(3/3): verification doc + smoke log + smoke script + README/SPEC bump преди 2 месеца
M2_VERIFICATION.md 280e0489de M2(3/3): verification doc + smoke log + smoke script + README/SPEC bump преди 2 месеца
M3_SMOKE_LOG.md 692798a1a5 M3(3/3): M3 verification doc + smoke log + smoke script + README/PROMPT/SPEC bump преди 2 месеца
M3_VERIFICATION.md 692798a1a5 M3(3/3): M3 verification doc + smoke log + smoke script + README/PROMPT/SPEC bump преди 2 месеца
M4_SMOKE_LOG.md 75554256e1 M4(2/3): M4 verification doc + smoke log + smoke script + EMQX env-var refactor + ACL deploy README преди 1 месец
M4_VERIFICATION.md 75554256e1 M4(2/3): M4 verification doc + smoke log + smoke script + EMQX env-var refactor + ACL deploy README преди 1 месец
M5_SMOKE_LOG.md 49290cdf64 M5(2/3): M5 verification doc + smoke log + 7-step live smoke script преди 1 месец
M5_VERIFICATION.md 49290cdf64 M5(2/3): M5 verification doc + smoke log + 7-step live smoke script преди 1 месец
M6.5_SMOKE_LOG.md 223cb48e8c M6.5(2/3): M6.5 verification doc + smoke log + 5-step live smoke script преди 1 месец
M6.5_VERIFICATION.md 223cb48e8c M6.5(2/3): M6.5 verification doc + smoke log + 5-step live smoke script преди 1 месец
M6_SMOKE_LOG.md edad5a8992 M6(2/3): M6 verification doc + smoke log + 6-step live smoke script преди 1 месец
M6_VERIFICATION.md edad5a8992 M6(2/3): M6 verification doc + smoke log + 6-step live smoke script преди 1 месец
PROMPT.md 6a6b38ce95 M6.5(3/3): README + PROMPT + SPEC bump to 'shipped 2026-06-14' преди 1 месец
README.md 6a6b38ce95 M6.5(3/3): README + PROMPT + SPEC bump to 'shipped 2026-06-14' преди 1 месец
SPEC.md 6a6b38ce95 M6.5(3/3): README + PROMPT + SPEC bump to 'shipped 2026-06-14' преди 1 месец
docker-compose.yml 9c41c779b1 M7(1/3): Timescale 7d + ClickHouse archive + archiverd (code, smoke unverified on remote) преди 1 месец
go.mod 64169e99ad M5(1/3): WebSocket ingest + live tail + per-IP concurrency cap (SPEC §22 layer 2) преди 1 месец
go.sum 64169e99ad M5(1/3): WebSocket ingest + live tail + per-IP concurrency cap (SPEC §22 layer 2) преди 1 месец

README.md

broad-announce

Multi-tenant notification router. Receives alerts from many source systems (HTTP/JSON webhooks, WebSockets, MQTT, gRPC bidi-streaming), normalizes them, resolves recipients via companiesgroupsindividuals + subscriptions, and delivers to FCM (Android), Telegram, SMS, email, voice, Slack, MS Teams, and arbitrary outbound webhooks.

Status: M0 + M1 + M2 + M3 + M4 + M5 + M6 + M6.5 shipped 2026-06-14. M0 is the single-host docker-compose stack + 4 Go services + loadgen-http

  • alert schema. M1 is the end-to-end: signed webhook → broker → router → deliverd-fcm → fakefcmd (live-verified, 1530 deliveries in the loadgen burst, 0 failures). M2 is the recipient-resolution rules engine (source.allowed_targets + routing_rules + subscriptions with min_severity, quiet hours, inminent_colapse bypass; hard-fail on zero recipients). M3 is Telegram delivery + bot commands (deliverd split into per-channel binaries, telegramd long-polling bot with /start /subscribe /unsubscribe /preferences /status /mute /unmute, faketgmd fake Bot API, 14 deliveries in 8 sendMessage calls, 0 failures). M4 is MQTT ingest (EMQX 5.10.4 broker with per-source ACL on ba/<co>/<src>/incoming, ingestd's MQTT subscriber reuses the same ProcessAlert pipeline as HTTP, loadgen-mqtt publisher, 12 deliveries in 5-step smoke with 0 failures). M5 is WebSocket ingest (GET /v1/ingest/ws with {api_key} auth frame, 35-conn load test, per-IP cap 32) + live tail (GET /v1/tail/ws?token=***&company_id=... for operators, in-process pub/sub fan-out, 13/13 checks green across 3 consecutive smoke runs). M6 is dedupe + ×N display (sliding-window TTL via single Lua script, default 300s; dedupe runs before rate limit so duplicates are "free"; recipient sees (×N) inline suffix on the title; per-source dedupe_collapsed_total and dedupe_count_max_observed metrics, 11/11 checks green across 3 consecutive smoke runs). M6.5 is router-level dedupe collapse (a 100-alert burst produces 1 message to the recipient, not 100; the tail still sees the full storm; debounce with max-wait 2s, configurable via BA_ROUTERD_DEDUPE_FLUSH_MS; 9/9 checks green across 3 consecutive smoke runs). See M0_VERIFICATION.mdM6.5_VERIFICATION.md and M1_SMOKE_LOG.mdM6.5_SMOKE_LOG.md for the smoke tests. Spec is in SPEC.md, diagrams in ARCHITECTURE.md, build log in PROMPT.md.

v1 in one paragraph

Six Go services (ingestd, routerd, deliverd-fcm, deliverd-telegram, telegramd, admind) wired together by NATS JetStream. Postgres + Timescale for live data, ClickHouse for archive, Redis for dedupe + rate limits, EMQX for MQTT. Strict app-level multi-tenant isolation. ~5k alerts/sec on Docker Compose, 50k/sec design ceiling for v2 K8s.

Repo layout

SPEC.md             - requirements, entities, severity, retention
ARCHITECTURE.md     - diagrams, sequences, SLOs, capacity model
PROMPT.md           — build log, decisions, open questions
M0_VERIFICATION.md  — M0 smoke test (signed webhook → 202)
M1_VERIFICATION.md  — M1 smoke test (end-to-end → fakefcmd)
M2_VERIFICATION.md  — M2 smoke test (recipient resolution)
M3_VERIFICATION.md  — M3 smoke test (Telegram delivery + bot)
M4_VERIFICATION.md  — M4 smoke test (MQTT ingest + EMQX ACL)
M5_VERIFICATION.md  — M5 smoke test (WS ingest + live tail + per-IP cap)
M6_VERIFICATION.md  — M6 smoke test (dedupe + ×N + sliding TTL + free-for-dupes)
M6.5_VERIFICATION.md — M6.5 smoke test (router-level dedupe collapse)
M1_SMOKE_LOG.md     — M1 live run results
M2_SMOKE_LOG.md     — M2 live run results
M3_SMOKE_LOG.md     — M3 live run results
M4_SMOKE_LOG.md     — M4 live run results
M5_SMOKE_LOG.md     — M5 live run results (3 consecutive green)
M6_SMOKE_LOG.md     — M6 live run results (3 consecutive green)
M6.5_SMOKE_LOG.md   — M6.5 live run results (3 consecutive green)
docker-compose.yml  — single-host M0–M6.5 stack
Dockerfile          — multi-stage build for all 7 binaries
.env.example        — every BA_* knob documented
cmd/ingestd/        — HTTP POST handler (M0) + MQTT subscriber (M4) + WS ingest (M5) + dedupe before rate limit (M6); M11 = TLS
cmd/routerd/        — consumer (M0) + recipient resolution (M2) + M6.5 dedupe Collapser with max-wait debounce
cmd/routerd/        - M2 rules engine + M3 channel union
cmd/deliverd-fcm/   - M1 FCM HTTP v1 delivery (renamed from deliverd M3)
cmd/deliverd-telegram/ - M3 Telegram Bot API delivery
cmd/telegramd/      - M3 long-polling bot loop + command handler
cmd/admind/         - scaffold + /v1/ping (M8)
loadgen/cmd/http/   - HTTP traffic generator (M0)
loadgen/cmd/mqtt/   - MQTT traffic generator (M4)
loadgen/cmd/ws/     - WebSocket traffic generator (M5)
internal/alert/     - Alert v1 type + Validate() + Severity.Rank
internal/broker/    - NATS JetStream wrapper
internal/config/    - env-driven config
internal/dedupe/    - 60s SET NX EX + INCR
internal/ratelimit/ - per-second INCR bucket
internal/httpserver/ - /health + /metrics scaffold
internal/observability/ - slog + Prometheus
internal/postgres/  - pgxpool wrapper
internal/routing/   - Resolver (M2 rules engine, M3 channel union)
internal/telegram/  - BotClient + command parser + handler
internal/store/     - Redis + (later) Postgres
deploy/prometheus/  - prometheus.yml
migrations/         - 001-004 + seed/seed_m2/seed_m3.sql
testfakes/          - fakefcmd (M1), faketgmd (M3)

License

Private. © 2026 Techno-World.