Giter Club home page Giter Club logo

ginn's Introduction

Ginn

Ginn is not nginx.

What is Ginn?

Ginn is a web server inspired by nginx. It employs an event-driven approach to address C10k problems and achieves scaling by reloading configuration files without dropping client requests.

Note. This was created for educational purposes and is not suitable for real production.

Getting start

Please try it out with Docker first!

$ docker container run --rm -d -p 4700:80 whtsht/ginn

and open http://localhost:4700.

Installation

First, clone this repository and go to the directory.

Install Local

Build Ginn locally and place it in the appropriate directory.

$ make && sudo make install

Start Ginn with root permission.

$ sudo ginn start

and open http://localhost.

Ginn uses a well-known 80 port by default. If you don't like this behavior, edit /etc/ginn.conf.

- # port 4700;
+ port 4700;

Using Docker

Start Ginn using docker-compose.

$ docker compose up -d

and open http://localhost:4700.

Unit tests

This project uses CUnit Test Framework. Please install it.

Run all tests with the following command.

$ make test

Benchmarking

You can test and benchmark using siege.

Note. Start Ginn on port number 4700.

$ siege -c 200 -t 5S -b -i --log=/tmp/siege.log -f ./urls.txt

References

ginn's People

Contributors

whtsht avatar

Stargazers

Thomas Leary avatar Georgy Shelkovy avatar Francesco Cozzuto avatar  avatar Alex Myczko avatar Tomas Dougan avatar

Watchers

 avatar

ginn's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.