-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Low Throughput #46
Comments
There's a common misconception that async (non-blocking really) is "faster", when in reality, you'll often see slightly increased latency. |
I benchmarked this project before and after RxJava1 was introduced. Before it was just simple callback. Also the official postgres jdbc driver has lots of optimizations that are not ported to this driver, most notably the support for binary encoding of values. |
IMO, it would be preferable to get rid of the RxJava dependency altogether. EDIT: which seems to be the plan: #47 (comment) |
I'm not sure how my benchmark is measuring latency. I thought I understood that with async you trade off some latency for increased peak throughput. Please correct if this is false. My question/comment was on why every measurement I tried is worse compared to the serial option. It's hard to find what exactly is gained with this project. |
Hi,
I'm not sure if this is the right spot for this question. I was hoping for some sort of slack channel or gitter or something.
I created a benchmark because I thought this might cause a speed up, but to my surprise I couldn't get much performance boost. To be fair: I'm completely new to observables and undertow and postgres 😄 .
Is there any supporting evidence that this is actually faster than jdbc? or is it a per use case kind of thing?
My code is at async-postgres-benchmark and specifically QueriesAsyncPostgresqlGetHandler.
Thanks!
The text was updated successfully, but these errors were encountered: