Positioning of nginx

We can deploy a web system like below:

  1. HAProxy <---->[optinal Varnish] <----->nginx+uWSGI(communicate
  2. nginx <------> uWSGI(or cluster)

as nginx can ‘cache’ and ‘proxy’, the positioning of nginx is confusing

my questions are:
1, is it wrong to that nginx talks to uWSGI locally?
2, is it proper of using nginx to take over haproxy+varnish?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs