[documentation] Reflow and update readme.

This commit is contained in:
Ciprian Dorin Craciun 2021-12-22 22:39:53 +02:00
parent e9abc2de39
commit ef7a0a03bf

View file

@ -7,29 +7,68 @@ kawipiko -- blazingly fast static HTTP server
``kawipiko`` is a **super-lightweight static HTTP (and HTTPS, H2, H3) server** written in Go, whose main purpose is to serve static content as fast as possible, and with the lowest resource consumption (CPU and RAM) as possible. ``kawipiko`` is a **lightweight static HTTP server** written in Go;
focused on serving static content **as fast and efficient as possible**,
with the **lowest latency**, and with the lowest resource consumption (either CPU, RAM, IO);
supporting both **HTTP/1 (with or without TLS), HTTP/2 and HTTP/3 (over QUIC)**;
available as a **single statically linked executable** without any other dependencies.
However "simple" doesn't imply "dumb" or "limited", instead it implies "efficient" through the removal of superfluous features, thus being inline with UNIX's old philosophy of `"do one thing and do it well" <https://en.wikipedia.org/wiki/Unix_philosophy#Do_One_Thing_and_Do_It_Well>`__.
As such ``kawipiko`` basically supports only ``GET`` requests, and does not provide features like dynamic content generation, authentication, reverse proxying, etc.; while still providing compression (``gzip``, ``zopfli``, ``brotli``), plus HTML-CSS-JS minification (TODO), without affecting its performance (due to its unique architecture as seen below).
What ``kawipiko`` does provide is something very unique, that no other HTTP server offers: the static content is served from a `CDB database <#why-cdb>`__ with almost no latency (as compared to classical static servers that still have to pass through the OS via the ``open-read-close`` syscalls). However, `simple` doesn't imply `dumb` or `limited`,
Moreover as noted earlier, the static content can be compressed (with either ``gzip``, ``zopfli`` or ``brotli``) or minified ahead of time, thus reducing not only CPU but also bandwidth and latency. instead it implies `efficient` through the removal of superfluous features,
thus being inline with UNIX's old philosophy of
"`do one thing and do it well <https://en.wikipedia.org/wiki/Unix_philosophy#Do_One_Thing_and_Do_It_Well>`__".
Therefore, it supports only ``GET`` requests,
and does not provide features like dynamic content generation, authentication, reverse proxying, etc.;
meanwhile still providing compression (``gzip``, ``zopfli``, or ``brotli``),
plus HTML-CSS-JS minifying (TODO),
without affecting its performance
(due to its unique architecture as described below).
`CDB databases <#why-cdb>`__ are binary files that provide efficient read-only key-value lookup tables, initially used in some DNS and SMTP servers, mainly for their low overhead lookup operations, zero locking in multi-threaded / multi-process scenarios, and "atomic" multi-record updates.
This also makes them suitable for low-latency static website content serving over HTTP, which this project provides.
For those familiar with Netlify (or competitors like CloudFlare Pages, GitHub Pages, etc.), ``kawipiko`` is a "host-it-yourself" alternative featuring: What ``kawipiko`` does provide is something very unique, that no other HTTP server offers:
the static content is served from a `CDB file <#why-cdb>`__ with almost no latency
(as compared to classical static servers that still have to pass through the OS via the ``open-read-close`` syscalls).
Moreover, as noted earlier, the static content can still be compressed or minified ahead of time,
thus reducing not only CPU but also bandwidth and latency.
`CDB files <#why-cdb>`__ are binary database files that provide efficient read-only key-value lookup tables,
initially used in some DNS and SMTP servers,
mainly for their low overhead lookup operations,
zero locking in multi-threaded / multi-process scenarios,
and "atomic" multi-record updates.
This also makes them suitable for low-latency static content serving over HTTP,
which is what this project provides.
For those familiar with Netlify (or competitors like CloudFlare Pages, GitHub Pages, etc.),
``kawipiko`` is a `host-it-yourself` alternative featuring:
* self-contained deployment with simple configuration;
(i.e. just `fetch the executable <#installation>`__ and use the `proper flags <#kawipiko-server>`__;)
* low and constant resource consumption (both in terms of CPU and RAM);
(i.e. you won't have surprises when under load;)
* (hopefully) extremely secure;
(i.e. it doesn't launch processes, it doesn't connect to other services or databases, it doesn't open any files, etc.;
basically you can easily ``chroot`` it, or containerize it as is in fashion these days;)
* self-contained deployment with simple configuration; (i.e. just `fetch the executable <#installation>`__ and use the `proper flags <#kawipiko-server>`__;)
* low and constant resource consumption (both in terms of CPU and RAM); (i.e. you won't have surprises when under load;)
* (hopefully) extremely secure; (i.e. it doesn't launch processes, it doesn't connect to other services or databases, it doesn't open any files, etc.; basically you can easily ``chroot`` it, or containerize it as is in fashion these days;)
* highly portable, supporting at least Linux (the main development, testing and deployment platform), FreeBSD, OpenBSD, and OSX; * highly portable, supporting at least Linux (the main development, testing and deployment platform), FreeBSD, OpenBSD, and OSX;
For a complete list of features please consult the `features section <#features>`__.
Unfortunately, there are also some tradeoffs as described in the `limitations section <#limitations>`__ (although none are critical).
With regard to performance, as described in the `benchmarks section <#benchmarks>`__, ``kawipiko`` is at least on-par with NGinx, sustaining over 100K requests / second with 0.25ms latency for 99% of the requests even on my 6 years old laptop. For a complete list of features please consult the `features section <#features>`__.
However the main advantage over NGinx is not raw performance, but deployment and configuration simplicity, plus efficient management and storage of large collections of many small files. Unfortunately, there are also some tradeoffs as described in the `limitations section <#limitations>`__
(although none are critical).
With regard to performance, as described in the `benchmarks section <#benchmarks>`__,
``kawipiko`` is at least on-par with NGinx,
sustaining over 100K requests / second with 0.25ms latency for 99% of the requests even on my 6 years old laptop.
However the main advantage over NGinx is not raw performance,
but deployment and configuration simplicity,
plus efficient management and storage of large collections of many small files.
@ -93,25 +132,35 @@ Manual
Workflow Workflow
-------- --------
The project provides the following executables (statically linked, without any other dependencies): The project provides the following executables (statically linked, without any other dependencies):
* ``kawipiko-server`` -- which serves the static content from the CDB file either via HTTP, HTTPS, H2 (i.e. HTTP/2) or H3 (i.e. HTTP/3 over QUIC); * ``kawipiko-server`` -- which serves the static content from the CDB archive either via HTTP (with or without TLS), HTTP/2 or HTTP/3 (over QUIC);
* ``kawipiko-archiver`` -- which creates the CDB file from a source folder holding the static content, optionally compressing and minimifing it;
* ``kawipiko`` -- an all-in-one executable that bundles all functionality in one executable; (i.e. ``kawipiko server ...`` or ``kawipiko archiver ...``); * ``kawipiko-archiver`` -- which creates the CDB archive from a source folder holding the static content,
optionally compressing and minifying files;
* ``kawipiko`` -- an all-in-one executable that bundles all functionality in one executable;
(i.e. ``kawipiko server ...`` or ``kawipiko archiver ...``);
Unlike most (if not all) other servers out-there,
in which you just point your web server to the folder holding the static website content root,
``kawipiko`` takes a radically different approach:
in order to serve the static content,
one has to first `archive` the content into the CDB archive through ``kawipiko-archiver``,
and then one can `serve` it from the CDB archive through ``kawipiko-server``.
Unlike most (if not all) other servers out-there, in which you just point your web server to the folder holding the static website content root, ``kawipiko`` takes a radically different approach.
In order to serve the static content, one has to first "archive" the content into the CDB file through ``kawipiko-archiver``, and then one can "serve" it from the CDB file through ``kawipiko-server``.
This two step phase also presents a few opportunities: This two step phase also presents a few opportunities:
* one can decouple the "building", "testing", and "publishing" phases of a static website, by using a similar CI/CD pipeline as done for other software projects; * one can decouple the "building", "testing", and "publishing" phases of a static website,
by using a similar CI/CD pipeline as done for other software projects;
* one can instantaneously rollback to a previous version if the newly published one has issues; * one can instantaneously rollback to a previous version if the newly published one has issues;
* one can apply extreme compression (e.g. ``brotli``) to trade CPU during deployment vs latency and bandwidth at runtime.
* one can apply extreme compression (e.g. ``zopfli`` or ``brotli``),
.. note :: to trade CPU during deployment vs latency and bandwidth at runtime.
As described in the `limitations section <#limitations>`__, at the moment, if one rebuilds the CDB file, the server has to be restarted.
@ -119,6 +168,7 @@ This two step phase also presents a few opportunities:
kawipiko-server kawipiko-server
--------------- ---------------
See `dedicated manual <./documentation/manual-server.rst>`__. See `dedicated manual <./documentation/manual-server.rst>`__.
@ -127,6 +177,7 @@ See `dedicated manual <./documentation/manual-server.rst>`__.
kawipiko-archiver kawipiko-archiver
----------------- -----------------
See `dedicated manual <./documentation/manual-archiver.rst>`__. See `dedicated manual <./documentation/manual-archiver.rst>`__.
@ -140,85 +191,92 @@ See `dedicated manual <./documentation/manual-archiver.rst>`__.
Examples Examples
======== ========
* fetch and extract the Python 3.7 documentation HTML archive: ::
* fetch and extract the Python 3.10 documentation HTML archive: ::
curl \ curl \
-s -S -f \ -s -S -f \
-o ./python-3.7.3-docs-html.tar.bz2 \ -o ./python-3.10.1-docs-html.tar.bz2 \
https://docs.python.org/3/archives/python-3.7.3-docs-html.tar.bz2 \ https://docs.python.org/3/archives/python-3.10.1-docs-html.tar.bz2 \
# #
tar \ tar \
-x -j -v \ -x -j -v \
-f ./python-3.7.3-docs-html.tar.bz2 \ -f ./python-3.10.1-docs-html.tar.bz2 \
# #
* create the CDB archive (without any compression): :: * create the CDB archive (without any compression): ::
kawipiko-archiver \ kawipiko-archiver \
--archive ./python-3.7.3-docs-html-nozip.cdb \ --archive ./python-3.10.1-docs-html-nocomp.cdb \
--sources ./python-3.7.3-docs-html \ --sources ./python-3.10.1-docs-html \
--debug \ --debug \
# #
* create the CDB archive (with ``gzip`` compression): :: * create the CDB archive (with ``gzip`` compression): ::
kawipiko-archiver \ kawipiko-archiver \
--archive ./python-3.7.3-docs-html-gzip.cdb \ --archive ./python-3.10.1-docs-html-gzip.cdb \
--sources ./python-3.7.3-docs-html \ --sources ./python-3.10.1-docs-html \
--compress gzip \ --compress gzip \
--debug \ --debug \
# #
* create the CDB archive (with ``zopfli`` compression): :: * create the CDB archive (with ``zopfli`` compression): ::
kawipiko-archiver \ kawipiko-archiver \
--archive ./python-3.7.3-docs-html-zopfli.cdb \ --archive ./python-3.10.1-docs-html-zopfli.cdb \
--sources ./python-3.7.3-docs-html \ --sources ./python-3.10.1-docs-html \
--compress zopfli \ --compress zopfli \
--debug \ --debug \
# #
* create the CDB archive (with ``brotli`` compression): :: * create the CDB archive (with ``brotli`` compression): ::
kawipiko-archiver \ kawipiko-archiver \
--archive ./python-3.7.3-docs-html-brotli.cdb \ --archive ./python-3.10.1-docs-html-brotli.cdb \
--sources ./python-3.7.3-docs-html \ --sources ./python-3.10.1-docs-html \
--compress brotli \ --compress brotli \
--debug \ --debug \
# #
* serve the CDB archive (with ``gzip`` compression): :: * serve the CDB archive (with ``gzip`` compression): ::
kawipiko-server \ kawipiko-server \
--bind 127.0.0.1:8080 \ --bind 127.0.0.1:8080 \
--archive ./python-3.7.3-docs-html-gzip.cdb \ --archive ./python-3.10.1-docs-html-gzip.cdb \
--archive-mmap \ --archive-mmap \
--archive-preload \ --archive-preload \
--debug \ --debug \
# #
* compare sources and archive sizes: :: * compare sources and archive sizes: ::
du \ du \
-h -s \ -h -s \
\ \
./python-3.7.3-docs-html-nozip.cdb \ ./python-3.10.1-docs-html-nocomp.cdb \
./python-3.7.3-docs-html-gzip.cdb \ ./python-3.10.1-docs-html-gzip.cdb \
./python-3.7.3-docs-html-zopfli.cdb \ ./python-3.10.1-docs-html-zopfli.cdb \
./python-3.7.3-docs-html-brotli.cdb \ ./python-3.10.1-docs-html-brotli.cdb \
\ \
./python-3.7.3-docs-html \ ./python-3.10.1-docs-html \
./python-3.7.3-docs-html.tar.bz2 \ ./python-3.10.1-docs-html.tar.bz2 \
# #
45M ./python-3.7.3-docs-html-nozip.cdb 45M ./python-3.10.1-docs-html-nocomp.cdb
9.7M ./python-3.7.3-docs-html-gzip.cdb 9.7M ./python-3.10.1-docs-html-gzip.cdb
??? ./python-3.7.3-docs-html-zopfli.cdb ??? ./python-3.10.1-docs-html-zopfli.cdb
7.9M ./python-3.7.3-docs-html-brotli.cdb 7.9M ./python-3.10.1-docs-html-brotli.cdb
46M ./python-3.7.3-docs-html 46M ./python-3.10.1-docs-html
6.0M ./python-3.7.3-docs-html.tar.bz2 6.0M ./python-3.10.1-docs-html.tar.bz2
@ -231,6 +289,7 @@ Examples
Installation Installation
============ ============
See `dedicated installation document <./documentation/installation.rst>`__. See `dedicated installation document <./documentation/installation.rst>`__.
@ -254,21 +313,36 @@ Features
Implemented Implemented
----------- -----------
The following is a list of the most important features: The following is a list of the most important features:
* (optionally) the static content is compressed when the CDB database is created, thus no CPU cycles are used while serving requests; * (optionally) the static content is compressed or minified when the CDB archive is created,
thus no CPU cycles are used while serving requests;
* (optionally) the static content can be compressed with either ``gzip``, ``zopfli`` or ``brotli``; * (optionally) the static content can be compressed with either ``gzip``, ``zopfli`` or ``brotli``;
* (optionally) in order to reduce the serving latency even further, one can preload the entire CDB database in memory, or alternatively mapping it in memory (mmap_); this trades memory for CPU; * (optionally) in order to reduce the serving latency even further,
one can preload the entire CDB archive in memory, or alternatively mapping it in memory (mmap_);
this trades memory for CPU;
* "atomic" static website content changes; because the entire content is held in a single CDB database file, and because the file replacement is atomically achieved via the ``rename`` syscall (or the ``mv`` tool), all resources are "changed" at the same time; * (optionally) caching the static content fingerprint and compression,
thus significantly reducing the CDB archive rebuilding time,
and significantly reducing the IO for the source file-system;
* ``_wildcard.*`` files (where ``.*`` are the regular extensions like ``.txt``, ``.html``, etc.) which will be used if an actual resource is not found under that folder; (these files respect the hierarchical tree structure, i.e. "deeper" ones override the ones closer to "root";) * atomic static website content changes;
because the entire content is held in a single CDB archive,
and because the file replacement is atomically achieved via the ``rename`` syscall (or the ``mv`` tool),
all served resources are observed to change at the same time;
* support for HTTPS, with HTTP/1.1, by leveraging ``fasthttp``; * ``_wildcard.*`` files (where ``.*`` are the regular extensions like ``.txt``, ``.html``, etc.)
* support for H2 (i.e. HTTP/2), by leveraging Go's ``net/http``; which will be used if an actual resource is not found under that folder;
* support for H3 (i.e. HTTP/3), by leveraging ``github.com/lucas-clemente/quic-go``; (these files respect the hierarchical tree structure, i.e. "deeper" ones override the ones closer to "root";)
* support for HTTP/1 (with or without TLS), by leveraging ``github.com/valyala/fasthttp``;
* support for HTTP/2, by leveraging Go's ``net/http``;
* support for HTTP/3 (over QUIC), by leveraging ``github.com/lucas-clemente/quic-go``;
@ -276,17 +350,25 @@ The following is a list of the most important features:
Pending Pending
------- -------
The following is a list of the most important features that are currently missing and are planed to be implemented: The following is a list of the most important features that are currently missing and are planed to be implemented:
* support for custom HTTP response headers (for specific files, for specific folders, etc.); (currently only ``Content-Type``, ``Content-Length``, ``Content-Encoding`` and optionally ``ETag`` is included; additionally ``Cache-Control: public, immutable, max-age=3600`` and a few security related headers are also included;) * (TODO) support for custom HTTP response headers (for specific files, for specific folders, etc.);
(currently only ``Content-Type``, ``Content-Length``, ``Content-Encoding`` are included;
additionally ``Cache-Control: public, immutable, max-age=3600``, optionally ``ETag``,
and a few TLS or security related headers can also be included;)
* support for mapping virtual hosts to key prefixes; (currently virtual hosts, i.e. the ``Host`` header, are ignored;) * (TODO) support for mapping virtual hosts to key prefixes;
(currently virtual hosts, i.e. the ``Host`` header, are ignored;)
* support for mapping virtual hosts to multiple CDB database files; (i.e. the ability to serve multiple domains, each with its own CDB database;) * (TODO) support for mapping virtual hosts to multiple CDB archives;
(i.e. the ability to serve multiple domains, each with its own CDB archive;)
* automatic reloading of CDB database files; * (TODO) automatic reloading of the CDB archives;
* customized error pages (also part of the CDB database); * (TODO) minifying HTML, CSS and JavaScript, by leveraging ``https://github.com/tdewolff/minify``;
* (TODO) customized error pages (embedded in the CDB archive);
@ -294,15 +376,37 @@ The following is a list of the most important features that are currently missin
Limitations Limitations
----------- -----------
As stated in the `about section <#about>`__, nothing comes for free, and in order to provide all these features, some corners had to be cut:
* (TODO) currently if the CDB database file changes, the server needs to be restarted in order to pickup the changed files; As stated in the `about section <#about>`__, nothing comes for free,
and in order to provide all these features, some corners had to be cut:
* (won't fix) the CDB database **maximum size is 4 GiB**; (however if you have a static website this large, you are probably doing something extremely wrong, as large files should be offloaded to something like AWS S3 and served through a CDN like CloudFlare or AWS CloudFront;) * (TODO) currently if the CDB archive changes,
the server needs to be restarted in order to pickup the changed files;
* (won't fix) the server **does not support per-request decompression / recompression**; this implies that if the content was saved in the CDB database with compression (say ``gzip``), the server will serve all resources compressed (i.e. ``Content-Encoding: gzip``), regardless of what the browser accepts (i.e. ``Accept-Encoding: gzip``); the same applies for uncompressed content; (however always using ``gzip`` compression is safe enough as it is implemented in virtually all browsers and HTTP clients out there;) * (won't fix) the CDB archive **maximum size is 4 GiB** (after compression and minifying),
and there can't be more than 16M resources;
(however if you have a static website this large,
you are probably doing something extremely wrong,
as large files should be offloaded to something like AWS S3,
and served through a CDN like CloudFlare or AWS CloudFront;)
* (won't fix) regarding the "atomic" static website changes, there is a small time window in which a client that has fetched an "old" version of a resource (say an HTML page), but which has not yet fetched the required resources (say the CSS or JS files), and the CDB database was swapped, it will consequently fetch the "new" version of these required resources; however due to the low latency serving, this time window is extremely small; (**this is not a limitation of this HTTP server, but a limitation of the way the "web" is built;** always use fingerprints in your resources URL, and perhaps always include the current and previous version on each deploy;) * (won't fix) the server **does not support per-request decompression / recompression**;
this implies that if the content was saved in the CDB archive with compression (say ``brotli``),
the server will serve all resources compressed (i.e. ``Content-Encoding: brotli``),
regardless of what the browser accepts (i.e. ``Accept-Encoding: gzip``);
the same applies for uncompressed content;
(however always using ``gzip`` compression is safe enough,
as it is implemented in virtually all browsers and HTTP clients out there;)
* (won't fix) regarding the "atomic" static website changes,
there is a small time window in which a client that has fetched an "old" version of a resource (say an HTML page),
but it has not yet fetched the required resources (say the CSS or JS files),
and in between fetching the HTML and CSS/JS the CDB archive was changed,
the client will consequently fetch the new version of these required resources;
however due to the low latency serving, this time window is extremely small;
(**this is not a limitation of this HTTP server, but a limitation of the way websites are built;**
always use fingerprints in your resources URL,
and perhaps always include the current and previous version on each deploy;)
@ -315,6 +419,7 @@ As stated in the `about section <#about>`__, nothing comes for free, and in orde
Benchmarks Benchmarks
========== ==========
See `dedicated benchmarks document <./documentation/benchmarks.rst>`__. See `dedicated benchmarks document <./documentation/benchmarks.rst>`__.
@ -334,17 +439,24 @@ FAQ
Is it production ready? Is it production ready?
----------------------- -----------------------
Yes, it currently is serving ~600K HTML pages. Yes, it currently is serving ~600K HTML pages.
Although, being open source, you are responsible for making sure it works within your requirements! Although, being open source, you are responsible for making sure it works within your requirements!
However, I am available for consulting on its deployment and usage. :)
Why CDB? Why CDB?
-------- --------
Until I expand upon why I have chosen to use CDB for service static website content, you can read about the `sparkey <https://github.com/spotify/sparkey>`__ from Spotify.
Until I expand upon why I have chosen to use CDB for service static website content,
you can read about the `sparkey <https://github.com/spotify/sparkey>`__ from Spotify.
@ -352,7 +464,10 @@ Until I expand upon why I have chosen to use CDB for service static website cont
Why Go? Why Go?
------- -------
Because Go is highly portable, highly stable, and especially because it can easily support cross-compiling statically linked binaries to any platform it supports.
Because Go is highly portable, highly stable,
and especially because it can easily support cross-compiling statically linked binaries
to any platform it supports.
@ -360,9 +475,13 @@ Because Go is highly portable, highly stable, and especially because it can easi
Why not Rust? Why not Rust?
------------- -------------
Because Rust fails to easily support cross-compiling (statically or dynamically linked) executables to any platform it supports.
Because Rust is less portable than Go; for example Rust doesn't consider OpenBSD as a "tier-1" platform. Because Rust fails to easily support cross-compiling (statically or dynamically linked) executables
to any platform it supports.
Because Rust is less portable than Go;
for example Rust doesn't consider OpenBSD as a "tier-1" platform.
@ -385,8 +504,10 @@ Notice (copyright and licensing)
Authors Authors
------- -------
Ciprian Dorin Craciun Ciprian Dorin Craciun
* `ciprian@volution.ro <mailto:ciprian@volution.ro>`__ or `ciprian.craciun@gmail.com <mailto:ciprian.craciun@gmail.com>`__ * `ciprian@volution.ro <mailto:ciprian@volution.ro>`__
or `ciprian.craciun@gmail.com <mailto:ciprian.craciun@gmail.com>`__
* `<https://volution.ro/ciprian>`__ * `<https://volution.ro/ciprian>`__
* `<https://github.com/cipriancraciun>`__ * `<https://github.com/cipriancraciun>`__
@ -396,9 +517,12 @@ Ciprian Dorin Craciun
Notice -- short version Notice -- short version
----------------------- -----------------------
The code is licensed under AGPL 3 or later. The code is licensed under AGPL 3 or later.
If you **change** the code within this repository **and use** it for **non-personal** purposes, you'll have to release it as per AGPL.
If you **change** the code within this repository **and use** it for **non-personal** purposes,
you'll have to release it as per AGPL.
@ -406,7 +530,11 @@ If you **change** the code within this repository **and use** it for **non-perso
Notice -- long version Notice -- long version
---------------------- ----------------------
For details about the copyright and licensing, please consult the `notice <./documentation/licensing/notice.txt>`__ file in the `documentation/licensing <./documentation/licensing>`__ folder.
For details about the copyright and licensing,
please consult the `notice <./documentation/licensing/notice.txt>`__ file
in the `documentation/licensing <./documentation/licensing>`__ folder.
If someone requires the sources and/or documentation to be released If someone requires the sources and/or documentation to be released
under a different license, please send an email to the authors, under a different license, please send an email to the authors,
@ -433,74 +561,88 @@ References
* `tinydns <https://cr.yp.to/djbdns/tinydns.html>`__ (DNS server using CDB); * `tinydns <https://cr.yp.to/djbdns/tinydns.html>`__ (DNS server using CDB);
* `qmail <https://cr.yp.to/qmail.html>`__ (SMTP server using CDB); * `qmail <https://cr.yp.to/qmail.html>`__ (SMTP server using CDB);
.. [Go] .. [Go]
* `Go <https://en.wikipedia.org/wiki/Go_(programming_language)>`__ (@Wikipedia); * `Go <https://en.wikipedia.org/wiki/Go_(programming_language)>`__ (@Wikipedia);
* `Go <https://golang.com/>`__ (project website); * `Go <https://golang.com/>`__ (project website);
.. [fasthttp] .. [fasthttp]
* `fasthttp <https://github.com/valyala/fasthttp>`__ (project @GitHub); * `fasthttp <https://github.com/valyala/fasthttp>`__ (project @GitHub);
* high performance HTTP server implementation; (alternative to Go's ``net/http`` implementation;) * high performance HTTP server implementation; (alternative to Go's ``net/http`` implementation;)
* supports HTTP/1 with or without TLS; * supports HTTP/1 (with or without TLS);
* used by ``kawipiko``; * used by ``kawipiko``;
.. [quic-go] .. [quic-go]
* `quic-go <https://github.com/lucas-clemente/quic-go>`__ (project @GitHub); * `quic-go <https://github.com/lucas-clemente/quic-go>`__ (project @GitHub);
* supports H3 over QUIC; * supports HTTP/3 (over QUIC);
* used by ``kawipiko``; * used by ``kawipiko``;
.. [Zopfli] .. [Zopfli]
* `Zopfli <https://en.wikipedia.org/wiki/Zopfli>`__ (@Wikipedia); * `Zopfli <https://en.wikipedia.org/wiki/Zopfli>`__ (@Wikipedia);
* `Zopfli <https://github.com/google/zopfli>`__ (project @GitHub, reference implementation by Google); * `Zopfli <https://github.com/google/zopfli>`__ (project @GitHub, reference implementation by Google);
* `Zopfli <https://github.com/foobaz/go-zopfli>`__ (project @GitHub, pure Go implementation, used by ``kawipiko``); * `Zopfli <https://github.com/foobaz/go-zopfli>`__ (project @GitHub, pure Go implementation, used by ``kawipiko``);
.. [Brotli] .. [Brotli]
* `Brotli <https://en.wikipedia.org/wiki/Brotli>`__ (@Wikipedia); * `Brotli <https://en.wikipedia.org/wiki/Brotli>`__ (@Wikipedia);
* `Brotli <https://github.com/google/brotli>`__ (project @GitHub, reference implementation by Google); * `Brotli <https://github.com/google/brotli>`__ (project @GitHub, reference implementation by Google);
* `Brotli <https://github.com/andybalholm/brotli>`__ (project @GitHub, pure Go implementation, used by ``kawipiko``); * `Brotli <https://github.com/andybalholm/brotli>`__ (project @GitHub, pure Go implementation, used by ``kawipiko``);
* `Results of experimenting with Brotli for dynamic web content <https://blog.cloudflare.com/results-experimenting-brotli/>`__ (article); * `Results of experimenting with Brotli for dynamic web content <https://blog.cloudflare.com/results-experimenting-brotli/>`__ (article);
.. [Blake3] .. [Blake3]
* `Blake3 <https://en.wikipedia.org/wiki/BLAKE_(hash_function)>`__ (@Wikipedia); * `Blake3 <https://en.wikipedia.org/wiki/BLAKE_(hash_function)>`__ (@Wikipedia);
* `Blake3 <https://github.com/BLAKE3-team/BLAKE3>`__ (project @GitHub, reference implementation); * `Blake3 <https://github.com/BLAKE3-team/BLAKE3>`__ (project @GitHub, reference implementation);
* `Blake3 <https://github.com/zeebo/blake3>`__ (project @GitHub, pure Go implementation, used by ``kawipiko``); * `Blake3 <https://github.com/zeebo/blake3>`__ (project @GitHub, pure Go implementation, used by ``kawipiko``);
.. [Bolt] .. [Bolt]
* `bolt <https://github.com/boltdb/bolt>`__ (project @GitHub, original pure Go implementation); * `bolt <https://github.com/boltdb/bolt>`__ (project @GitHub, original pure Go implementation);
* `bbolt <https://github.com/etcd-io/bbolt>`__ (project @GitHub, forked pure Go implementation, used by ``kawipiko``); * `bbolt <https://github.com/etcd-io/bbolt>`__ (project @GitHub, forked pure Go implementation, used by ``kawipiko``);
.. [wrk] .. [wrk]
* `wrk <https://github.com/wg/wrk>`__ (project @GitHub); * `wrk <https://github.com/wg/wrk>`__ (project @GitHub);
* modern HTTP benchmarking tool; * modern HTTP benchmarking tool;
* multi threaded, implemented in C, with event loop and Lua support; * multi threaded, implemented in C, with event loop and Lua support;
* supports HTTP/1 with and without TLS; * supports HTTP/1 (with and without TLS);
.. [h2load] .. [h2load]
* part of the ``nghttp2`` project; * part of the ``nghttp2`` project;
* `nghttp2 <https://github.com/nghttp2/nghttp2>`__ (project @GitHub); * `nghttp2 <https://github.com/nghttp2/nghttp2>`__ (project @GitHub);
* modern HTTP benchmarking tool; * modern HTTP benchmarking tool;
* multi threaded, implemented in C, with event loop; * multi threaded, implemented in C, with event loop;
* supports HTTP/1 with TLS, H2, and H3; * supports HTTP/1 (with TLS), HTTP/3, and HTTP/3 (over QUIC);
.. [Netlify] .. [Netlify]
* `Netlify <https://www.netlify.com/>`__ (cloud provider); * `Netlify <https://www.netlify.com/>`__ (cloud provider);
.. [HAProxy] .. [HAProxy]
* `HAProxy <https://en.wikipedia.org/wiki/HAProxy>`__ (@Wikipedia); * `HAProxy <https://en.wikipedia.org/wiki/HAProxy>`__ (@Wikipedia);
* `HAProxy <https://www.haproxy.org/>`__ (project website); * `HAProxy <https://www.haproxy.org/>`__ (project website);
* reliable high performance TCP/HTTP load-balancer; * reliable high performance TCP/HTTP load-balancer;
* multi threaded, implemented in C, with event loop and Lua support; * multi threaded, implemented in C, with event loop and Lua support;
.. [NGinx] .. [NGinx]
* `NGinx <https://en.wikipedia.org/wiki/Nginx>`__ (@Wikipedia); * `NGinx <https://en.wikipedia.org/wiki/Nginx>`__ (@Wikipedia);
* `NGinx <https://nginx.org/>`__ (project website); * `NGinx <https://nginx.org/>`__ (project website);
* reliable high performance HTTP server; * reliable high performance HTTP server;
* multi threaded, implemented in C, with event loop; * multi threaded, implemented in C, with event loop;
.. [darkhttpd] .. [darkhttpd]
* `darkhttpd <https://unix4lyfe.org/darkhttpd/>`__ (project website); * `darkhttpd <https://unix4lyfe.org/darkhttpd/>`__ (project website);
* simple static HTTP server; * simple static HTTP server;
* single threaded, implemented in C, with event loop and ``sendfile`` support; * single threaded, implemented in C, with event loop and ``sendfile`` support;
.. [mmap] .. [mmap]
* `Memory mapping <https://en.wikipedia.org/wiki/Memory-mapped_file>`__ (@Wikipedia); * `Memory mapping <https://en.wikipedia.org/wiki/Memory-mapped_file>`__ (@Wikipedia);
* `mmap(2) <http://man7.org/linux/man-pages/man2/mmap.2.html>`__ (Linux man page); * `mmap(2) <http://man7.org/linux/man-pages/man2/mmap.2.html>`__ (Linux man page);