Skip to content

State Transaction #151

@Rossb0b

Description

@Rossb0b

When all HandlerTransactions are resolved, we resolve the MainTransaction and delete all related Transactions like MainTransaction -> ...N SpreadTransaction, where N is the number of replicas that will receive the event.

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.

here is a draft of the structure with some key elements

interface StaggedTransaction<T> {
  event: string;
  aliveSince: string;
  redisMetadata: {
    publisher: {
      name: string;
    };
    receivers: [{
      name: string;
    }];
    eventTransactionId: string;
  }
} & T;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions