Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3244

Avoid all the swatch consumers consume all the messages from the topic "platform.rhsm-subscriptions.billable-usage-hourly-aggregate"

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • subs-swatch-lightning

      At the moment, we're sending messages to the kafka topic "platform.rhsm-subscriptions.billable-usage-hourly-aggregate" like:

      {
        "windowTimestamp": "2023-12-21T01:10:28Z",
        "aggregateId": "e81bc918-6434-4a58-9192-8a8dd73ec8fb",
        "aggregateKey": {
          "orgId": "org123",
          "billingProvider": "azure",
          "metricId": "Cores",
          "productId": "rosa"
        }
      }
      

      These messages are consumed by the swatch-producer-aws and swatch-producer-azure services instead of only the swatch-producer-azure service (because the "billingProvider" is "azure"). This situation is generating a lot of noise in traces and unnecessary network traffic.

      We need to find a better and more efficient solution. Probably, the easiest and more scalable solution is to use dedicated topics for aws and azure.

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

                Created:
                Updated: