riolet/WAFer
FreeWAFer is a C language-based software platform for scalable server-side and networking applications. Think node.js for C programmers.
About riolet/WAFer
WAFer is an ultra-lightweight, scalable server-side web applications framework written in C. It offers a simple programming model similar to Node.js for C programmers: developers copy a single server.c file, implement a request handler function, and compile using a Makefile. The framework is designed to have a memory footprint far smaller than Node.js and other bulky frameworks. WAFer supports compile-time configuration options including single-threaded or multi-threaded operation, select-based or epoll-based event loops, and a C10K mode for handling thousands of concurrent connections. The default server port is 4242, adjustable via the PORT environment variable. The open-source project is hosted on GitHub under the GPL-2.0 license.
Key Features
Pros & Cons
- Extremely lightweight with minimal resource usage
- Simple programming model, easy to get started by modifying a single file
- Flexible compile-time configuration to tailor performance to specific needs
- Supports high concurrency with C10K mode and epoll