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;
When all
HandlerTransactionsare resolved, we resolve theMainTransactionand delete all related Transactions likeMainTransaction->...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
StaggedTransactionwith 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