What are the benefits of using HAProxy over Apache Reverse Proxy?

I want to know, why I should use HAProxy over Apache Reverse Proxy Server? I want to implement below scenario:

The Internet --> Reverse Proxy Server --> Apache Web Server

I can use Apache as a Reverse Proxy Server, but could HAProxy more useful?

Thank you.

Depends what you are trying to achieve with a reverse proxy. Apache is going to be better at caching content than haproxy – it just has way more knobs on it.

Haproxy is going to tend to be better at handling fail-over for various Apache backends going down for any reason.


1 Like

Thank you.
Is below diagram OK?

The Internet --> HAProxy Server --> Apache Web Servers