19 releases (12 breaking)

0.13.1 Jul 13, 2021
0.12.0 Apr 27, 2021
0.11.52 Jan 14, 2021
0.11.50 Oct 22, 2020
0.2.0 Apr 20, 2017

#595 in Network programming

Download history 47/week @ 2021-04-14 52/week @ 2021-04-21 42/week @ 2021-04-28 19/week @ 2021-05-05 26/week @ 2021-05-12 25/week @ 2021-05-19 3/week @ 2021-05-26 7/week @ 2021-06-02 21/week @ 2021-06-09 16/week @ 2021-06-16 10/week @ 2021-06-23 7/week @ 2021-06-30 42/week @ 2021-07-07 40/week @ 2021-07-14 8/week @ 2021-07-21 43/week @ 2021-07-28

103 downloads per month

AGPL-3.0

1MB
26K SLoC

sozu, a HTTP proxy

This project wraps the sozu_lib library to make it scalable and dynamically configured. Each single threaded event loop is started in a worker process that receives configuration commands through anonymous unix sockets.

This executable requires a configuration file in the TOML format, that describes the worker types and numbers, along with global information. This file can describe the applications handled by the proxy, but it is more recommended to use the command unix socket, through which the proxy listens for orders or configuration changes. The path of that unix socket is set in the configuration file.

Command socket message format

The proxy receives order through a unix socket. The path to this unix socket can be defined by the command_socket option in the TOML configuration file.

The messages are sent as JSON messages, separated by the 0 byte.

Their format is defined in ../command/README.md. Additionally, the sozu_command_lib crate in ../command already provides the necessary structures, serialization and deserialization code to communicate with the command socket.

Dependencies

~23MB
~553K SLoC