tinyco is a framework with high performance and high efficiency focusing on business with which you can build a server in only couple lines of code. It use coroutine implemented in ucontext syscall.
- High performance. Make full use of CPU and process requests concurrently which makes server's throughput greatly improved
- Perfect http/dns components
- Small kernel in size
- Business code can be easy to read and maintained. No more async framework
Clone tinyco and build it:
% git clone https://github.com/daoluan/tinyco.git
% cd tinyco
% git submodule update --init --recursive
% cmake . && make thirdparty && make && make install
It's very easy to DIY your tinyco-server. You can refer to this.
For more usages, Read here.