Skip to main content
100%

Reactor-based framework versus Node.js streaming

✓ Published0🌍 Public
Aackuser
Last edited Dec 7, 2011
Created on Mar 19, 2019

The benchmark compares a JVM-based Reactor framework using Java NIO FileChannel.transferTo (sendfile) with a Node.js streaming application using fs.createReadStream and pipe, both serving a 1MB file. Under Apache Bench with 100 concurrent users, the JVM framework shows roughly double the throughput and lower latency, with mean total time of 121ms versus 254ms. A single-user test confirms the JVM framework sustains higher requests per second. The example highlights how the Reactor framework’s multi-threaded event handling outperforms Node.js’s single-threaded streaming for file transfers.

AI-generated description

Similar vizzes