Hello!
Recently I wrote a Lua C library named lua-rds-parser for the
ngx_openresty [1] world that we can now efficiently parse Resty DBD
Stream (RDS) formatted data generated by ngx_drizzle [2] and
ngx_postgres [3] into Lua data structures without using JSON as the
intermediate data format. This can save both CPU time and memory for
web applications running atop ngx_lua [4].
Here is the project homepage for this Lua library:
GitHub - openresty/lua-rds-parser: Resty DBD Stream (RDS) parser for Lua written in C
Also, there’s a new Nginx filter module named ngx_rds_csv that can
convert RDS output into the Comma-Separated Values (CSV) format in a
streaming fashion:
Both of these two components have already been included and enabled by
default in the latest ngx_openresty stable release [5]
Enjoy!
-agentzh
[1] http://openresty.org
[2] HTTP Drizzle | NGINX
[3] GitHub - FRiCKLE/ngx_postgres: upstream module that allows nginx to communicate directly with PostgreSQL database.
[4] Lua | NGINX
[5] OpenResty® - Open source