Ask HN:为什么要在 Nginx 前面放一个 HAProxy?
2 分•作者: rvitorper•8 个月前
您好,感谢您抽出时间。
我看到一些评论中有人提到在 Nginx 前面使用 HAProxy,而 Nginx 又充当应用程序实例的反向代理。
我想了解一下这种架构在哪些用例中是可行且推荐的,如果可以直接移除 HAProxy,仅使用 Nginx 作为面向公众的服务器,或者干脆移除 Nginx,会怎么样?此外,还有其他因素需要使用 HAProxy 和 Nginx 吗,例如将它们与一些 Varnish 实例搭配使用?
非常感谢您的时间。
查看原文
Hey, thanks for your time in advance.<p>I saw in a few comments people talking about having a HAProxy in front of a Nginx, which in turn acts as the reverse proxy to the app instances.<p>I wanted to understand what use-cases is this architecture viable and recommended, if you could just remove the HAProxy and have Nginx as the public facing server or maybe remove the Nginx altogether, and if there are other factors to use the HAProxy and the Nginx, such as pairing them with a few Varnish instances.<p>Thanks a lot for your time