RSSAmplifier

Blog

quant.engineering

Software engineering at the edge: latency, failure and adversarial systems.

quant.engineeringRSS feed ↗25 posts

Latest posts

The EVM Is Where Code Moves Money

Ethereum is a replicated state machine for shared financial state. The EVM executes transactions deterministically, atomically, and under gas constraints while moving money, collateral, debt, ownership, and liquidity.

On-Chain Liquidity Is Not Just an Order Book Without a Broker

On-chain liquidity is capital under constraints: embedded in contracts, distributed across domains, consumed by transactions, and shaped by arbitrage capacity.

Trading Systems Are Data Systems

A trading system cannot rely on speed alone. Reliable data capture, state management, replayability, and observability are what make live behavior debuggable and trustworthy.

Go's Runtime Model for High-Throughput Services

High-throughput services spend much of their time waiting on I/O. Go's runtime addresses this by multiplexing large numbers of lightweight tasks through goroutines, an internal scheduler, and coordinated synchronization primitives.

Scaling Trading Systems Beyond Pandas

Small trading systems optimize code paths. Larger ones optimize data movement. Scaling beyond Pandas means treating storage layout, ingestion, and derived datasets as part of the backtesting engine.

Schema Evolution Under Live Order Flow

Schema changes don't roll out atomically in real systems. Old and new versions coexist across services, making backward compatibility and long-term correctness unavoidable constraints.

Streaming Under Adversity: Building Systems That Survive Reality

Financial streaming systems must remain correct when reality intervenes. This article dissects crash mid-window recovery, checkpoint corruption, idempotent effects and deterministic replay when failures occur.

Designing Fault-Tolerant Async Trading Services in Python

A production-ready async runtime architecture with explicit supervision and restart discipline, built to keep trading systems correct under failure, stress and load spikes.

Inside DeFi's Hidden Economy: MEV, Mempools, and the Battle for Blockspace

Step inside DeFi's hidden economy: how mempools, MEV and Flashbots turn transaction ordering into a latency-driven execution game where speed and visibility decide outcomes long before settlement.

From Blocks to State: A Mental Model for Blockchain Systems

Blockchains are often explained through protocol-specific concepts like blocks or slots. This article reframes them as distributed state-transition systems, where ambiguity and delayed agreement exist to varying degrees across chains.

The Hidden DAG Behind Every Modern Trading System: How Market Data Is Ingested at Scale

Modern trading systems rely on directed acyclic graphs (DAGs) that branch, merge, and transform real-time feeds into many parallel consumers: matching engines, risk checks, analytics, surveillance, and storage. These ingestion DAGs exist to isolate failure, control fan-out, and preserve latency and correctness under extreme market conditions.

Flow Control in Low-Latency Systems: Batching, Conflation, and Backpressure

Low-latency systems fail when work becomes unbounded. Batching, conflation, and backpressure are mechanisms that keep systems stable under bursty, adversarial load. Without them, tail latency and cascading failures are inevitable.

Observability at Scale: Distributed Telemetry for Modern Trading Infrastructure

How do trading systems observe themselves in real time? This article breaks down the telemetry architecture that keeps distributed systems visible under extreme latency pressure.

How Exchanges Turn Order Books into Distributed Logs

Every modern exchange is a distributed database in disguise. This article reveals how trading engines transform chaotic streams of buy and sell orders into a perfectly ordered, replayable log, ensuring fairness, determinism, and market data reliability.

Latency Profiling in Python: From Code Bottlenecks to Observability

Understanding where time disappears in Python systems requires measuring both CPU and I/O behavior. Profilers, metrics pipelines, and continuous observability tools expose the performance patterns hidden inside production workloads.

Understanding Latency: From Wire to Code

Every microsecond counts, but where do they actually go? Tracing the journey of a message from the network wire to application code reveals how NICs, interrupts, syscalls, and runtimes introduce latency at every hop.

Dissecting the Infra of DeFi Protocols

Most DeFi discussions stop at smart contracts. This article goes deeper: through the data pipelines, executors, keepers, and coordination layers that make protocols run. If you're a software engineer, you'll see how DeFi architecture mirrors the systems you already know.

What Database Scaling Looks Like When Milliseconds Mean Millions

Financial systems process billions of time-series data points with sub-millisecond query requirements: constraints that break traditional databases. Scaling these workloads requires different architectural choices, from vertical scaling to intelligent sharding schemes and specialized layouts for market data.

Introduction to DeFi Engineering

An introduction to the engineering landscape in DeFi protocols: the distinct engineering roles (protocol, infrastructure, execution), the complete technology stack from smart contracts to off-chain systems, core primitives like liquidity pools and oracles, and what makes building in this space fundamentally different from traditional fintech.

How to Build Execution Systems for Crypto Trading at Scale

How do you execute $100M orders across 10+ crypto exchanges without moving the market? This deep-dive covers the infrastructure behind institutional trading systems: market data pipelines, smart order routing, execution quality metrics, and building for failure.

Ring Buffers 101: The Building Block of Low-Latency Systems

Ring buffers are a foundational data structure in low-latency systems. Their memory layout enables predictable performance and high throughput in real-time workloads such as trading engines, telemetry pipelines, and network processing.

Message-Oriented Architectures in Trading Systems: Patterns for Scalability and Fault Tolerance

Modern trading systems rely on message-oriented architectures to move market data, orders, and risk events between services with predictable latency. Delivery guarantees, broker architectures, and ordering constraints shape how these systems behave under load.

Canton: A Distributed Ledger for Global Finance

Traditional settlement takes days because banks cannot trust shared state. Canton Network addresses this with domain-based consensus and cryptographic privacy, enabling real-time settlement without sacrificing confidentiality.

Interdependence of returns across multiple strategies

Low correlation between strategies does not guarantee independence. Hidden dependencies between trading strategies can create concentrated portfolio risk, especially during regime shifts where correlations suddenly converge.

Setting up an Ubuntu 24.04 EC2 instance for algorithmic trading with Interactive Brokers

Provisioning cloud infrastructure is a common step when moving trading systems from local development to production. This guide shows how to deploy an Ubuntu 24.04 EC2 instance and connect it to Interactive Brokers.