1.5 Million Messages Per Second on 3 Machines: Benchmarking and Latency Optimization of Apache Pulsar at Enterprise Scale
Muhamed Ramees Cheriya Mukkolakkal

TL;DR
This paper demonstrates achieving nearly 1.5 million messages per second on three machines with optimized hardware and software tuning, and details a comprehensive latency reduction process for Apache Pulsar.
Contribution
It provides a hardware-driven approach to high throughput and a detailed latency optimization methodology for Apache Pulsar at enterprise scale.
Findings
Validated 1.5 million msg/s on 3 nodes with 3.88 ms latency
Identified hardware as primary throughput determinant, enabling 15 million msg/s on 15 machines
Reduced median publish latency from 213 ms to 3.88 ms through root cause analysis and tuning
Abstract
This paper presents two independent contributions for Apache Pulsar practitioners. First, we validate 1,499,947 msg/s at 3.88 ms median publish latency on just three bare-metal Kubernetes nodes running Pulsar 4.0.8 with Java 21 and ZGC Generational garbage collection, and project a hardware-driven path to 15 million msg/s on 15 machines using five independent clusters with key-based partition routing. Hardware selection -- specifically dedicated NVMe journals achieving 0.02 ms fdatasync and 25 Gbps network interfaces -- is the primary determinant of throughput ceiling, not compute or software tuning. Second, we trace the complete latency optimization journey from 213 ms GC spikes and 13-18 ms median publish latency in production to 3.88 ms through Java Flight Recorder guided root cause analysis. Three independent root causes are identified and resolved: G1GC pauses eliminated by…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
