Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State Transaction #151

Open
Rossb0b opened this issue Nov 27, 2023 · 0 comments
Open

State Transaction #151

Rossb0b opened this issue Nov 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Rossb0b
Copy link
Member

Rossb0b commented Nov 27, 2023

When all HandlerTransactions are resolved, we just resolve the MainTransaction and delete all related Transactions like MainTransaction -> ...N SpreadTransaction -> ...N HandlerTransaction.

It doesn't allow us to monitor or check about resolved events.

We should have something like a StaggedTransaction with a TTL & optionally a callback to add custom data/store it in another DB or whatever.

here is a draft of the structure with some key elements

interface StaggedTransaction<T> {
  event: string;
  aliveSince: string;
  redisMetadata: {
    publisher: {
      name: string;
      prefix?: string;
      origin: string;
    };
    receivers: [{
      name: string;
      prefix: string;
      uuid: string;
    }];
    eventTransactionId: string;
  }
} & T;
@Rossb0b Rossb0b added the enhancement New feature or request label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant