{"version":"1.0","type":"rich","title":"Reactor-based framework versus Node.js streaming","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-899be279cf8ff09252d98a67b3696651?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}