<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Pragma Ventures</title>
        <link>https://paragraph.com/@pragmaooo</link>
        <description>undefined</description>
        <lastBuildDate>Mon, 30 Nov 2026 18:11:45 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Pragma Ventures</title>
            <url>https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/31608fd530c875bf73a89be13f0f49c31033926e066c0ab612ddf3cbbc20bf27.jpg</url>
            <link>https://paragraph.com/@pragmaooo</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[The Case for Disaggregated Inference]]></title>
            <link>https://paragraph.com/@pragmaooo/disaggregated-inference</link>
            <guid>8C2OFgYFm0RtiVJdvsa7</guid>
            <pubDate>Tue, 23 Jun 2026 10:24:25 GMT</pubDate>
            <description><![CDATA[LLM inference runs in two phases, prefill and decode. When they share a GPU, processing a long incoming prompt can delay the next tokens of responses already being generated. Disaggregated inference assigns each phase to a separate GPU pool, removing that contention at the cost of transferring the KV cache from the prefill pool to the decode pool. Whether that tradeoff pays off depends on prompt lengths, traffic load, interconnect bandwidth, and how the serving system routes and allocates work.]]></description>
            <content:encoded><![CDATA[<h2 id="h-why-serving-architecture-matters" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Why Serving Architecture Matters</h2><p>While the public conversation surrounding large language models focuses heavily on parameter counts, reinforcement learning techniques, and emergent reasoning capabilities, far less attention goes to the infrastructure required to serve them at scale. Operating LLMs under strict latency budgets is already a major infrastructure challenge, and agentic workloads further exacerbate the problem by multiplying both the volume of tokens flowing through these systems and the associated processing costs. Although model-level optimizations still play a meaningful role in improving runtime efficiency, inference economics increasingly depend on how LLM infrastructure allocates, shares, and schedules GPUs. </p><p>The core challenge in LLM serving is that generating text is not a single, uniform workload. Inference runs in two very different phases, prefill and decode. Prefill parallelizes well across the prompt and tends to be limited by compute throughput, while decode is sequential and much more sensitive to memory bandwidth and tail latency. Their different bottlenecks suggest that they could share a GPU efficiently, but in practice prefill can prevent decode from running at the same time.</p><h2 id="h-two-phases-two-bottlenecks" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Two Phases, Two Bottlenecks</h2><p>The prefill phase processes the full prompt to build the initial key-value (KV) cache. Decode then reads from and extends that cache as it generates the response. In both phases, the model represents tokens as vectors and passes them through the same sequence of layers, each containing trained weight matrices. The calculations each phase performs and the data it must fetch from memory determine the demands it places on the GPU. </p><p>During prefill, all prompt tokens are available at once, so the model can process them in parallel at each layer. The model arranges the token vectors into a matrix, with one row for each token. At each layer, the GPU multiplies this token matrix by the layer's weight matrices using large matrix-matrix multiplications (GEMM kernels). Each weight value read from high-bandwidth memory (HBM) is reused across calculations for every token vector in the matrix, so the GPU performs many floating-point operations (FLOPs) for each byte it reads. This high arithmetic intensity generally makes prefill compute-bound for long prompts, although short prompts may not provide enough work to saturate the GPU unless several are processed together, a technique called batching. The catch is that prefill for a long prompt can monopolize the GPU, potentially stalling many shorter prefills and decode steps queued behind it. </p><p>Once the prompt has been processed and the KV cache built, decode becomes inherently sequential, generating the output one token at a time. The model cannot start working on the next token until the current one is produced and added to the response generated so far, so a single request no longer offers the prompt-level parallelism that prefill did. For each new token in an individual request, the GPU reads the model weights and the KV cache built so far from HBM, then runs mostly small matrix-vector operations, often implemented as GEMV kernels, appending the new token's own key and value to the cache as it goes. Each step reads a large amount of data but performs only a small amount of computation on it, so the GPU's execution units are often stalled, waiting for that data to arrive. As a result, decode has low arithmetic intensity and is constrained more by memory bandwidth than by computation. </p><p>End users feel this split whenever a model streams a response. They wait once for prefill to work through the prompt, a delay measured as time-to-first-token (TTFT), then wait again between each token as decode generates it, measured as time-per-output-token (TPOT). The hard part is lowering both delays at once, because TTFT is driven by compute-heavy prefill while TPOT is driven by memory-bound decode.</p><h2 id="h-when-prefill-blocks-decode" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">When Prefill Blocks Decode</h2><p>Intuition says that mixing both phases on the same GPU should help utilization, since prefill is limited mainly by compute while decode is limited mainly by memory bandwidth. That only helps if the two phases can run concurrently, with each using capacity the other leaves idle. In practice, the large kernels used for prefill occupy most of the GPU, leaving too little room for decode kernels to run at the same time. Decode therefore waits even when prefill leaves memory bandwidth available. When many requests are scheduled on the same GPU, a long prefill can then delay the much smaller decode steps waiting behind it. </p><p>Systems engineers would classify this delay as head-of-line blocking. For example, a single 4,000-token summarization prompt can occupy the GPU far longer than a single decode step, leaving active streams waiting on their next token. In production, the latency impact is easy to recognize. Active users get sudden mid-stream pauses when an incoming prefill stalls the execution queue. Tail latency becomes hard to control, so bursty traffic can cause systems to miss service-level objectives (SLOs), such as a time-per-output-token target below 50 ms. To avoid those SLO misses, the scheduler must balance minimizing first-token latency for new requests against preventing mid-stream pauses in responses already being streamed to users.</p><h2 id="h-chunking-prefill-to-protect-decode" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Chunking Prefill to Protect Decode</h2><p>Most engines first use chunked prefill to limit how long prompt processing can block decode without adding GPU resources. Prefill and decode remain on the same GPU, but instead of processing a 4,000-token prompt in one uninterrupted prefill pass, the scheduler divides it into pieces capped at a configurable number of tokens and interleaves them with the decode steps of active requests. </p><p>Although a long prompt may still take hundreds of milliseconds to process, scheduling decode after each prefill chunk limits the longest visible pause caused by prefill for active streams to roughly the time required to process that chunk. The model still processes each prompt token through the same layers, but every chunk is submitted to the GPU separately, adding scheduling and kernel-launch overhead and potentially reducing efficiency because each pass processes fewer tokens. </p><p>Chunked prefill gives decode more chances to run, but it does not remove the underlying resource conflict, since both phases still compete for the same compute and bandwidth on the same GPU. Under long contexts or strict latency constraints, chunking introduces a different tradeoff. The scheduler must then choose how much of the prompt to process before yielding to decode again. Small chunks give active streams more frequent decode turns and reduce mid-stream pauses, but the incoming prompt needs more rounds to finish prefill, so time-to-first-token gets worse. Conversely, large chunks get the first token out sooner, but each chunk can still block active streams long enough for users to notice. </p><p>Chunk-size tuning reduces head-of-line blocking, but it leaves prefill and decode on the same GPUs with the same parallelism configuration. Changes to GPU allocation or parallelism apply to both phases even when only one is the bottleneck, preventing operators from tuning or scaling that phase independently.</p><h2 id="h-splitting-prefill-and-decode-apart" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Splitting Prefill and Decode Apart</h2><p>Instead of running both phases on the same GPUs, disaggregated inference assigns prefill and decode to separate GPU pools. Each pool consists of one or more GPUs dedicated to a single phase, so operators can configure the pools separately and add GPUs to whichever one is the bottleneck. Incoming prompts go to the prefill pool, which can process long prompts while the decode pool continues generating tokens for ongoing responses. </p><p>Once prefill builds the KV cache, the decode pool takes over and runs the sequential token-generation loop against that cached state. This removes the shared queue between large prefill jobs and small decode steps, but it introduces a new potential bottleneck. The KV cache produced in the prefill pool has to be transferred to the decode pool before generation can continue. KV cache size scales with prompt length and depends on model architecture. Llama 2 70B requires about 328 KB of FP16 KV state per prompt token, so a 4,000-token prompt produces roughly 1.3 GB. The key question is whether the time spent moving that cache is smaller than the time saved by no longer making prefill and decode contend over one GPU. The answer depends heavily on the interconnect. </p><p>To isolate the interconnect cost, assume the entire cache is transferred from the prefill pool to the decode pool over a single interconnect. The numbers below are raw lower bounds based on nominal one-way bandwidth, since protocol and software overheads make a real transfer over that path slower. Over PCIe Gen4 x16, at around 32 GB/s, moving 1.3 GB takes roughly 41 ms. PCIe Gen5 x16 doubles that bandwidth and brings the transfer down to roughly 20 ms. GPUDirect RDMA over RoCE (RDMA over Converged Ethernet) moves the cache directly between GPU memories across the network. On a 400GbE-class path, around 50 GB/s at line rate, the raw transfer time lands near 26 ms. NVLink, NVIDIA's high-bandwidth GPU-to-GPU fabric inside a server, gives each H100 SXM GPU 900 GB/s of bidirectional bandwidth into the NVSwitch fabric of an HGX H100 system. As a simplified one-way estimate, that is roughly 450 GB/s, which puts the same transfer at about 2.9 ms. Since a decode step is often expected to finish within tens of milliseconds, transferring the cache over PCIe or 400GbE can consume a meaningful fraction of the time it takes to generate the next token. Over NVLink, the transfer takes only a few milliseconds. </p><p>These numbers describe the simple case where decode waits for the entire cache to arrive. Systems that support layer-wise KV transfer can reduce this exposed delay by transferring each layer's KV cache as soon as prefill produces it. KV cache data from earlier layers can transfer while prefill computes later layers, reducing the transfer delay between the end of prefill and the start of decode. </p><p>Not every deployment has the NVLink topology, however. If the KV cache travels over slower PCIe links or across the network, decode waits longer before it can start, making disaggregation harder to justify. </p><p>We saw the same tradeoff in our earlier work on heterogeneous actors for CPU/GPU scheduling. For small inputs, sending work from the CPU to the GPU meant paying setup and data-movement costs without giving the GPU enough parallel work to justify the transfer cost. That made keeping the processing on the CPU the better choice for those smaller workloads. For larger inputs, CPU execution took much longer, while setup and data movement became a smaller share of total runtime. The GPU path was therefore faster overall despite the extra data movement. </p><p>LLM serving follows the same logic. Chunking prevents a long prefill job from blocking decode for its full duration, but each chunk still occupies the shared GPU and can delay the next token for active streams. When SLOs leave little room for that remaining interference, moving prefill to a separate GPU pool can remove enough waiting to justify the KV cache transfer. Short prompts under light load create much less interference, so the handoff may add latency without removing much delay. For those workloads, chunked prefill on a single GPU is often the better tradeoff.</p><h2 id="h-research-and-serving-frameworks-for-disaggregated-inference" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Research and Serving Frameworks for Disaggregated Inference</h2><p>Early research systems showed that separating prefill from decode could improve serving latency and throughput, and serving frameworks soon began incorporating the same approach.</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2401.09670"><strong>DistServe (OSDI 2024)</strong></a><strong>:</strong> One of the first papers to formalize prefill-decode disaggregation. DistServe splits prefill and decode into separate GPU pools, then co-optimizes resource allocation and parallelism for TTFT and TPOT targets. It reports up to 7.4× as many requests, or 12.6× tighter SLOs, compared with state-of-the-art serving systems while keeping more than 90% of requests within latency constraints. DistServe reports goodput because it measures throughput that remains within latency targets rather than raw tokens per second.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2311.18677"><strong>Splitwise (Microsoft, ISCA 2024)</strong></a><strong>:</strong> Splitwise approaches the same prefill-decode split from a hardware-specialization angle. It separates prompt computation and token generation onto different machines, provisions each phase independently, and optimizes clusters for throughput, cost, and power. It reports 1.4× higher throughput at 20% lower cost than the evaluated baseline designs, or 2.35× more throughput with the same cost and power budgets.</p></li></ul><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.vllm.ai/en/latest/features/disagg_prefill/"><strong>vLLM</strong></a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.sglang.ai/advanced_features/pd_disaggregation.html"><strong>SGLang</strong></a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.nvidia.com/dynamo/design-docs/disaggregated-serving"><strong>NVIDIA Dynamo</strong></a>: Serving frameworks support both single-GPU chunking and explicit prefill-decode separation. vLLM enables chunked prefill by default whenever possible in V1 and documents experimental disaggregated prefilling with separate prefill and decode instances connected through KV cache transfer connectors. SGLang lets operators tune chunk size directly and supports prefill-decode disaggregation with Mooncake and NIXL transfer engines. NVIDIA Dynamo supports disaggregated serving with KV-aware routing and independently scalable prefill and decode worker pools.</p></li></ul><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2407.00079"><strong>Mooncake (Moonshot AI)</strong></a><strong>:</strong> Mooncake centers the serving architecture around the KV cache itself. It separates prefill and decode clusters, uses GPU HBM, host DRAM, and SSD resources as a distributed KV cache layer, and schedules around KV cache reuse, transfer, and cluster overload. It reports up to a 525% throughput increase in simulated scenarios while meeting SLOs, and 75% more requests under real workloads.</p></li></ul><h2 id="h-routing-and-hardware-placement-in-disaggregated-inference" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Routing and Hardware Placement in Disaggregated Inference</h2><p>Once the phases are split, performance also depends on how the scheduler routes requests and assigns work across the available hardware, starting with locality. If several requests share a system prompt or document prefix, routing them to a prefill worker that already holds that prefix can avoid recomputing it. When the runtime also supports decode-side cache reuse, choosing a decode worker that holds matching cache blocks can avoid retransferring those blocks. SGLang's RadixAttention organizes cached prefixes in radix trees, while its cache-aware router tracks which workers are likely to hold reusable state. NVIDIA Dynamo applies similar cache-aware routing to prefill workers at data-center scale, with a planner that changes the size of the prefill and decode pools as the workload becomes more prefill-heavy or decode-heavy. </p><p>Beyond locality, schedulers can improve efficiency by matching work to device capabilities, especially at the edge, where a distributed inference cluster may combine devices with very different compute and bandwidth profiles. Uniform partitioning across a heterogeneous cluster can make the whole system run at the speed of the weakest device. Capability-aware partitioning avoids that problem by giving each device a share of the work proportional to what it can actually handle, so no single machine becomes the bottleneck. </p><p>The same placement problem arises in data centers that use a mix of H100, A100, and L40S GPUs. Prefill can make fuller use of the most compute-capable GPUs, while decode may leave more of their compute capacity underused. As a result, the scheduler must account for those differences instead of treating every GPU as interchangeable.</p><h2 id="h-when-disaggregation-pays-off" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">When Disaggregation Pays Off</h2><p>Choosing between chunked prefill and disaggregation requires comparing the waiting caused when prefill and decode share GPUs with the time required to transfer KV caches between separate pools. That comparison depends on how frequently new prompts arrive while decode is generating tokens for existing requests, how long those prompts take to process in prefill, how large their KV caches are for the chosen model, and how quickly the interconnect moves them. </p><p>Once the phases are separated, cache-aware routing can preserve prefix reuse, while operators can choose which GPU types run each phase and scale each pool to its own demand. Compared with chunked prefill on shared GPUs, disaggregation is justified when it serves more requests without missing either latency target. At production scale, where latency and cost are tightly constrained, the serving architecture shapes both at a scale comparable to many model-level improvements, making serving architecture a first-order design decision.</p><h2 id="h-references" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">References</h2><ul><li><p>Zhong et al., DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving (OSDI 2024), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2401.09670">https://arxiv.org/abs/2401.09670</a></p></li><li><p>Patel et al., Splitwise: Efficient Generative LLM Inference Using Phase Splitting (ISCA 2024), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2311.18677">https://arxiv.org/abs/2311.18677</a></p></li><li><p>Zheng et al., SGLang: Efficient Execution of Structured Language Model Programs, with RadixAttention (NeurIPS 2024), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2312.07104">https://arxiv.org/abs/2312.07104</a></p></li><li><p>Qin et al., Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving (FAST 2025), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2407.00079">https://arxiv.org/abs/2407.00079</a></p></li><li><p>Touvron et al., Llama 2: Open Foundation and Fine-Tuned Chat Models (2023), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2307.09288">https://arxiv.org/abs/2307.09288</a></p></li><li><p>NVIDIA, NVIDIA Hopper Architecture In-Depth, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://developer.nvidia.com/blog/nvidia-hopper-architecture-in-depth/">https://developer.nvidia.com/blog/nvidia-hopper-architecture-in-depth/</a></p></li><li><p>NVIDIA, Introducing NVIDIA HGX H100: An Accelerated Server Platform for AI and High-Performance Computing, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://developer.nvidia.com/blog/introducing-nvidia-hgx-h100-an-accelerated-server-platform-for-ai-and-high-performance-computing/">https://developer.nvidia.com/blog/introducing-nvidia-hgx-h100-an-accelerated-server-platform-for-ai-and-high-performance-computing/</a></p></li><li><p>vLLM Project, Optimization and Tuning: Chunked Prefill (v0.20.2), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.vllm.ai/en/v0.20.2/configuration/optimization/">https://docs.vllm.ai/en/v0.20.2/configuration/optimization/</a></p></li><li><p>vLLM Project, Disaggregated Prefilling (experimental, v0.20.2), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.vllm.ai/en/v0.20.2/features/disagg_prefill/">https://docs.vllm.ai/en/v0.20.2/features/disagg_prefill/</a></p></li><li><p>SGLang Project, PD Disaggregation (v0.5.8 source snapshot), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/sgl-project/sglang/blob/v0.5.8/docs/advanced_features/pd_disaggregation.md">https://github.com/sgl-project/sglang/blob/v0.5.8/docs/advanced_features/pd_disaggregation.md</a></p></li><li><p>SGLang Team, SGLang v0.4: Zero-Overhead Batch Scheduler, Cache-Aware Load Balancer, Faster Structured Outputs, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.lmsys.org/blog/2024-12-04-sglang-v0-4/">https://www.lmsys.org/blog/2024-12-04-sglang-v0-4/</a></p></li><li><p>NVIDIA, Dynamo Disaggregated Serving (v0.9.1), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.nvidia.com/dynamo/v-0-9-1/design-docs/disaggregated-serving">https://docs.nvidia.com/dynamo/v-0-9-1/design-docs/disaggregated-serving</a></p></li><li><p>NVIDIA, Dynamo Planner Guide (v0.9.1), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.nvidia.com/dynamo/v-0-9-1/components/planner/planner-guide">https://docs.nvidia.com/dynamo/v-0-9-1/components/planner/planner-guide</a></p></li><li><p>Hayduk et al., Enhanced Energy Efficiency with the Actor Model on Heterogeneous Architectures (DAIS 2016), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://inria.hal.science/hal-01434796v1">https://inria.hal.science/hal-01434796v1</a></p></li></ul><br>]]></content:encoded>
            <author>pragmaooo@newsletter.paragraph.com (Pragma Ventures)</author>
            <category>llm</category>
            <category>ai</category>
            <category>inference</category>
            <category>serving</category>
            <category>disaggregated</category>
            <category>gpu</category>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/57a2a332736fb5129c1bbdc60d8bc1701bb5ee3c7d3f78e07694da95f10454d8.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Monad, the Blockchain That Rewrote the EVM]]></title>
            <link>https://paragraph.com/@pragmaooo/monad-a-technical-review</link>
            <guid>E4JXDoZwUU8FGeufBG4o</guid>
            <pubDate>Tue, 16 Dec 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[A ground-up analysis of Monad's architectural changes and how they combine into a genuinely fast EVM]]></description>
            <content:encoded><![CDATA[<p>You’ve probably heard that Monad has "great tech.” Fair enough, but what does that even mean in very practical terms? At <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.pragma.ooo">Pragma</a>, we've been tracking Monad since their testnet launch. The numbers have been consistently impressive, and as of December 2025 the mainnet delivers 5,000-10,000 TPS supported by nearly 200 validators across the globe.</p><p>Numbers alone don't tell the full story, however. What matters is whether all this re-engineering was worth the effort, and whether the technical improvements came at the cost of decentralization. After all, anyone can build a fast blockchain and put it on one node for max performance. That's called a database.</p><p>After burning the midnight oil studying the codebase and digging into the technical architecture, we think Monad represents a genuine step forward in blockchain performance. To understand why, we need to start with how the Monad team approached the problem in the first place.</p><h1 id="h-the-high-level-approach" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The High-Level Approach</h1><p>The Monad team viewed the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethereum.org/developers/docs/evm">EVM architecture</a> as a black box that accepts inputs and generates outputs in a uniform format, defined by the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://ethereum.org/developers/docs/apis/json-rpc">JSON-RPC API specification</a> that all Ethereum clients implement. Unlike other EVM chains built on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://github.com/ethereum/go-ethereum">Geth</a> (Go), <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://github.com/paradigmxyz/reth">Reth</a> (Rust), or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://github.com/erigontech/erigon">Erigon</a>, the Monad team decided to throw the black box out the window and re-implement the EVM from scratch in C++ and Rust. They only kept the interface itself.</p><p>"If it walks like a duck and quacks like a duck, it must be a duck." This is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Duck_typing">duck typing</a>, a principle from dynamic programming languages that's been around for decades. Duck typing postulates that what matters is what something can do, not what it is.</p><p>As a side note, and since we're already talking about programming paradigms, a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://en.wikipedia.org/wiki/Monad_(functional_programming)">monad</a> is also a core concept in functional programming. In languages like Haskell, monads provide a way to compose operations and manage side effects while keeping code mathematically pure. The Monad team most certainly knew this when they chose the name for their project.</p><p>In the EVM world, if you can "quack" you're good. If you respond to <code>eth_call</code>, <code>eth_getBalance</code>, and the other standard methods, clients don't care what's underneath. Geth is written in Go, Monad is written in C++ and Rust, but they both speak JSON-RPC to clients. To a wallet making RPC calls, both just quack.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6e9b2e36dc4d22ab8a6c1a838625c4fa57fd4cdc559aa66c8f82383f894f0d5f.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAACXBIWXMAAAsTAAALEwEAmpwYAAALKklEQVR4nHXPCVBTdx4H8L912+12d2y3nW6rtd0Vj1ZdjxEBzyooAiIgSV4I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ZdZCTAmC2Ribhk3PuEhhyqJZsugEKsbvTfan7zHefYcIANI/MPJifSyjGp3+CuA0xGXVo1n1aFYtmlmDZl/HoBhhb66PAyABgNg3wMmkq9HMFiitFkEXQ/RqKE0M0SSo1PL4lDBWOjHjYmpa4mlq0KFzAIQDEL3V7xSOF5lagyaWnb8gQNJEaMCogcgVMRRBLL0aShWjqCIUox4VRgr9EHz+PtgdjPySUotM4aMoIohShXpNBKVIkFRhfOoFRiqeQeQQT2D3fPbeL/z8/hDGPUOuQqVUochCRLIQSREgQaoYSRWhqL7vIYoISalC4Utjgy6E7Ti25fPtb+87sDEyJ4YmQSeL0ClV0M9+agmSaGJNFOpq9K7YI3sPbDwSvDXgQgT+KpIi8b1NFqJ8AdRXf00V+RqKAEmqjCULIEIZEleOwfCQuFIEWQD5CH0ZPgLoZ6QKFLEcSRVBNAmaKEQT+GiqGPLtKkC/Al0QQP8CTieEDBUBHKEAAAAASUVORK5CYII=" nextheight="4096" nextwidth="4096" class="image-node embed"><figcaption htmlattributes="[object Object]" class="">The Monad duck that can <code>quack</code>.</figcaption></figure><p>Beyond the EVM rewrite in faster languages, we identified core innovations that work together to deliver the advertised breakthrough performance. Each one tackles a different bottleneck, and the changes span across the entire stack. To understand the complete picture, let's cover them one by one, starting with consensus.</p><h1 id="h-monadbft-a-lightning-fast-consensus-protocol" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://paragraph.com/@pragmaooo/preview/mhMUrourNDLBvVQW6qdQ"><strong>MonadBFT</strong></a>, a Lightning-Fast Consensus Protocol</h1><p>MonadBFT is Monad's consensus mechanism, delivering <strong>400ms block times</strong> and <strong>800ms finality</strong> while solving the tail-forking problem that affects other <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://maddevs.io/glossary/byzantine-fault-tolerance-system">BFT systems</a>. </p><h2 id="h-why-is-consensus-so-important-in-blockchains" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Why Is Consensus So Important in Blockchains?</h2><p>Blockchains run on distributed validators scattered around the world, none of which fully trust each other. Yet, they still need to agree on which blocks enter the chain and in what order. Consensus is what makes this possible.</p><p>For consensus to work when some validators are offline, laggy, or actively malicious, the algorithm must be <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.ledger.com/academy/topics/blockchain/byzantine-fault-tolerance-in-crypto-what-is-it">Byzantine Fault Tolerant</a>. Byzantine Fault Tolerance keeps the chain moving forward as long as two-thirds of validators are honest.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/71fc7dcd1a621519f86ec963c4bdb92bf676c67c52458f55db2300295d81841b.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG3UlEQVR4nAHSBi35AO/VofXcqPjerf/uuf/0vv/uv/zgsO7Uo/vdp//puf/otfzms/vjsv/ouP/mtPzkr/jgrv/ntf/su//ru//su9vEmMe0j9fDnNG7ldXAmtTAmdjDnraogT0sE1A2N6iUagDu1J/u1KP026faxKrayb3/78O7o4fCrYnc16/x4bn/88f/7cL+6b/85rv24K/y26r13q/85LL85rf75rj/88aynHW3mm/01qfx06Poy5vfw5PdwpX005loQlMUADxwWzwA6M2c7tSl+OOxZE6CYzFFvKOCSjg/tZRvR1dVhqKb//XG8+K9+eO7+uS59t6z9t6v996v9+Cy992y9t6z/uvBzr2VXUQhQCQATC8AUTQGUTQJSioALxIALERDJiYUg2k/AOXKmOnSo+7aqGBKhH9aav/tvtrKsfjOn01WVXeRi//hrfbcsvXetvbetfbes/Tcr/bcr/fer/rfr/vlrvjjtOzYrZR+WnBRIn9fMbKTYqOFTE9KBDU1ADFIPUxXTtC1hACGbnJfSIKTcrlnRrCUebn+7cT/7sr24793tsBGma2D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WiNWWYl+Vf/puOXKm86we4pxToBkVQB1Wk15YVtnVVU0MSZOOzpWMS5NOTpURkh/bHSPe32UfYGbgoebgoScgoObfX+VeXmZfHeUdXF1ZWViVFRtV1hxXWBCNSQ8SAA6PwBWZF3GuZf/6rfrzqDWtIGMcVFiRDYAY0M4aUpJdVddfF9ocFxkaFZdcFpgemBof2VsgGZrgWhshmt1hGp0iGxzinB3hWlwgGZrfmFohWVpiWltiGluf15kTDkrKzgAgXRC/+Ct8dOj7NGg5MaWyalxhmpKVTUuAFQzMV09QGhIUWlMVGtNVWpLVGlKVGpJUmtLVGpLU2dIUHFVYHJWY3NWYXZYZXBUXW9TXXBUXW9TX29UX3RWYF1BTGlQQK+OX7aXacGndridbb6jc7SWZ62NWHFWPDgeGgBAHyRKKTNVN0JcPEtYOEZYN0VZOUZTMz1RMj1RMjxPMDtUNUJbPExbPE5bPU9bPU9bPU9cPlBhRFdgQVRjQVVBJDOXe1fgw47TtoXKrXnbwY3RtYPOr37Jq3jjyZdNNi0ALQoWMhAdOBcnQB4zQB8yPB0uQB8xQSAxQB8xOxoqNxgnORgoPR0vRiY8RyZBRCZASChERyZCSitISSpGTCtHMxYqcVY6i29Jclg7WUInVkIpSTMbVDwheF9Aj3JLHgAABd1vaGZhgF4AAAAASUVORK5CYII=" nextheight="3072" nextwidth="5460" class="image-node embed"><figcaption htmlattributes="[object Object]" class="">Ducks lay eggs, consensus orders them into a chain.</figcaption></figure><h2 id="h-how-ethereum-handles-consensus" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How Ethereum Handles Consensus</h2><p>For Ethereum, consensus currently uses <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://ethereum.org/developers/docs/consensus-mechanisms/pos/gasper">Gasper</a>, which combines <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://arxiv.org/abs/1710.09437">Casper FFG</a> for finality and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://eth2book.info/capella/part2/consensus/lmd_ghost/">LMD GHOST</a> for fork choice. Every 12 seconds Ethereum produces a new block, with validators voting on whether it becomes part of the canonical chain. These votes accumulate over time in <em>epochs</em>, each lasting roughly 6.5 minutes.</p><p>After 2 epochs, a checkpoint becomes <em>finalized</em> and protocol-level finality guarantees it won't be reverted. In practice, many applications don't wait that long and treat blocks as "final enough" after just 1-2 confirmations, accepting a tiny reorg risk for faster UX.</p><p>This 2 epoch / 13-minute gap is why your favorite CEX makes you wait to withdraw funds. While they are happy to display a deposit almost instantly for a smoother user experience, they cannot risk letting you withdraw until the blockchain proves the transaction is irreversible. Exchanges need mathematical certainty before moving their own liquidity.</p><h2 id="h-monadbfts-approach-to-finality" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>MonadBFT’s Approach to Finality</strong></h2><p>MonadBFT's 400ms blocks and 800ms finality represent roughly 30x improvement in block time and over 960x improvement in finality versus Ethereum. MonadBFT builds on a family of consensus protocols called <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://arxiv.org/abs/1803.05069">HotStuff</a>. HotStuff has rotating leaders who propose blocks, and validators vote on each proposal. When enough validators vote (a supermajority), the block is locked in.</p><p>HotStuff's breakthrough is achieving two properties that previous BFT protocols can't combine. The first is responsiveness. The protocol operates at actual network speed without waiting for fixed timeouts like Ethereum's 12-second slots. </p><p>The second is better message efficiency. In older protocols like PBFT, every validator has to talk to every other validator. That creates a message storm where the network chokes under its own communication overhead and nearly collapses once you have too many validators. In HotStuff, validators just talk to the leader, who combines these votes into a single threshold signature. As a result we have far fewer messages, which means the protocol can handle more validators without choking on communication overhead.</p><p>But even stock HotStuff processes blocks sequentially. A block gets proposed, validators vote through three phases, and only after finalization can the leader start proposing the next block.<strong> </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://arxiv.org/abs/1803.05069">Chained HotStuff</a> improves on this by employing pipelining, which allows multiple blocks to be in different consensus phases at the same time. While block 100 is collecting its final votes, block 101 is already being validated, and block 102 is being proposed. Think of an assembly line where one car is getting painted while the next is getting its engine installed and the one after that is having its frame welded.</p><p>The result is that validators keep processing continuously instead of sitting idle between blocks, which delivers much higher throughput. Pipelining, however, introduces <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2502.20692">tail-forking</a>, a problem that most HotStuff-based systems haven't solved yet.</p><h3 id="h-the-tail-forking-problem-and-why-you-should-care" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">The Tail-Forking Problem (And Why You Should Care)</h3><p>So you're a validator named Alice and you just proposed a block. Other validators vote on it, and boom, you've got a supermajority. Since you got enough votes, your block should be part of the chain, right?</p><p>Not quite. In pipelined BFT systems, those votes get sent to the next leader, Bob, who aggregates them into a Quorum Certificate (QC) and includes it in his own proposal, moving Alice's block toward finality. If Bob is offline, malicious, or just decides not to include Alice's QC, her block gets orphaned despite having majority support, with the chain moving on as if that block never existed. When valid blocks get abandoned at the tail of the chain because the next leader refuses to build on them, that's tail-forking.</p><p>Alice loses her block rewards despite doing everything right, and users see their transactions confirmed only to watch them disappear. Your trade went through! (Wait, no it didn't.) Without penalties for skipping blocks, validators can collude to drop blocks and manipulate transaction ordering for profit. They can, for instance, reorder trades to front-run users or extract maximum value from each block. Every pipelined BFT system before MonadBFT has been vulnerable to tail-forking. </p><p>MonadBFT fixes this with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.monad.xyz/monad-arch/consensus/monad-bft#reproposal">reproposal</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.monad.xyz/monad-arch/consensus/monad-bft#no-endorsement-message-and-no-endorsement-certificate">No-Endorsement Certificates (NECs)</a>.</p><p>Reproposal means the next leader can't skip ahead when the current leader fails to include the previous block's QC. Before proposing anything new, they check if the previous block got enough votes. If it did, they repropose it first. So if Bob goes offline for any reason and never includes Alice's QC, Carol, the next leader, has to finalize Alice's block before she can propose her own. Bob failed, but Alice gets her rewards regardless.</p><p>But what if Alice's block genuinely wasn't ready? Maybe Alice never broadcast it properly in the first place. Carol needs to figure out what actually happened, so she polls validators to see if anyone received Alice's block. If enough validators confirm they never saw it, Carol collects their responses into a No-Endorsement Certificate. This certificate proves the block was never available to begin with. Carol can now skip Alice's block, and going forward nobody can accuse her of acting maliciously since she has the proof.</p><p>These rules only activate during failures and normal operation stays fast. Once you see the QC for a block, you can treat it as speculatively confirmed. The block will finalize either way, whether the next leader includes it normally or reproposal kicks in.</p><p>Monad targets 400ms block times, but the consensus networking finishes well under that. Ethereum, meanwhile, waits a fixed 12 seconds between blocks. Getting BFT consensus right at this speed is genuinely challenging. Most chains choose between having lots of validators or fast finality because doing both is hard. MonadBFT handles both, but fast consensus alone doesn't make a fast blockchain. Those finalized blocks still need to propagate quickly across the entire validator network, which brings us to how Monad optimizes block propagation.</p><h1 id="h-propagating-the-latest-blocks-to-everyone-quickly-with-raptorcast" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Propagating the Latest Blocks to Everyone Quickly with </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://paragraph.com/@pragmaooo/preview/mhMUrourNDLBvVQW6qdQ"><strong>RaptorCast</strong></a></h1><p>With consensus running at network speed, block propagation becomes the next bottleneck. When a leader creates a block, they need to distribute it to every validator quickly. A block holding 10,000 transactions runs about 2MB. If the leader has to upload 2MB to each of 100+ validators, that's 200MB+ of outbound traffic per block, which would easily bottleneck at the leader's upload speed.</p><p>The naive fix would be to have the leader gossip the newest block to a few peers, who rebroadcast it to others, with every node on the network eventually receiving a copy. A naive gossip approach doesn't work at Monad speeds, however. Every hop through the network adds latency. If a hot block has to bounce through three or four validators before reaching the far side of the network, you've already easily eaten up your 400ms budget just on propagation. Gossip is also wasteful since nodes end up receiving the same data multiple times with nobody coordinating who already has what. When up to a third of validators might be Byzantine, routing through intermediate nodes opens up obvious attack vectors. What stops a malicious validator from delaying blocks, withholding them, or just dropping them entirely?</p><p>RaptorCast solves this with two tricks. <strong>First</strong>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://info.etherscan.com/erasure-coding-in-blockchain/">erasure coding</a>. Splitting a 2MB block into 100 chunks and sending one to each validator sounds reasonable until a few packets get lost over the Atlantic. Now validators are stuck with 97 chunks out of 100 and no way to fill in the gaps. With erasure coding, instead of just dividing the data, you create redundant chunks that contain enough information about each other that you can rebuild the whole block from any sufficiently large subset of chunks.</p><p>Take two numbers, 3 and 7, and also send their sum, 10. Now you have three pieces of data where any two can reconstruct the third. If the 3 goes missing, subtract 7 from 10. If the 7 goes missing, subtract 3 from 10. If the sum goes missing, add 3 and 7.</p><p>Erasure coding works the same way but at scale. You start with <code>K</code> original chunks and generate <code>N</code> total chunks, where <code>N</code> is larger than <code>K</code>. Any <code>K</code> of those chunks can reconstruct the original data, regardless of which ones you receive.</p><p>Recall our original example, where the validator with 97 chunks could not reconstruct the block. With erasure coding, they can now reconstruct the full block because the missing data is encoded in the chunks they already have.</p><p><strong>Second</strong>, a two-hop broadcast tree. The leader divides up the chunks among validators based on stake weight. Each validator receives their assigned chunks directly from the leader, then broadcasts those chunks to all other validators. So if there are 100 validators and 5000 chunks, each validator receives about 50 chunks from the leader and broadcasts those 50 chunks to the other 99 validators. Every validator ends up with all the chunks, but the leader only had to upload each chunk once.</p><p>Taking a step back, we see that consensus now runs fast with MonadBFT and blocks propagate rapidly with RaptorCast. But when do transactions actually get executed, and how does the process differ from vanilla Ethereum?</p><h1 id="h-decoupling-consensus-from-execution" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Decoupling Consensus From Execution </h1><p>Transaction execution is a major bottleneck in traditional EVM chains. In Ethereum, one validator is chosen as the leader to propose the next block. To create that block, the leader first runs all the transactions and calculates the new <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://ethereum.org/en/developers/docs/data-structures-and-encoding/patricia-merkle-trie">state root</a>, which is a hash that summarizes the new blockchain state after applying those transactions. Only then can they send the block to other validators for consensus. Once received, those validators re-run every transaction to check that they end up with the same state root before voting. So before a block is finalized, transactions get executed twice. Once by the leader to build the block, and again by every validator before they can approve it.</p><p>This is also why Ethereum's gas limit is so conservative. All of this execution takes time, blocking consensus. As such, the gas limit has to be set low enough that worst-case execution completes quickly, leaving enough room for the block to be proposed, distributed, re-executed by validators, and finalized within 12 seconds. The gas limit isn't a hardware limitation but rather a timing constraint imposed by having transaction execution in the critical path.</p><p>What if the leader could propose a block without running every transaction first? What if validators could just vote immediately without re-running them? The block would get finalized based on the transaction order alone, and everyone could execute afterwards. Well, Monad does exactly that. Validators first agree on the order of transactions without actually executing them. They still perform essential checks, such as validating signatures and nonces and ensuring the sender has enough gas. Only after a block is finalized do all validators execute its transactions, and they do this while the consensus process is already working on the next block. With execution out of the critical path, the gas limit constraint disappears. Monad can pack far more transactions into each block because execution no longer needs to complete before consensus proceeds.</p><p>Since execution happens after consensus, a newly proposed block doesn't have its own state root yet. Each block includes a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.monad.xyz/monad-arch/consensus/asynchronous-execution">delayed state root</a> from three blocks back instead, letting nodes verify they're all computing the same results.</p><p>If a validator's local execution produces a different result, this mismatch is detected and the node rolls back to the last known good state, re-executing transactions from that point. In practice this rarely happens since everyone is running the same transactions in the same order.</p><p>Using state from three blocks ago means an account might spend its balance before execution catches up. The <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.monad.xyz/developer-essentials/reserve-balance">Reserve Balance</a> mechanism addresses this by forcing each account to set aside a portion of its balance exclusively for gas fees. The leader tracks pending transactions from each account and only includes new ones if their gas costs fit within this reserve. If a transaction would drop the account balance below this reserve at execution time, it simply reverts, making it impossible to spam transactions you can't actually pay for.</p><p>Now that execution is decoupled from consensus, how do we actually run transactions as efficiently as possible?</p><h1 id="h-optimistic-parallel-execution" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Optimistic Parallel Execution</h1><p>To understand Monad's approach, consider how Ethereum goes about transaction execution. In Ethereum, transactions are processed one after another in a single thread. If transaction #2 doesn't touch any of the same state as transaction #1, it still waits in line.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://www.cryptokitties.co/">CryptoKitties</a> was a famous app that caused massive gas cost spikes back in 2017. The game became so popular it <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://spectrum.ieee.org/cryptokitties">accounted for 25% of all Ethereum traffic</a>, and with every transaction waiting in line, the entire network congested.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/cad1f93074058fc06014f78243246fce6c67d833b14d8c8db9a3064712e44f5a.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAIAAAAUMWhjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAI50lEQVR4nD2WeVDTdxrGv+qKi4o9RMV6oaKuIiqiUEWUIDeEYIAYroQchASSQO6juRMSwxFi/BESAiSYQEggpCJYrdq61i5Wu1Yda6kBEnKg1rYznc7Ozk5nxx3qzM488/77eZ/3fWbeFxjYPqNw3iTx98kXTBJ/r8Qvw91XkR+1M340sH3tzTP1mdakaHLsSn5CjGznGsnONdId0fKkj0Qn9zWuBrkU+Khb/6pPEbS1hmytIatqSSaRH+LNGdi+QXUIqOq/F2OeqEnfmyT+fvmCWeRnoe41Iibr8y2tlMcWeQBzCtoM0OtXCuKjJduipR8sZwJA3L+Jl32Etwbkn0+3QpxZHeMFxJvroM4o8M8U+GcyzFNxzRNB5Xcd1BlgkQZGu1859C8vsWeVuAEx5TIH004skqHSlBLSN7bWUEVaBwBl8WuU26PF26MlANQCgI1b1bA1BhkFjtWeHbRIAga2713LBrZP/2eFuLN6ts+mCoHRnp88hvsSZiceJ2sspdExFB4J0pBvX+LP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7Uw9HaWvJRnCcV3TkhE8A3KzdQHixMTXjC3BYmJJ7KrcAmawVVT7mnX/ERD5kIr9pb54ZalscalvCONoiNk3YIg2YJP6lFO0jDB8b/GEvoi0dW0f6sgsxKN2VVZdeYYShDUczL/Fh2fN88Hfu+/uyThzYkI8AFQiAggNK9REHHfGQUnCvqXC6qXCakndPWPPYIg38/7Gwtf7pQxkESNaEcOA5hu2tNvbdffuDZf5eDlnJFYzbzf+oIjsNNecetuya/iRdWZbXcBAtO0obSBPw02nyups65ovO5h86m2c6m2d0jBkt9Xm3YG7C8suU9dd3muz/9Y779/8BIyRHX5Nz5sQAAAAASUVORK5CYII=" nextheight="6224" nextwidth="8334" class="image-node embed"><figcaption htmlattributes="[object Object]" class="">Turns out you can put too many cats on a blockchain.</figcaption></figure><p>In the spirit of squeezing the absolute most out of every component, Monad obviously improves on this baseline. Once transactions are ordered, they run optimistically in parallel across multiple CPU cores. <em>Optimistically</em> means the runtime assumes transactions won't conflict and runs them concurrently. Each execution produces a pending result listing which storage slots were read (inputs) and written (outputs), and these pending results then get merged in the original transaction order. Say transaction #1 and transaction #2 both run in parallel, each spending 100 USDC from Alice's account. Transaction #1 merges first, reads Alice's balance as 1000, and updates it to 900. When transaction #2 tries to merge, the system compares its inputs against the outputs of transaction #1. Transaction #2 assumed Alice had 1000, but she now has 900. The inputs don't match, so transaction #2 re-executes against Alice's new balance of 900, correctly updating it to 800.</p><p>Our contrived example shows that in the worst case, the same transaction gets executed twice. Re-execution is cheap because not all operations need to be repeated. Expensive computations like signature recovery don't depend on state and can be reused, and the storage slots accessed are already in memory from the first run. It's effectively a two-pass strategy, where the first pass surfaces storage dependencies in parallel and pulls data from SSD into cache, while the second pass re-executes against correct state using that cached data. Even when every transaction conflicts, the parallel execution wasn't wasted because all that storage data is now readily available in memory. Best case, when transactions touch different storage slots, you get linear speedup with core count.</p><p>Transaction execution is now parallel, but every transaction still needs data from the same underlying database. If that database can only handle one request at a time, it becomes the bottleneck.</p><h1 id="h-monaddb-and-parallel-state-access" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">MonadDb and Parallel State Access</h1><p>All blockchain state in Ethereum lives in a database. When a contract checks your balance or updates a variable, that's a database read or write. On a busy chain, this happens millions of times per day.</p><p>Ethereum stores state in a tree structure called a Merkle Patricia Trie. Account data like balances, nonces, and contract storage live in the leaves of this tree, and the tree’s root hash summarizes the entire state. And in the EVM world, even if your data is a duck living inside a smart contract, it ultimately quacks its way up to the root hash.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/dc929a0c884769e4faf6b3eeed595bb56fa9136693320948e2f4ddd0a4ec0181.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAIAAAAUMWhjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEe0lEQVR4nK1Wa0xTZxj+km2JW+KSZUanybZkF50/tkTMjIMljo0QnGjmVESyiWiAQVaS8UORjZFFNDJkguLcUGADJ7HYlXHvih2jdFCg3Mu1VO60ZRzawjntub7LOV8tXYNixk6+NM057/c9z/s+z/uegwAEgedXXQCCdcY60DvmoujH3IIX8otecTPPMgJAXnpmwp4X1PI6AOBY9nEBVo3gWBYAflfqPwnY8v4WpKlo9wKAeAlrBeBZhgO4knQ6FKGInc+36sYABFZCxddaAQSRKTsyPJd2/FhM0K6uzml85v8GwElka5XdJef3Xv487OvYc0XZRWWFCopkvBBrBGAAIOHjExejn67KDcpPemPXOvThth0uNwuwNpGxkjRF2e1kRvK1gCfQwddR4FNoHUIZyVcdThdNUaJIPLdSVYVVAER1peLcKlQjtP9Cevn3aXkvIfQiQkWZeSmy2wgdrLyrkxzF/ZcMeJ6zWBYcTtfhsB+2v5pq7J0ouaQIee6dfRt36tSmzvahV15OiT5UsEBS5onZ1QF8hWJosehaXT9Cm9OiE9W1gxzn6tYPGJoGDLohjVKrU3fcH550u5cqFX1nj0e/GRI156AkNz0KwOMHr8f7B6cR2lyRl8FJD1obujSVzaZ+82CPuUnVNj48yfMipztZ6e9FJLvEVgF8ZwUAr6Oxu++bp27+WPFNtgI9eaDwrgEAWJblec5pXySsxLxtgaEZsYIsB8CXt4+eLqhtaDN2GUcZWmT2aADxf7OuE3mujetfiwBgJclxGUUG3qSdxELixZ8P59a8+8WNraEyaQ6KT31hljXAC2NEhidghMqKhoeNNhyp/tPwVnDMpoAo9R9tONeHukhKGaYnZ4/uz8lIKUsKOXRid7i8uL5e1UKRlF/uAPC3bV5Req/0pip+z4HUo7GxUSVnZb+4KNIvcjkDPBJUVQaEIk8eyVb9Wl+cX5WTVZZ1/o5l1uq7DVMZHjCfSbpeUqTStpvrtYbAt88hFIcjfTvDLwM+/4pWXqJnGNLtZlianhyf/k2ut844RYUebOM9ALbqihaCIAQQWI5zOIhrWY3NmlGJqw8A7gBpj8CwXMK+OK1SLrEQrQIAplFL1o3i+blZX3kX7faCq8U22wK+yUqtc/snpUyW658BBgAAy5SlXt74bUyOUdch8fXIZSfdQaeOGbv0D9QW6c+YBr78LNG5JPaXBCD651LqmcDdoQDgkmbUcolw9S0zczueCQ/fcHJQPwIAnn42dKGP9qK4I8aZKd8XGUEQF74rSP0qp621G58IAJkZlxFCmzZs850LHg0wRmnerZRIGUW6fc/a/kHY1uBgmvuXhWiGiY+I/zQ8fmnJLTa/xKajtedZhK5nF2J+/iLTLnrcOD7WN+Eil78bHCTVoNbWKlSOpWX/iZTddJ2iWluj8RYTQJiatN6r1vT2jJBisM+4llpMVMZkMA23DLpJl7erp222qr+ay5uarASBRxX+WXQ6u3v6hkZGWPF15DnLZBqXK9U1dY1O56KXzT/8c9hVvzQ88QAAAABJRU5ErkJggg==" nextheight="3461" nextwidth="4549" class="image-node embed"><figcaption htmlattributes="[object Object]" class="">In a Patricia–Merkle trie, even duck data ultimately resolves into a single root hash.</figcaption></figure><p>Why bother storing information in trees anyway? Because they let you cryptographically prove any piece of data exists without downloading the whole database. Want to prove Alice has 5 ETH? You just need a short chain of hashes, known as a Merkle Proof, which verifies the path from her account data up to the state root. Light clients and bridges rely on this efficiency to verify data securely and quickly.</p><p>This way of storing data in trees isn't exactly optimal, but remember the intro where we said all EVM chains need to "quack" the same way? Given that Monad implements Ethereum APIs, we need to maintain a similar structure.</p><p>Ethereum clients don't implement their own storage layer for the trie. Instead, they typically use generic key-value databases such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://github.com/google/leveldb">LevelDB</a> or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://github.com/facebook/rocksdb">RocksDB</a>, which maintain their own tree structures internally like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://en.wikipedia.org/wiki/Log-structured_merge-tree">LSM trees</a> or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://en.wikipedia.org/wiki/B-tree">B-trees</a>. The practical consequence is that you end up with a tree inside a tree. Every time you want to read one value, you're navigating two layers of data structures, which is a source of unnecessary overhead. An efficient quacking duck can surely do better!</p><p>MonadDb stores data directly within the Patricia Trie itself, entirely eliminating the tree-within-a-tree representation overhead. However, the underlying data structure is only half the problem with traditional databases. Synchronous I/O is the other half. The system completely pauses every time it waits for a database request, bottlenecking parallel transaction execution, as all those concurrent storage reads and writes are stuck waiting in a single-file line.</p><p>To address this shortcoming, MonadDb uses asynchronous I/O through <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://en.wikipedia.org/wiki/Io_uring">io_uring</a>, a Linux kernel interface that lets threads issue I/O requests without stalling. The database runtime submits a request and immediately becomes available to accept another. While transaction A, for example, waits for a slow write, transactions B, C, and D keep executing their reads and may even return earlier than the first write request (how cool is that!).</p><p>MonadDb further optimizes I/O performance by bypassing the filesystem entirely to communicate directly with the SSD. Filesystems exist because general-purpose operating systems need to manage block allocation, track data locations, and handle many different applications accessing storage in unpredictable ways. MonadDb only needs to store data in a Patricia Trie representation and knows exactly how to access it. The filesystem abstraction only adds overhead without providing any measurable benefit.</p><p>The physics haven't changed, however. A single read still takes 40 to 100 microseconds, but with async I/O and direct SSD access many reads now happen in parallel without blocking each other. The database is no longer bottlenecking the other components.</p><p>So now we've parallelized transactions and optimized storage access. But what happens when one contract gets extremely popular? When CryptoKitties was at peak demand, the same contract was being called thousands of times per block, for example.</p><h1 id="h-just-in-time-compilation" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Just-In-Time Compilation</h1><p>Smart contracts written in Solidity get compiled into EVM bytecode. The bytecode contains simple instructions like "add these two numbers" (<code>ADD</code>) or "store this value" (<code>SSTORE</code>). This bytecode is what actually lives on chain and runs on every node. The Solidity source code, on the other hand, never touches the chain, even when you add the contract's source code on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io">Etherscan</a>.</p><p>When someone calls your contract, the EVM works through the bytecode one instruction at a time. It fetches an opcode, checks if you have enough gas to run it, executes it, and moves on. You've seen this from the other side every time you set a max gas limit in your wallet. Each operation eats into that budget. If you've ever hit an "out of gas" error, that's the EVM running out of budget partway through your transaction and reverting everything. If you've used Python, this should feel familiar. The interpreter executes your code line by line rather than translating it into machine code first, much like the EVM.</p><p>Instead of interpreting EVM bytecode instruction by instruction, JIT (Just-In-Time) compilation translates it into native machine code, the actual 1s and 0s your CPU is built to execute. EVM bytecode runs on a virtual machine, while native code runs directly on your hardware. Java developers will recognize this from the JVM's <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out underline" href="https://en.wikipedia.org/wiki/HotSpot_(virtual_machine)">HotSpot</a> compiler, which tracks frequently called methods and compiles them to native code.</p><p>Monad uses the same idea, where new or rarely-used contracts run on a fast interpreter with minimal delay. Meanwhile, the system actively tracks which contracts consume the most gas, and when a contract gets "hot" (think <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.uniswap.org">Uniswap</a> or a future Monad-native CryptoKitties equivalent), it enters a compile queue. The compiler translates EVM bytecode into optimized x86-64 machine code that runs directly on the CPU with no interpreter in between.</p><h1 id="h-putting-it-all-together" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Putting it All Together</h1><p>Monad's performance gains come from fundamental architectural changes to how blockchains handle data, consensus, and execution, not from flashy marketing or overly favorable benchmarks. All the components we've covered aren't independent optimizations but rather designed to work together, each one removing a bottleneck that would otherwise limit the others. MonadBFT produces blocks every 400ms, but fast consensus will have little impact if blocks take nearly as long to propagate. RaptorCast ensures blocks reach everyone within one network round-trip. Async execution lets validators vote on ordering without waiting for execution to finish. Parallel execution uses all available cores, but only if the database can handle concurrent reads and writes. MonadDb delivers that with async I/O.</p><p>Pull any piece out and the performance collapses. Replace MonadDb with LevelDB and your parallel execution threads block on synchronous disk reads. Skip RaptorCast and the leader's upload bandwidth caps your effective block size to a fraction of what it could be. Go back to 12-second block times, and you slow transaction throughput so much that JIT's execution gains cease to matter.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/afe33215babb4842730bf078692f7b6bd0c428b5f1ffcddae7acd54ffca3243c.jpg" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAIAAAAUMWhjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAItklEQVR4nD1Td1zT1x69r1brq9UWngoFoW6Le4tIqQIBBSHIlMreKFEiy1ATZAoSZIUhAX5CkEAAAzH8JEamhKAIAiIoqzyZIZDISAwZ/N4n0L771x3fe86533MuQJYRhUKhkCuQZUQmlS9JZAq5ckOhUMhkColEqpDLEQRBlhFEoUAUiuWVytX56l1EuVqWSeX/gCgRlEdyZQ34f92cSDL2RTQhEM0viJUQCPK2Y6Sptb+ldyiGwu7uH0MQRC6VLcsVUqlsSrg4yp//KpFKxEtfBKLhT1N9XWOL8+KvkqXJL6JJgUgmla3KAsgyIhZL3g7xOX28qoYh7sAMd4DXNcSfmJ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udmKfRnjGeUzEacMz6tQ2L2qTNwS7PihCQUw/iIGh10XHkWxNrmsccVJVt1bdogO0dAAw2QyAjZY6ejMw2+r34Bjl5cXs50YkpnE516aoyYrE/C2ySO9m6kl/4inXoH32Z753Dz94DX/I+vTGK0Ybr/prBqafSig1esRCkZgXHrFQyfQLGbD5szeO9hEHgfkW4+sam2y2AfDLerB/PUBpbHXQNMTuCsrUJcPmuWwLMsssr9bSP1EfjT1qiT1mcEXLaPs63WMbUH77ULY79I7+qI/eZhNywj9el8yyILMsoFqrFLopkXaBAOlpO2uD46rg963g4GYANDcAtW+B9ibwyzpwTmOLnca1yANZTPMsJjqXZZHHtsximj0oNYl9grpLMSQ8Nox6bBhNRcU/vZTKMMt4ZqaUUmNBqjLLZVkk0UwPeewGJmpAVw2oAaD+DdDe+D+HjVCD4zceTQAAAABJRU5ErkJggg==" nextheight="3584" nextwidth="4800" class="image-node embed"><figcaption htmlattributes="[object Object]" class="">Yes, it can quack. But now it can quack really, really fast.</figcaption></figure><h2 id="h-so-was-the-re-engineering-worth-it" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">So Was the Re-Engineering Worth It?</h2><p>Most fast chains hit high TPS by centralizing, running fewer validators with stricter hardware requirements clustered in the same data centers. Monad got there by solving the actual engineering problems. The result doesn't resemble EOS with 21 block producers or some proof-of-authority setup with three nodes, but rather a proof-of-stake system with a genuinely distributed validator set. </p><p>Sure, nodes need 32GB RAM and PCIe Gen4 NVMe SSDs, but that's still consumer hardware, keeping the network accessible to enthusiasts and independent operators. Years of research and careful engineering went into proving you don't have to choose between speed and decentralization. The Monad team asked what performance looks like when you redesign every layer from the ground up to work together. The answer is running on mainnet right now.</p>]]></content:encoded>
            <author>pragmaooo@newsletter.paragraph.com (Pragma Ventures)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d55bf7cc683e0a2f57e7879b7c57614fd953ccf38ad139791b5ee7f796509ed5.jpg" length="0" type="image/jpg"/>
        </item>
    </channel>
</rss>