Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-2368 Move billable-usage components from monolith to billable-usage service
  3. SWATCH-2547

Port the tally summary listener from the tally to the billable-usage service

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      The tally summary listener logic is in here.

      This listener requires a chain transaction so when we handle a message, we insert the remittance entities and send the usages to the output topic in a single transaction.

      However, Quarkus does not support chain transactions (see more in SWATCH-2545). Therefore, we're going to sligthly modify the listener from:

      1. listen message from topic A
      2. update database
      3. send message to another topic B

      To:

      1. listen message from topic A
      2. Is database updated? We need to check whether there is an existing remittance by tally ID already.
      3. No, then update database
      4. send message to another topic B

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: