๐Ÿ“ฆ goldbergyoni / nodejs-traffic-shadowing-tests

An example of performing traffic shadowing (a.k.a tap compare) testing using Node.js

โ˜… 19 stars โ‘‚ 4 forks ๐Ÿ‘ 19 watching
๐Ÿ“ฅ Clone https://github.com/goldbergyoni/nodejs-traffic-shadowing-tests.git
HTTPS git clone https://github.com/goldbergyoni/nodejs-traffic-shadowing-tests.git
SSH git clone git@github.com:goldbergyoni/nodejs-traffic-shadowing-tests.git
CLI gh repo clone goldbergyoni/nodejs-traffic-shadowing-tests
Loading files...
๐Ÿ“„ README.md

Draft - WIP - Follow releases to get notified ##

Node.js Traffic Shadowing Demo

Motivation

A 10 min intro and demo of traffic shadowing with Node.js code

How To Play The Demo

  • Run npm install
  • Run the production-like process using node index-production.js 8000
  • Run the staging-like process using node index.js 8001
  • Start forwarding and comparing traffic using sudo ./gor --input-raw :8000 --output-http-track-response --input-raw-track-response --middleware "node {path to your local project}/middleware" --output-http http://localhost:8001
  • Browse to the UI: http://localhost:8000' and http://localhost:8001'