Skip to content

feat: add event bus relay foundation#172

Merged
NovakPAai merged 1 commit into
mainfrom
codex/ttbus-relay-foundation
May 4, 2026
Merged

feat: add event bus relay foundation#172
NovakPAai merged 1 commit into
mainfrom
codex/ttbus-relay-foundation

Conversation

@St1tcher86
Copy link
Copy Markdown
Collaborator

Implements the next TTBUS-0 slice after the transactional outbox models.\n\n## Changes\n- Add KafkaJS client, producer, and consumer wrappers\n- Add outbox relay worker with SKIP LOCKED polling, retry accounting, cleanup, and relay entrypoint\n- Add events:tail script for topic inspection\n- Add opt-in Docker Compose events profile for dev/staging/prod with Kafka, topic init, and backend relay\n- Document event bus architecture and operational gotchas\n\n## Verification\n- npm run typecheck\n- npm run build\n- npm run lint (0 errors, existing warnings only)\n- SKIP_DB_SETUP=1 npm test -- outbox-relay.unit.test.ts eventbus-consumer.unit.test.ts\n- git diff --check\n- gitnexus detect_changes --scope staged: low risk, affected processes 0\n\nDocker compose config validation was not run locally because docker is not installed in this environment.

@github-actions github-actions Bot added the feat Новая функциональность (conventional commits) label Apr 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Напоминание об обновлении документации

Следующие файлы изменились — требуется ручное обновление документации:

  ⚠️  Deployment config changed — update deployment guide
  ⚠️  Deployment config changed — update deployment guide
  ⚠️  Deployment config changed — update deployment guide
  ⚠️  Deployment config changed — update deployment guide

Авто-генерируемые секции обновятся сами после мёрджа:
API reference · Data model · Backend modules · Frontend routes · Feature flags · Env vars · Stores · Makefile · Docker

Подробнее: docs/guides/doc-workflow.md

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ AI Code Review

В этом PR добавлена основа для реле событийного шины с использованием Kafka. Были добавлены обертки для клиента, продюсера и потребителя Kafka, а также рабочий процесс для реле и скрипт для инспекции тем. Код в целом выглядит качественно, с хорошей структурой и документацией.

Remaining issues: ⚪ 1 info

Issues

Не обновлен файл версии — `version_history.md`

Файл version_history.md не был обновлен в этом PR.

Suggestion: Обновите файл version_history.md, чтобы отразить изменения.

What's good

  • Код хорошо структурирован и документирован.
  • Используются современные подходы к обработке событий и управлению состоянием.

AI Code Review · gpt-4o-mini · Configure

@NovakPAai NovakPAai merged commit 31d10f2 into main May 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Новая функциональность (conventional commits)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants