Skip to content

feat: add rabbitmq publisher to transaction service - #1

Merged
gothsins merged 1 commit into
mainfrom
feature/rabbitmq-publisher
Jun 27, 2026
Merged

feat: add rabbitmq publisher to transaction service#1
gothsins merged 1 commit into
mainfrom
feature/rabbitmq-publisher

Conversation

@gothsins

Copy link
Copy Markdown
Owner

Adiciona integração com RabbitMQ ao finance-api.

O que esse PR implementa

  • RabbitMQConfig — configura o Jackson2JsonMessageConverter para serializar mensagens como JSON
  • TransactionEvent — DTO que representa o evento publicado na fila
  • TransactionPublisher — componente que publica o evento na fila transactions.exchange com a routing key transactions.created
  • TransactionService.save() — atualizado para publicar um evento após salvar a transação no banco

Fluxo

POST /transactions → salva no banco → publica TransactionEvent no RabbitMQ → finance-notifications consome

@gothsins
gothsins merged commit 210abd5 into main Jun 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant