#Ledger
Articles about Ledger — exploring patterns, best practices, and real-world implementations in production systems.
12 posts tagged with ledger. ← All posts
How a single loan payment is split across fees, interest, and principal — and why the engine that does it has to be deterministic, auditable, and safe to run twice.
How a loan payment is split across fees, penalties, accrued interest, and principal, with configurable waterfalls and partial-payment rules.
How a rating engine turns raw usage and transactions into charges — and why the hard part is making that transformation deterministic, replayable, and idempotent.
How a rating engine turns usage/transactions into charges via pricing plans, tiers, and promos, then produces invoices and fee postings.
Why fintechs keep a transaction-grain subledger separate from the accounting general ledger, and how the posting, aggregation, and tie-out actually work.
Why fintechs keep a high-volume subledger separate from the GL, posting rules, summarization/aggregation, and period-close handoff.
How a captured card transaction turns into money in a merchant's bank account — batching, gross-to-net fees, reserves, adjustments, and the T+N funding file.
From captured transactions to merchant bank account: batching, interchange/scheme-fee deduction, reserves/holdbacks, and T+N funding files.
Designing a closed-loop wallet from the ledger up: double-entry balances, the money lifecycle, safeguarding client funds 1:1, and the engineering that keeps top-ups, holds, and reconciliation honest.
Designing a closed-loop wallet: top-up, hold, spend, refund, safeguarding of e-money, and the double-entry ledger behind a balance.
Why "authorize then capture" is a lie, and how to model a hold that grows, shrinks, expires, and reconciles against a moving available balance.
Pre-auth vs estimated vs incremental authorization (hotels, fuel, delivery), partial approvals, and reconciling holds against final capture.
How to turn contracts into performance obligations, recognition schedules, and ledger journals — and why billing is never the same event as revenue.
Teaches how to build a rev-rec engine: performance obligations, deferred-vs-recognized schedules, ratable recognition over time, and how billing events differ from recognition events in the ledger.
Designing an account hierarchy, dimensions, and posting rules that turn product events into balanced journal entries.
Teaches how to design a chart of accounts and sub-ledger-to-GL posting model: account hierarchy, dimensions/segments, contra accounts, and how product events map to balanced journal entries.
How to keep books in more than one currency — transaction-date versus settlement-date rates, unrealized and realized FX gain/loss, and the period-end revaluation run that keeps the balance sheet honest.
Teaches how to keep books in multiple currencies with a functional/reporting currency: transaction-date vs settlement-date rates, unrealized/realized FX gain-loss postings, and period-end revaluation runs.
Turning ledger cutoff, accruals, trial-balance assembly, and out-of-balance detection into a controlled, repeatable pipeline instead of a month-end fire drill.
Teaches how to automate the financial close: ledger cutoff/freeze, accrual and reversing entries, trial-balance assembly, out-of-balance detection, and soft-close vs hard-close controls.
How a fund turns positions, prices, cash, and accruals into one defensible number every day — and the controls that keep it honest.
How a fund's NAV is struck daily: position keeping, pricing/valuation, accruals, expense amortization, and the striking/publishing pipeline with tolerance checks.
Every movement of money touches at least two accounts, and the entries always sum to zero. That one invariant is the backbone of a correct financial system.
Every transaction is balanced postings that sum to zero — enforce it at write time. The ledger is append-only, and booking, value, and settlement time are three different clocks you must not conflate.
All posts on this site are written by Pratik Dhanave, an Agentic AI Architect with 7+ years building production distributed systems, multi-agent AI platforms, and cloud-native infrastructure. About the author → Each article includes working code, architecture diagrams, and references to the specific frameworks and standards discussed. Browse all posts or explore related topics using the tag cloud above.