Work
Reference architectures.
01Fintech · payments
Real-time fraud scoring on a payment stream
How we would design a scoring path that decides inside the authorisation window, falls back safely, and keeps training and inference features consistent.
Technical demonstration
Read the architecture- Kafka
- Apache Flink
- Redis
- PostgreSQL
- PyTorch
- Triton Inference Server
View as text
Payment events flow through a durable log into a stream processor that computes features and writes them to an online feature store. The scoring service combines model scores with deterministic rules in a decision engine that approves, routes to review, or declines. Review outcomes become labels for offline training, and the same feature definitions serve training and inference.
Components
- Payment events — authorisations
- Event log — partitioned
- Stream engine — windowed features
- Feature store — online · offline
- Scoring service — model · fallback
- Decision engine — rules + score
- Outcome — approve · review
- Analyst review — labels
- Training — versioned
Connections
- Payment events → Event log
- Event log → Stream engine
- Stream engine → Feature store
- Feature store → Scoring service
- Scoring service → Decision engine
- Decision engine → Outcome
- Outcome → Analyst review
- Analyst review → Training (labels)
- Training → Scoring service (new version)
02Customer operations
Agent-based ticket resolution with approval gates
How we would let an agent resolve support tickets end to end — including refunds — without giving it unbounded authority.
Technical demonstration
Read the architecture- Temporal
- LangGraph
- Anthropic Claude
- PostgreSQL
- OpenTelemetry
Span types Span Type Detail ticket.received: I/O Support ticket enters the workflow with customer and order IDs.classify_intent: Model call Model classifies intent; low-confidence results route to a human queue.fetch_order: Tool call Read-only tool with a scoped credential returns order state.search_policy_kb: Tool call Retrieves the refund policy that applies to this order.draft_resolution: Model call Model proposes an action and a reply, as structured output.policy_check: Policy check Deterministic code validates the proposed action against limits.approval.requested: Human approval Refund above threshold: a reviewer sees the trace and approves or edits.issue_refund: Tool call Write tool called with an idempotency key; a retry cannot refund twice.reply.sent: I/O Customer reply sent; full trace stored for audit.Illustrative execution trace of one run. Bar positions show ordering and nesting, not measured timings. 03Logistics · PostgreSQL
Fixing a hot query from its execution plan
A walkthrough of the reasoning behind a common PostgreSQL fix: reading the plan, choosing an index that matches the access pattern, and shipping it without locking writes.
Technical demonstration
Read the architecture- PostgreSQL
- pg_stat_statements
- EXPLAIN (ANALYZE, BUFFERS)
- PgBouncer
Before
- SortSort Key: o.created_at DESC
- Hash JoinHash Cond: (s.order_id = o.id)
- Seq Scan on shipments s
- Hash
- Seq Scan on orders oFilter: (customer_id = $1)
After
- Limit
- Nested Loop
- Index Scan using orders_customer_created_idx on orders oIndex Cond: (customer_id = $1)
- Index Scan using shipments_order_id_idx on shipments sIndex Cond: (order_id = o.id)
Simplified plan shapes for illustration. Real plans include costs, row estimates and buffers, which we compare before and after every change.