pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maciek Sakrejda <msakrejda@truviso.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: experimental Netty-based protocol implementation
Date: Sun, 3 Apr 2011 23:55:13 -0700
Message-ID: <BANLkTinH++3yHmLf2VMi8miBryf47+=0cQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimpxyLM5XnC_ePzaDqmzbv3vcq9BQ@mail.gmail.com>
References: <BANLkTimpxyLM5XnC_ePzaDqmzbv3vcq9BQ@mail.gmail.com>

For what it's worth, I've been working on an ActionScript PostgreSQL
driver [1] off and on for a year and change, and I've found the
event-driven I/O is a godsend when writing this sort of library. It's
much easier to just react to protocol-level messages as they happen
rather than trying to follow one of several specific sequences of
steps. I don't know anything about Netty, but from glancing through
the patch, Oliver, this actually looks rather similar to what I did.

Of course, in ActionScript, I had the luxury of defining an
asynchronous interface for the driver. In fact, due to Flash Player's
non-blocking nature, this was a requirement. With Java, we still need
to serve the blocking interface of methods like execute(), and that
might get a little tricky.

However, my overall point is that I'm very excited for this work. It
could get greatly simplify a lot of driver guts and help solve a
number of open "back-burner" issues.

[1]: https://github.com/deafbybeheading/pegasus (N.B.: although trust
and basic password authentication and most major aspects of both the
simple and extended query protocols work, this still hasn't had a
public release--caveat emptor)
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com



view thread (2+ messages)

Message-ID: <BANLkTinH++3yHmLf2VMi8miBryf47+=0cQ@mail.gmail.com>
Permalink:  ../BANLkTinH++3yHmLf2VMi8miBryf47+=0cQ@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTinH++3yHmLf2VMi8miBryf47+=0cQ@mail.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-jdbc@postgresql.org
  Cc: msakrejda@truviso.com, oliver@opencloud.com
  Subject: Re: experimental Netty-based protocol implementation
  In-Reply-To: <BANLkTinH++3yHmLf2VMi8miBryf47+=0cQ@mail.gmail.com>
  References: <BANLkTimpxyLM5XnC_ePzaDqmzbv3vcq9BQ@mail.gmail.com> <BANLkTinH++3yHmLf2VMi8miBryf47+=0cQ@mail.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