0

I want to replicate web traffic from production server to another instance of the application (pre-production env), so that i can verify that any improvements (e.g. performance-wise) that were introduced (and tested on course), remain improvements in the context of production-like load.

(Obviously, something that is clearly a performance improvement during tests, might as well turn out not quite so on the production. For example when trading time vs memory usage.)

There are tools like

but they don't seem to address the fact, that the duplicated web traffic will get

  • different session cookies
  • different CSRF tokens (in my case this is covered by JSF view state ids)

Is there a tool that could do that, automatically?

Community
  • 1
  • 1
Piotr Findeisen
  • 19,480
  • 2
  • 52
  • 82

2 Answers2

0

I had a similar concern and opened an issue here

Also since it is an open project I wanted to see if i can inject my own logic. I am stuck there :- Adding headers to diffy proxy before multicasting

I dont have enough reputation to comment so added an answer

Sukalpo
  • 326
  • 3
  • 12
-1

Twitter's diffy is specialized to duplicate HTTP traffic.

Martin Monperrus
  • 1,845
  • 2
  • 19
  • 28
  • Thanks. I couldn't find it in their docs nor examples. How does diffy deal with different session cookies or CSRF tokes? It seems that by defaults only the primary instance will have user sessions logged in? – Piotr Findeisen Apr 05 '16 at 08:00