note, the following jdbc driver can do async listen/notify: http://impossibl.github.io/pgjdbc-ng/
Reply on news.ycombinator.com