# Pgxio – a tiny PostgreSQL layer inside Nginx

I built the first version of this stuff a decade ago as ethanolus (c2h5oh). And I've used it for most of my projects as a backend layer since then. The main motive is to eliminate unnecessary complexity from backend layers. How it works: a rust nginx module calls postgresql functions via non-blocki…

- **Page:** https://magpie.gallery/i/pgxio-a-tiny-postgresql-layer-inside-nginx-s41y
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** linux
- **Tags:** postgresql, nginx, backend, websockets, rust

## Source

Web · hito: Pgxio – a tiny PostgreSQL layer inside Nginx

- **Original:** https://news.ycombinator.com/item?id=50425203

> I built the first version of this stuff a decade ago as ethanolus (c2h5oh). And I've used it for most of my projects as a backend layer since then. The main motive is to eliminate unnecessary complexity from backend layers. 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. Pgxio supports http2 and websockets. Realtime listen/notify updates from postgres without polling. How to try - code on github. Tested on Debian - FreeBSD validation in progress. It's alpha - so any feedback is welcome. https://github.com/mishabunte/pgxio

## GitHub projects

- https://github.com/mishabunte/pgxio

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
