I have a Flask web service which runs on uwsgi+nginx and it works well.
I have another development version of the service which runs on another server. It also runs on uwsgi+nginx.
What I want to do is, test the development server with 'real' traffic(POST requests) I've done verifying the development server works well basically. Just want compare the two with same real traffic.
My basic idea for this is like below:
(A) is legacy server (B) is test server
Nginx(A) get the request and deliver the request to uwsgi(A) for handling.
Nginx(A) 'copy' the request and deliver it to Nginx(B) for testing
uwsgi(A) handle the request in Flask App(A) and response to User (via Nginx(A))
Nginx(B) handle the request like legacy server does but not response to User (just logging)
Is this make any sense? What approach I should take?