traffic-splitter

Direct HTTP traffic to a determined upstream

Showing:

Popularity

Downloads/wk

0

GitHub Stars

11

Maintenance

Last Commit

1yr ago

Contributors

7

Package

Dependencies

10

Size (min+gzip)

172.8KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial