Skip to content

Commit

Permalink
feat: adr meeting 003 usage and billing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Jul 8, 2024
1 parent a66cc35 commit 3c37513
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions adrs/003-usage-billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ Each cluster needs to send the metrics of usage of each user. Then, the main clu
Each cluster will be running a usage driver to collect the usage data and send them as an event to the main cluster through the queue. In the main cluster, an event driver will be running and it will capture the event and persist in the cache db. The invoice will be triggered by another driver(billing) and it will be executed once a month, the payment gateway needs to be called to generate the invoice.

- Usage

That needs to be executed in each cluster and triggered once an hour, integrating with Prometheus to collect metrics of data usage and send an event to the queue.
That needs to be executed in each cluster and triggered once an hour, integrating with Prometheus to collect metrics of data usage and send an event to the queue.

- Billing

The billing will be executed once a month in the main cluster, getting user usage in the cache of all clusters, and integrating with a payment gateway to make the invoice.
The billing will be executed once a month in the main cluster, getting user usage in the cache of all clusters, and integrating with a payment gateway to make the invoice.

## Rules

Expand Down

0 comments on commit 3c37513

Please sign in to comment.