Socket
Socket
Sign inDemoInstall

udp-balancer

Package Overview
Dependencies
54
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    udp-balancer

Load balancer for UDP


Version published
Weekly downloads
6
Maintainers
1
Created
Weekly downloads
 

Readme

Source

udp-balancer

Load balancer for UDP protocol.

Installation

$ npm install udp-balancer --save

Features

  • Round-robin rotation
  • Customizable concurrency of sending data
  • Lightweight
  • Update servers on-the-fly

Usage

Whatever data you send to the udp-balancer is proxied to one of the specified servers using round-robin algorithm.

Command-line tool
$ udp-balancer servers.json

Docker

$ docker run -e PORT=3000 -p 3000:3000 -v servers.json:/servers.json vdemedes/udp-balancer /servers.json
API
const balance = require('udp-balancer');

// servers to balance
const servers = [
	'127.0.0.1:3001',
	'127.0.0.1:3002'
];

// create instance of balancer
const balancer = balance(servers);

// bind balancer to port 3000
balancer.bind(3000);

License

udp-balancer is released under the MIT license.

Keywords

FAQs

Last updated on 03 Jun 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc