Implement Message outbox patter for FEE_FINE_BALANCE_CHANGED events

Description

According to PubSub deprecation plan, mod-feesfines will stop publishing events to PubSub in favour of publishing directly to Kafka.
mod-feesfines will also implement Transactional outbox pattern.

In scope:

  • Instead of publishing FEE_FINE_BALANCE_CHANGED event, insert a new record into message_outbox table. This insert should be part of the same transaction that updates the balance.

  • Trigger Message relay service

PubSub deprecation plan: https://folio-org.atlassian.net/wiki/display/DD/PubSub+deprecation+plan
Read more about Transactional outbox pattern: https://microservices.io/patterns/data/transactional-outbox.html

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Details

Assignee

Reporter

Priority

Story Points

Development Team

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created June 30, 2023 at 12:25 PM
Updated June 30, 2023 at 12:44 PM
TestRail: Cases
TestRail: Runs