SELECT
portfolio, count(*) AS professional
FROM
Blockchain
WHERE
day = today()
000Queryagainst logs, not yet executed
scroll to execute ↓
against logs, not yet executed
QueryExecuteIndexTableResult
Data infrastructure · Karachi
Abdullah Mazhar
I design, deploy and operate the infrastructure that makes very large, very messy datasets fast to query. Postgres and ClickHouse, across multiple chains.
Hover a shard for its range and replicas. Click to kill it.
Architecture
Break it and see what happens
This is the shape of a deployment I actually run: edge, two app containers, a pooled Postgres pair, a replicated ClickHouse pair, and an indexer feeding it. Traffic is routed rather than animated — every packet picks a live node at each hop. Hover a component for its role and blast radius. Click to kill it. Take out pg-primary and the standby promotes. Take out caddy and everything fails, because it is a single point of failure and the diagram says so.
hover for detail · click to kill
cluster
Hover a component.
If it dies
Traffic reroutes around anything that isn't a single point of failure. One thing here is.
served
0
failed
0
state
healthy
Work
Six things, and the decision inside each
Every entry below leads with the technical decision rather than a feature list, because the decision is the part that transfers.
Multi-chain indexer
placeholder
Ingest service that decodes blocks and events from several networks into one columnar schema.
Idempotent batch insert keyed on (chain_id, block_number, log_index), so a replay after a reorg converges instead of double-counting.
networks
6
events/s
41.2k
ingest lag
2 blk
Partition strategy harness
placeholder
Benchmark rig that replays a real query workload against candidate partition keys.
Turns schema design from an argument into a measurement. Same 200 queries, five partitioning schemes, one table of p50/p95/p99.
schemes
5
queries
200
best p95
−27×
Reorg guard
placeholder
Watchdog that detects chain reorganisations and rewinds affected partitions.
Keeps a rolling window of block hashes and compares against head. When they diverge it drops and rebuilds only the affected partitions.
window
256 blk
detect
<1 blk
false pos
0
Postgres HA on bare VPS
placeholder
Streaming replication, WAL archiving and automated failover without a managed provider.
Patroni plus etcd on three small boxes. The interesting part is the write-gap during promotion, which is roughly 15 seconds and worth being honest about.
nodes
3
RPO
0
write gap
~15s
Analytics warehouse models
placeholder
Layered transformation models turning raw block and log tables into query-ready marts.
Incremental models keyed on partition so a backfill touches one day, not the whole history.
models
48
full build
11m
incremental
40s
Compose deployment pipeline
placeholder
The pipeline this site ships on: build, push, health-gate, cut over.
Health-gated cutover — the new container has to answer before the old one stops. Cheap blue/green without a control plane.
deploy
94s
downtime
0
rollback
1 cmd
These six are placeholders, named after realistic infrastructure work so the layout is designed against plausible content. Swap them in lib/content.ts — the section is pure data.
Colophon
Where I've done it
Blockchain Data Engineer · Beenco Labs
Sep 2025 — presentcurrent
Own the indexing and warehousing layer: on-chain data out of nodes and RPC endpoints, into ClickHouse and Postgres schemas built for analytical queries. Schema and partitioning work, ETL automation, indexer reliability, replay of missing blocks.
ClickHousePostgresSQLETLIBCEVM
Software Developer · Realcore Solutions
Jul 2025 — presentcurrent
Enterprise ERP on Oracle APEX against Oracle 21c/23ai. Database structures and ERDs, plus LLM modules integrated into existing corporate systems and blockchain-enabled tables for immutable audit trails.
Oracle 23aiAPEXPL/SQLERD
AI Intern · Digitize Bird
Jul 2025 — presentcurrent
AI agents, conversational systems and automated workflows, deployed to AWS on Ubuntu with Docker.
PythonLLMAWSDocker
Blockchain Intern · Chaos Corporation
Jul 2024 — Aug 2024
Smart contract development and auditing with Foundry, contract-to-frontend integration on Ethereum.
Containers with Docker, Kubernetes & OpenShiftIBM · 2025
Introduction to Agile Development and ScrumIBM · 2025
Foundations of DevOps and GitPackt · 2025
Build Automation and Continuous IntegrationPackt · 2025
Advanced Git and GitHub PracticesPackt · 2025
Python Programming FundamentalsMicrosoft · 2025
Web Development with PythonMicrosoft · 2025
Data Analysis and Visualization with PythonMicrosoft · 2025
Solidity 101Cyfrin Updraft · 2024
Foundry 101Cyfrin Updraft · 2024
Python and BlockchainUdemy · 2024
Decentralized ApplicationsUniversity at Buffalo · 2023
Smart ContractsUniversity at Buffalo · 2023
Blockchain BasicsUniversity at Buffalo · 2023
Blockchain PlatformsBlockchain Council · 2023
Contact
I'm interested in infrastructure work — indexing, warehousing, deployment, and the unglamorous parts of keeping data systems correct. Email is the fastest way to reach me.