← All projects
Project record1 mention
Originally shared on Hacker News

Pgxio

Pgxio is a tiny PostgreSQL layer inside Nginx. A Rust Nginx module calls PostgreSQL functions via non-blocking libpq I/O, with an optional libpq patch providing zero-copy for Nginx-chained memory buffers. It supports HTTP/2 and WebSockets and realtime listen/notify updates from Postgres without polling. Alpha release.

Last shared
01 / The problem

What it addresses

Eliminate unnecessary complexity from backend layers.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Pgxio

    Pgxio is a tiny PostgreSQL layer inside Nginx. A Rust Nginx module calls PostgreSQL functions via non-blocking libpq I/O, with an optional libpq patch providing zero-copy for Nginx-chained memory buffers. It supports HTTP/2 and WebSockets and realtime listen/notify updates from Postgres without polling. Alpha release.

    Problem: Eliminate unnecessary complexity from backend layers.

    Posted by @hito · Original source ↗

    Story title · @hito · · Source ↗

    Show HN: Pgxio – a tiny PostgreSQL layer inside Nginx

    Submitted URL · @hito · · Source ↗

    https://github.com/mishabunte/pgxio

    Source text · @hito · · Source ↗

    How it works: a rust nginx module calls postgresql functions via non-blocking libpq io. There is an optional patch for libpq. It provides zero-copy for nginx-chained memory buffers - to avoid request body copies between nginx and libpq.

    Source text · @hito · · Source ↗

    Pgxio supports http2 and websockets. Realtime listen/notify updates from postgres without polling.

    Source text · @hito · · Source ↗

    The main motive is to eliminate unnecessary complexity from backend layers.

    Source text · @hito · · Source ↗

    It's alpha - so any feedback is welcome.