Socket
Book a DemoInstallSign in
Socket

traffic-splitter

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

traffic-splitter

Splits incoming traffic to upstream backends

1.2.9
latest
Source
npmnpm
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

traffic-splitter NPM version build status

traffic-splitter is a component that allows for HTTP traffic to be directed to an appropriate upstream depending on the request matching certain criteria.


How it really works? It's not magic..

architecture


Getting started

There are two ways you can use this package. Both need to be provided with a configuration.

Free configuration samples in here.

CLI

npm i traffic-splitter -g
traffic-splitter -c configuration.js

Provided configuration can be a json or a js file.

// in case config is a js file wrap it in:
module.exports = {}

API

npm i traffic-splitter
const TrafficSplitter = require('traffic-splitter')
const splitter = new TrafficSplitter(/*your configuration*/) // provide a configuration object
splitter.start()

And BOOM, splitter is running!

localhost:PORT/healthcheck


More... so much more

What about docs?

Sure thing! Here you go... trafficsplitter.io


logo

Keywords

http

FAQs

Package last updated on 22 Aug 2019

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.