KM

Koustav Manna

webdev·blockchain·ai/ml
off
on

Thread 03 — Others

Systems, markets
& chains.

The rest of the stack I care about — scalable system design, low-latency trading systems, and Ethereum smart contracts. The hard, performance-critical corners.

System DesignHFTBlockchainDistributedLow-Latency
Focus
System Design
Trading
Low-Latency / HFT
Chain
Ethereum / EVM
Langs
C++ · Solidity

Three threads

System Design

Designing systems that scale — partitioning, caching, and the consistency trade-offs behind them.

  • Horizontal scaling & sharding
  • Caching + CDN strategy
  • Message queues (Kafka)
  • CAP & consistency trade-offs

HFT / Low-Latency

Trading systems where microseconds matter — from the order book down to cache lines.

  • Limit order book & matching
  • Lock-free data structures
  • Market-data ingestion
  • Backtesting & risk checks

Blockchain

Smart contracts and DeFi protocols on Ethereum and EVM-compatible chains.

  • Gas-optimized Solidity
  • Reentrancy-safe patterns
  • DeFi (AMMs, vaults)
  • Foundry fuzz testing

Toolkit

System Design
Distributed SystemsCachingKafkaRedisLoad BalancingSharding
HFT / Latency
C++Order BooksBacktestingMarket DataWebSocketsLock-Free
Blockchain
SolidityFoundryEthereumDeFiWeb3OpenZeppelin
Infra
DockerPostgresgRPCLinuxPrometheus

System design

Architecture, cached with Redis.

cache.py
Python
1class="syntax-comment"># Cache-aside read-through with Redis
2import json
3import redis
4 
5cache = redis.Redis(host="localhost", port=6379, decode_responses=True)
6TTL = 300 class="syntax-comment"># seconds
7 
8def get_user(user_id: str) -> dict:
9 key = f"user:{user_id}"
10 cached = cache.get(key)
11 if cached:
12 return json.loads(cached) class="syntax-comment"># cache hit
13 
14 user = db.fetch_user(user_id) class="syntax-comment"># miss -> source of truth
15 cache.set(key, json.dumps(user), ex=TTL) class="syntax-comment"># populate cache
16 return user
17 
18def invalidate(user_id: str) -> None:
19 cache.delete(f"user:{user_id}") class="syntax-comment"># write-through invalidation

Selected work

2 projects
01★ featured

FundMe

A crowdfunding smart contract on Ethereum, built with Solidity and Foundry.

SolidityFoundryEthereum
02

Exam Management

An exam management system built in Python with Mako templates.

PythonMakoSQL

Focus

Distributed Systems

Sharding, replication, consensus, CAP trade-offs.

Low-Latency

Lock-free structures, cache-aware code, kernel bypass.

Smart Contracts

Gas-optimized, reentrancy-safe Solidity with fuzz tests.

Observability

Metrics, tracing, and SLOs with Prometheus + Grafana.