0

Is it possible to mirror the HTTP Traffic to a separate server to perform independent process (no response needed) while at the same time serving the original requests?

Preferably I would like to do it using built in directives from nginx. Something like this.

2 Answers2

0

It may be possible in Nginx with post_action (found using Google search). You could also consider using GOR to do this.

Some kind of log file processing could be simpler, either near realtime or batch.

Tim
  • 33,870
  • 7
  • 56
  • 84
-1

Not possible. HTTP requires responses both ways, you can't mirror it. If you want to you could duplicate the payloads of the HTTP messages by writing them to a queue and then copying the queue and sending it to multiple places. This is what ActiveMQ/RabbitMQ is all about.

But not just with HTTP itself.

TheFiddlerWins
  • 3,009
  • 1
  • 16
  • 23