Skip to content

brenc/node-haproxy-peers

 
 

Repository files navigation

HAProxy Peers Protocol for node.js

This repository implements HAProxy’s Peers Protocol in TypeScript for use in node.js.

Terminal showing the demo

Usage

Have a look at src/demo.ts for a simple usage example.

Origins of this Library

This library was developed to perform accurate and efficient quota tracking of dynamic requests in WoltLab's software-as-a-service offering WoltLab Cloud.

The demo configuration still reflects these origins within the x-woltlab-cloud-dynamic header that is used identically within our production configuration.

We open-sourced the library as part of our talk “Using HAProxy Peers for Real-time Quota Tracking” at HAProxyConf 2021 Virtual.

License

Copyright (C) 2020 WoltLab GmbH

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

SPDX-License-Identifier: LGPL-3.0-or-later

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 88.4%
  • Dockerfile 9.8%
  • JavaScript 1.8%