Ask HN: 什么时候需要账本运行时而不是数据库?
1 分•作者: daulet_b•6 个月前
我正在开发一个确定性的复式记账运行时,用于后端系统,这些系统对财务正确性有严格要求。
在实践中,许多团队最初使用常规数据库和应用层面的会计逻辑。但到某个时候,重试、竞态条件和对账问题就会出现。
我很好奇这里的工程师们是如何决定的:
— 什么时候一个普通的数据库不再够用?
— 哪些信号表明会计逻辑应该转移到专门的账本运行时?
— 你们是否经历过确定性重放或审计功能能够提供帮助的事件?
我希望得到工程方面的观点,而不是产品讨论。
查看原文
I'm working on a deterministic double-entry ledger runtime
for backend systems where financial correctness matters.<p>In practice, many teams start with a regular database and
application-level accounting logic. At some point, retries,
race conditions, and reconciliation issues appear.<p>I'm curious how engineers here decide:
— when is a plain database no longer enough?
— what signals that accounting logic should move into a dedicated ledger runtime?
— have you experienced incidents where deterministic replay or auditability
would have helped?<p>Looking for engineering perspectives, not product discussion.