Archive

1046 posts · Page 58 of 88. ← Blog

Pratik Dhanave · ·7 min read

Moving Money Across Services Without a Distributed Transaction

How to coordinate a multi-step payment as an orchestrated saga: compensating actions for partial failures, idempotent steps, and a guarantee that money is never left stranded.

Teaches how to coordinate a multi-step payment across services without distributed transactions: orchestrated saga steps, compensating actions for partial failures, and guaranteeing money is never stranded.

Pratik Dhanave · ·6 min read

Crediting Crypto Deposits Without Getting Burned by Reorgs

How to safely credit on-chain deposits and finalize settlement: confirmation-depth thresholds, mempool tracking, chain-reorg detection with balance rollback, and idempotent handling of replaced transactions.

Teaches how to safely credit crypto deposits and finalize settlement: confirmation-depth thresholds, mempool/pending tracking, chain-reorg detection and balance rollback, and idempotent handling of replaced transactions.

Pratik Dhanave · ·6 min read

Engineering a Fiat-Backed Stablecoin: Mint, Burn, and the Reserve Invariant

How to engineer a fiat-backed stablecoin: mint-on-deposit and burn-on-redeem flows tied to a reserve ledger, a 1:1 reserve invariant, and continuous reconciliation between on-chain supply and off-chain custody balances.

Teaches how to engineer a fiat-backed stablecoin: mint-on-deposit / burn-on-redeem flows tied to a reserve ledger, 1:1 reserve invariant checks, and reconciliation between on-chain supply and off-chain custody balances.

Pratik Dhanave · ·5 min read

Artifacts: Where ADK Agents Put Their Files

Session state is for small text and JSON. When your agent produces a PNG, a PDF, or a WAV, it belongs in the artifact store — binary-native, versioned, and out of the session record.

Artifacts are binary/file data agents produce or consume: ArtifactService saves and versions named artifacts, loaded and saved via context, keeping large blobs out of session state.

Pratik Dhanave · ·9 min read

Sales, Product, and the Bigger Picture

The most valuable thing sales produces isn't revenue — it's understanding. Every sales conversation is a direct line to what customers actually want, struggle with, and will pay for, and a company that treats sales as merely a revenue function while ignoring that understanding is throwing away its best source of truth. This closing post zooms out: how sales connects to product and the whole business, why the sales-product feedback loop matters, what founder-led selling teaches, and how the series' honest, understanding-based view of sales fits into building something real.

The most valuable thing sales produces isn't revenue — it's understanding. Every sales conversation is a direct line to what customers actually want, and a company that ignores that is throwing away its best source of truth. How sales connects to product, the whole business, and founder-led selling.

Pratik Dhanave · ·9 min read

Closures and Scope: LEGB, nonlocal, and global

How Python decides what a name means — the LEGB lookup rule, what a closure actually captures, the late-binding loop trap and its fixes, and when you genuinely need `nonlocal` or `global`.

How Python decides what a name means — the LEGB lookup rule, what a closure actually captures, the late-binding loop trap and its fixes, and when you genuinely need `nonlocal` or `global`.

Pratik Dhanave · ·12 min read

Strings, Runes, Bytes, and UTF-8

What a Go string actually is under the hood — an immutable read-only slice of bytes, not a sequence of characters — and how bytes, runes, and code points relate, so you stop shipping the classic multibyte bugs.

What a Go string actually is under the hood — an immutable read-only slice of bytes, not a sequence of characters — and how bytes, runes, and code points relate, so you stop shipping the classic multibyte bugs.

Pratik Dhanave · ·6 min read

Engineering Treasury Liquidity: Automated Cash Sweeps

How to aggregate balances, compute target-vs-actual, and fire cutoff-aware sweeps that keep settlement accounts solvent without stranding idle cash.

Teaches how to engineer treasury liquidity: multi-account balance aggregation, target-balance and zero-balance sweep rules, cutoff-aware transfers, and intraday funding checks to keep settlement accounts solvent.

Pratik Dhanave · ·7 min read

Designing a Deterministic Order-Book Matching Engine

How price-time priority, a single-threaded sequencer, and gap-free event streaming combine into an exchange core you can replay byte-for-byte.

Teaches how to build a deterministic matching engine: price-time priority order book, limit/market/IOC/FOK order types, single-threaded sequencer for determinism, and gap-free trade/execution event streaming.