Re:Rapidoid – No-Bullshit Web Framework for Java
by MrBuddyCasino on Monday December 14, 2015 @05:24AM
(#10730283)
Not that speed matters a lot, but it seems they managed to create a new server that is nearly as fast as the fastest C++ server on the techempower benchmarks (https://www.techempower.com/benchmarks/#section=data-r11&hw=...):
Thats quite an achievement, considering that Netty is very well optimized. Maybe the off-heap output buffer gives it that edge?
[ Parent
| on HN ]
Re:Rapidoid – No-Bullshit Web Framework for Java
by nikolche on Monday December 14, 2015 @07:18PM
(#10735028)
Hi, I am the author of Rapidoid, thanks!
The performance optimization is based on: - using off-heap input and output buffers, - minimizing the number of objects that are created when parsing the input and generating the output, - using object pools to reuse the objects that must be created, - using thread-local helper data structures on the I/O threads to avoid synchronization and object instantiation.
Re:Rapidoid – No-Bullshit Web Framework for Java
by betimsl on Tuesday December 15, 2015 @09:50AM
(#10737998)
What happens when you have a long database query running? Is it async (which is a bit impossible with JDBC) but does it block one of the threads in worker pool?
Re:Rapidoid – No-Bullshit Web Framework for Java
by MrBuddyCasino on Tuesday December 15, 2015 @07:00AM
(#10737281)
Thanks for the explanation! So it looks your efforts were mainly focused on reducing GC pressure - makes sense with those throughput numbers.
Re:Rapidoid – No-Bullshit Web Framework for Java
by zapov on Monday December 14, 2015 @06:08AM
(#10730417)
Too bad they didnt use DSL JSON instead of Jackson for JSON test. They would probably edge top C ones then.
Re:Rapidoid – No-Bullshit Web Framework for Java
by jermo on Monday December 14, 2015 @06:16AM
(#10730435)
What's DSL JSON?
Re:Rapidoid – No-Bullshit Web Framework for Java
by escap on Monday December 14, 2015 @08:08PM
(#10735284)
dsl-json looks like an interesting tool.
" DSL compiler requires Mono/.NET, but only during compilation. There is no runtime Mono/.NET dependency, only JVM. "
Re:Rapidoid – No-Bullshit Web Framework for Java
by logicchains on Monday December 14, 2015 @05:49AM
(#10730364)
>Maybe the off-heap output buffer gives it that edge?
Is this because it allows the GC to be avoided, or because it allows value types to be emulated?
Re:Rapidoid – No-Bullshit Web Framework for Java
by emergentcypher on Monday December 14, 2015 @04:28PM
(#10734033)
Just goes to show that a lot of the "slowness" in Java, et al, comes down to implementation details.
Re:Rapidoid – No-Bullshit Web Framework for Java
by betimsl on Monday December 14, 2015 @05:32AM
(#10730301)
How the hell did they manage to do this?
Re:Rapidoid – No-Bullshit Web Framework for Java
by coldtea on Monday December 14, 2015 @07:58AM
(#10730727)
How did they manage to write a fast optimized web server?
Lots of people have done so, if you have the skills and determination. It also helps if you focus on that, instead of completeness, like Netty probably does.
Re:Rapidoid – No-Bullshit Web Framework for Java
by bottled_poe on Monday December 14, 2015 @05:34AM
(#10730308)
By not doing much else?