
Polymarket has launched a public sandbox for Nex — a full rewrite of its central limit order book (CLOB) in Rust — and says the new engine can already handle an order of magnitude more traffic than the current exchange. The company’s vice president of engineering for DeFi, Josh Stevens, announced the sandbox on X on Nov. 13 and outlined a conditional launch timeline for mid-December after four weeks of shadow operation.
What Nex is and why it matters
- Nex is a ground-up rewrite of Polymarket’s matching engine, begun in August after the team concluded the existing system needed to be rebuilt. It runs in parallel with the live exchange in the sandbox, mirroring every production order so engineers can compare response times, stability under load, and matching accuracy without switching users over.
- The rewrite is in Rust and targets large improvements in throughput, latency, reliability and startup time. Polymarket says there are no breaking changes to API requests or responses for market makers and builders; the sandbox allows partners to test and provide feedback.
Throughput and latency: headline numbers
- Current CLOB (steady/burst): ~10,000 commands/sec steady, ~15,000 commands/sec bursts.
- Nex (steady/burst): 100,000 commands/sec steady, 150,000 commands/sec bursts.
- With further optimizations, Nex could reach ~200,000 commands/sec (bursts to 250,000). With deeper code changes over the next year, capacity could potentially scale toward 1 million commands/sec, though Polymarket says that level isn’t immediately required.
- “Commands” refers to actions such as placing and canceling orders — not completed trades per second.
Latency improvements (internal exchange timings)
- Startup time: reduced from ~5 minutes to 15 seconds.
- P99 (99th percentile) order placement: 3.76 milliseconds on Nex vs. 1.55 seconds on the existing system — a roughly 412x improvement in the published comparison.
- P99 cancel order: 3.20 ms vs. 627.92 ms.
- P99 cancel market order: 5.14 ms vs. 810.16 ms.
- P95 order placement: 1.59 ms vs. 341.84 ms.
- P95 cancel order: 1.58 ms vs. 78.22 ms.
- P95 cancel market order: 2.27 ms vs. 84.89 ms.
Polymarket notes these are internal exchange timings (not end-to-end), with full e2e measurements to follow.
Cancel-all behavior and feeds
- The CLOB’s cancel-all flow has been changed: the existing system acknowledges a cancel-everything request immediately and completes cancellations in the background (typically another ~600 ms to 2 s). Nex waits until cancellations have actually completed and then responds — p99 completion time of 3.14 ms vs. ~0.64–2.04 s for the old system’s full cancellation process.
- The rewritten Rust WebSocket service that streams order-book changes, prices and fills also saw big gains: p99 write latency of 0.099 ms versus 44.5–88.1 ms previously. Stevens warned that delayed feeds can leave traders quoting against stale prices. WebSocket improvements can be deployed independently of the exchange engine, so they may ship before Nex goes live.
Deployment plan and next steps
- Polymarket has not flipped production to Nex; the team plans four weeks of shadow operation in the sandbox to validate the system under live load before a possible mid-December deployment.
- Some optimizations were intentionally deferred to get Nex ready sooner; work on those will start in Q1 next year with a target to make p95 and p99 timings another five times faster.
- The Nex announcement applies specifically to Polymarket DeFi; the company’s international trading operation remains separate from its regulated U.S. venue.
Context and recent work
- The Nex effort follows an in-house indexing overhaul covered in September that improved blockchain event latency by as much as ~14 blocks (~28 seconds) while retaining Goldsky as a backup.
- In October Polymarket also proposed protocol changes around position tokens, collateral and market resolution, with a tentative transition date previously discussed for newly created markets.
Bottom line
Polymarket’s Nex promises a major leap in throughput and latency that, if validated during the sandbox period, could materially improve market-maker performance, reduce stale quotes, and position the platform for higher demand. The team is proceeding cautiously with shadow testing and invites market participants to compare the new engine against the current CLOB and submit feedback before any cutover.
What Nex is and why it matters
- Nex is a ground-up rewrite of Polymarket’s matching engine, begun in August after the team concluded the existing system needed to be rebuilt. It runs in parallel with the live exchange in the sandbox, mirroring every production order so engineers can compare response times, stability under load, and matching accuracy without switching users over.
- The rewrite is in Rust and targets large improvements in throughput, latency, reliability and startup time. Polymarket says there are no breaking changes to API requests or responses for market makers and builders; the sandbox allows partners to test and provide feedback.
Throughput and latency: headline numbers
- Current CLOB (steady/burst): ~10,000 commands/sec steady, ~15,000 commands/sec bursts.
- Nex (steady/burst): 100,000 commands/sec steady, 150,000 commands/sec bursts.
- With further optimizations, Nex could reach ~200,000 commands/sec (bursts to 250,000). With deeper code changes over the next year, capacity could potentially scale toward 1 million commands/sec, though Polymarket says that level isn’t immediately required.
- “Commands” refers to actions such as placing and canceling orders — not completed trades per second.
Latency improvements (internal exchange timings)
- Startup time: reduced from ~5 minutes to 15 seconds.
- P99 (99th percentile) order placement: 3.76 milliseconds on Nex vs. 1.55 seconds on the existing system — a roughly 412x improvement in the published comparison.
- P99 cancel order: 3.20 ms vs. 627.92 ms.
- P99 cancel market order: 5.14 ms vs. 810.16 ms.
- P95 order placement: 1.59 ms vs. 341.84 ms.
- P95 cancel order: 1.58 ms vs. 78.22 ms.
- P95 cancel market order: 2.27 ms vs. 84.89 ms.
Polymarket notes these are internal exchange timings (not end-to-end), with full e2e measurements to follow.
Cancel-all behavior and feeds
- The CLOB’s cancel-all flow has been changed: the existing system acknowledges a cancel-everything request immediately and completes cancellations in the background (typically another ~600 ms to 2 s). Nex waits until cancellations have actually completed and then responds — p99 completion time of 3.14 ms vs. ~0.64–2.04 s for the old system’s full cancellation process.
- The rewritten Rust WebSocket service that streams order-book changes, prices and fills also saw big gains: p99 write latency of 0.099 ms versus 44.5–88.1 ms previously. Stevens warned that delayed feeds can leave traders quoting against stale prices. WebSocket improvements can be deployed independently of the exchange engine, so they may ship before Nex goes live.
Deployment plan and next steps
- Polymarket has not flipped production to Nex; the team plans four weeks of shadow operation in the sandbox to validate the system under live load before a possible mid-December deployment.
- Some optimizations were intentionally deferred to get Nex ready sooner; work on those will start in Q1 next year with a target to make p95 and p99 timings another five times faster.
- The Nex announcement applies specifically to Polymarket DeFi; the company’s international trading operation remains separate from its regulated U.S. venue.
Context and recent work
- The Nex effort follows an in-house indexing overhaul covered in September that improved blockchain event latency by as much as ~14 blocks (~28 seconds) while retaining Goldsky as a backup.
- In October Polymarket also proposed protocol changes around position tokens, collateral and market resolution, with a tentative transition date previously discussed for newly created markets.
Bottom line
Polymarket’s Nex promises a major leap in throughput and latency that, if validated during the sandbox period, could materially improve market-maker performance, reduce stale quotes, and position the platform for higher demand. The team is proceeding cautiously with shadow testing and invites market participants to compare the new engine against the current CLOB and submit feedback before any cutover.





