pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Nikander <rob.nikander@gmail.com>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Async client libraries - not worth it?
Date: Mon, 17 Jun 2019 14:35:02 +0300
Message-ID: <8E022FF4-1C5E-4373-B962-E1662AE722C6@gmail.com> (raw)
In-Reply-To: <CADK3HHKgoDHoMUF1yqSNaKdL96DLueGj7bBk1kAOWtt1ndVuwg@mail.gmail.com>
References: <73BC6656-5B14-4F6A-B0FE-5A1102AEF393@gmail.com>
	<CADK3HHKgoDHoMUF1yqSNaKdL96DLueGj7bBk1kAOWtt1ndVuwg@mail.gmail.com>



> On Jun 17, 2019, at 1:12 PM, Dave Cramer <pg@fastcrypt.com> wrote:
> 
> https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=db <https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=db;
> 
> Seems to be worth it.
> 
> Now it appears that ADBA is going to die on the vine, R2DBC and vertx seem to be pretty good

The “async” frameworks are faster, but I think they might be getting the performance gain not from the async DB API, but from the fact that they don’t block OS threads that are handling frontend HTTP requests. They may be using an async DB API to achieve that, but they *could* (I think) also use traditional JDBC and other general purpose concurrency tools from Java’s standard library.  That way would be easier to reason about, in my opinion.

I may just have to write something both ways and wait to get real world experience with it to see how it goes.

view thread (6+ messages)  latest in thread

Message-ID: <8E022FF4-1C5E-4373-B962-E1662AE722C6@gmail.com>
Permalink:  ../8E022FF4-1C5E-4373-B962-E1662AE722C6@gmail.com/
Also on:    postgresql.org/message-id/8E022FF4-1C5E-4373-B962-E1662AE722C6@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rob.nikander@gmail.com
  Subject: Re: Async client libraries - not worth it?
  In-Reply-To: <8E022FF4-1C5E-4373-B962-E1662AE722C6@gmail.com>
  References: <73BC6656-5B14-4F6A-B0FE-5A1102AEF393@gmail.com> <CADK3HHKgoDHoMUF1yqSNaKdL96DLueGj7bBk1kAOWtt1ndVuwg@mail.gmail.com> <8E022FF4-1C5E-4373-B962-E1662AE722C6@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox