c2h5oh

快速轻量级框架,用于在 PostgresSQL 基础上构建网络应用程序/REST API,速度比 openresty 快 10 倍。「Fast and lightweight framework for building web applications / REST APIs on top of PostgresSQL, 10x faster than openresty」

Github星跟蹤圖

c2h5oh - ethanolus

Postgresql REST API with focus on performance/productivity/memory, 10x faster than openresty

Performance, rps
c2h5oh 3000 requests/second
openresty 300 requests/second

Build

Dependencies for build

  • cmake 3.2+
  • g++ 4.7+
  • zlibc
  • libpcre3 (for nginx rewrite module)
  • openssl (for nginx ssl support)
  • libpq
  • libboost (only for tests)
  • hg (mercurial client for jsmn - lightweight json parser repo clone)
apt install libboost-filesystem-dev libboost-test-dev libboost-filesystem-dev zlib1g-dev mercurial libpq-dev gcc-9 g++-9 libpcre3-dev libgd-dev

Dependencies for testing

  • postgresql 9.5 with superuser rights for current user
  • jq - command line json parser is required for testing
make debug
make test

Install

make deb
sudo ./deploy/c2h5oh-nginx_0.0.0_amd64.sh
sudo vi /etc/c2h5oh/c2h5oh_nginx.conf
sudo service c2h5oh_nginx restart

Usage

See tests/web_test.pgsql for sample usage

This test script includes get/set cookie, redirect, custom headers and synthetic /user/login/, /user/logout/, /user/auth/ samples

主要指標

概覽
名稱與所有者mishabunte/c2h5oh
主編程語言C
編程語言CMake (語言數: 6)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2016-05-06 08:32:13
推送於2021-07-22 20:48:48
最后一次提交2021-07-22 13:48:44
發布數0
用户参与
星數34
關注者數6
派生數5
提交數34
已啟用問題?
問題數1
打開的問題數1
拉請求數3
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?