Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rac

🚀 High-Performance REST API in C

Bye Golang, Ciao Rust, Thank you AI, Welcome back C!

A REST API built entirely in C with: async I/O, connection pooling, and thread-based request handling.

✨ Features

  • Asynchronous I/O - Built on libuv event loop for maximum performance
  • 📊 PostgreSQL Pool - Thread-safe connection pooling
  • 🧵 Thread Pool - Multi-threaded request processing
  • 🔄 HTTP Parser - Modern llhttp parser for efficient request handling
  • 📦 JSON Support - Request/response serialization with cJSON

📋 Prerequisites

sudo apt-get update
sudo apt-get install -y \
    libuv1-dev \
    libllhttp-dev \
    libpq-dev \
    build-essential

Environment

UV_THREADPOOL_SIZE=4
LOG_LEVEL=1
DB_POOL_SIZE=4
DB_CONNINFO="host=postgres dbname=mydb user=mydb password=p@ssw0rd"
HTTP_PORT=8080
HTTP_BACKLOG=128

🙏 Acknowledgments


Built with ❤️ and C - Because sometimes, less is more.

About

REST API in C

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages