Skip to content

loadmill/prod-replay-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Production Replay Demo App

Shadow traffic from one environment to another

  • Clone this repository and run npm install
  • Run this app using node index.js 8000
  • Run another instance of the app on a different port using node index.js 8001
  • Install GoReplay locally by following these simple Instructions
  • Replay traffic from the first instance of the app to the second one using GoReplay: sudo ./gor --input-raw :8000 --output-http http://localhost:8001

Record and replay traffic (save to file)

  • Run the demo using node index.js 8000
  • Start recording incoming traffic to the demo app by running sudo ./gor --input-raw :8000 --output-file ./requests_0.gor
  • Stop the recording by pressing Ctrl+C
  • To replay the recording run sudo ./gor --input-file ./requests_0.gor -output-http http://localhost:8000

Track responses

  • If you wish to include responses in your recoding, run the recording with --input-raw-track-response like this: sudo ./gor --input-raw :8000 --input-raw-track-response --input-raw-realip-header "X-Real-IP" --output-file ./requests_0.gor
  • You can use the recored responses to validate that there are no errors during replay by using a GoReplay middleware

About

Replay traffic with GoReplay in 5 minutes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published