<aside> 📚

The problem: Nigeria's book market, second-hand books above all, is spread across individual sellers, with no single place to find a title, compare copies and pay safely. Inkvine is one marketplace for new and second-hand books. Sole architect and engineer · pre-launch.

</aside>

inkvine-at-a-glance.html

Key decisions

Decision Approach Trade-off accepted
Polyglot persistence Eventually consistent catalog in MongoDB; ACID ledger in PostgreSQL No cross-store transaction; an oversold last copy is auto-refunded
Escrowed payouts Per-seller Flutterwave subaccounts, released after a dispute window, guarded against double payouts Single provider; correctness rides on webhooks and retries
Denormalized read models Offers and order lines carry their own title, cover and authors: one read per page, immutable receipts Renames fan out to every copy, so drift needs monitoring
Lookup separate from catalog 70.8M-record ISBN index; the catalog holds only books on sale Coverage follows what sellers stock
Serverless, cost-first Lambda with response streaming, DynamoDB at $1.60/mo storage and $4 bulk loads, no NAT gateway Cold starts; open streams hold an instance
Token-based multi-tenancy A token audience per portal, 60-second handoff codes, no database on the auth path A Redis check on every request

Two reversals

Scaling path

Step Change Trigger
1 Async workers and a managed push channel Lambda time dominated by open streams; slow webhooks
2 Split catalog & intake from accounts & orders Teams blocking each other's releases
3 Payments & escrow as a service, fed by an outbox Second provider, payout volume or an audit
Web Admin app first, behind SSO A security review

Python · FastAPI · Next.js · TypeScript · PostgreSQL · MongoDB · Redis · DynamoDB · AWS Lambda · Fargate · CDK · Flutterwave