2 Comments
⭠ Return to thread

One clarification I would make, is that I would break your financial events into even more granular levels. One for placing the order, one for the payment pending, one for payment processed, and potentially another to confirm cash has actually been received in your bank account. All of these events are necessary for a clear audit trail of what occurred in your business.

An example of a valid way of processing these events is as so: 1) Placing order = debit Accounts Receivable, credit Revenue 2) Payment processed and cash received = debit Cash, credit Accounts Receivable. Those other financial events are still necessary for debugging and having an audit trail, but don't necessarily have accounting entries tied to them.

But yes to the original point, every financial event can be processed only once. Even if there are accidental duplicate records sent, your system should be able to dedupe the event and check that we already processed this event before.

Thanks again for reading my post, and I hope that helps! Feel free to DM if you have more questions as well!

Expand full comment

Yes i intend to DM to clarify my understanding of what you’re saying in idempitency

Probably later this week.

Expand full comment