r/softwarearchitecture • • 7d ago

Article/Video What do engineers get wrong about payment systems? My notes on idempotency, ledgers and reconciliation

https://thebackendguy.dev/payment-system-design/part-1
0 Upvotes

7 comments sorted by

20

u/turtlebait2 7d ago

Stop shilling your slop guides. You still haven’t added security in here, just tell people to use stripe.

2

u/never-starting-over 7d ago

For real. I see some flaws in this and I won't even bother with correcting them to improve this. I'm hesitant even of the engagement this comment provides.

If the author has the bravado to write an antagonizing message and write it with that much AI, they should at least have backed it up with substance from real world experience.

0

u/AsyncNomads 7d ago

I hadn't made the scope clear. It's meant to sit alongside Stripe, not to replace it.
It covers the ledger, webhook and reconciliation side.

3

u/chocolateAbuser 7d ago

only one thing, in this text

Second, nothing guards the state change. UPDATE payments SET status = 'SUCCESS'

i would add a WHERE client = id just for clarity, i understand it's pseudocode but you know...

0

u/AsyncNomads 7d ago

Thanks for your time reading it and sharing the comments. I have noted it. I will update it soon.

2

u/DragonflyOk9274 7d ago

Are they your notes or Claude's?

0

u/AsyncNomads 7d ago

It's from my own experience building a system, and I used AI to articulate it in a better way.